Getting Start
Welcome to Hero API Docs 🚀
Unlock the power of Hero Platform in your projects with Hero API
What You Can Do With Hero API
Create Your Own Spaces
Organize Content with Lists
Handle Items with Ease
Markdown Support
Get Started with Hero API
- Sign in at Hero Page.
- Click your profile picture on the top right.
- Go to “Account Settings” -> “Get API Key.”
- Your API Key will appear.
Example using the Hero Node.js SDK
import { HeroAPI } from "hero-api";
const hero = new HeroAPI('YOUR_API_TOKEN');
hero.createSpace('My Amazing Space', true, "https://picsum.photos/600/500").then(space => {
console.log('Space created:', space);
});
Example using Python
import http.client
conn = http.client.HTTPSConnection("hero.page")
payload = "{\n \"img\": \"https://picsum.photos/200/300\",\n \"isPublic\": true,\n \"name\": \"Your Amazing Space\"\n}"
headers = {
'Authorization': "Bearer YOUR_API_TOKEN",
'Content-Type': "application/json"
}
conn.request("POST", "/api/v1/createSpace", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
More SDKs are coming, join the Hero Discord to stay updated!
Why Choose Hero API?
Integrate Hero Platform into your projects. Endless possibilities! Dive into features, or explore Hero’s Homepage.
Explore More
Dive into Space Management, List Management, and Item Management. Explore shareable lists, learn what is a Hero Page, or see how to create an account.
For more information, please visit our privacy policy, terms & conditions, or access your account by signing in. If you need assistance, you can reset your password here.
Ready to Build Something Amazing?
Dive into the Hero API Playground and let your creativity flow!