2. List accounts cURL TypeScript Python Copy
curl https://hivepost.app/v1/accounts \
-H "Authorization: Bearer $HIVEPOST_API_KEY" const res = await fetch("https://hivepost.app/v1/accounts" , {
headers: {
Authorization: `Bearer ${process.env.HIVEPOST_API_KEY}` ,
},
});
const data = await res.json();
console.log(res.status, data);import os
import requests
res = requests.get(
"https://hivepost.app/v1/accounts" ,
headers={
"Authorization" : f"Bearer {os.environ['HIVEPOST_API_KEY']}" ,
},
)
print(res.status_code, res.json())3. Schedule a post cURL TypeScript Python Copy
curl https://hivepost.app/v1/posts \
-H "Authorization: Bearer $HIVEPOST_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: my-first-post" \
-d '{
"accounts": ["5ae80ed0-bdfd-4c62-a715-be5d8b8a9d37"],
"text": "Hello from the HivePost API",
"publish_at": "2026-11-02T10:00:00Z"
}' const res = await fetch("https://hivepost.app/v1/posts" , {
method: "POST" ,
headers: {
Authorization: `Bearer ${process.env.HIVEPOST_API_KEY}` ,
"Content-Type" : "application/json" ,
"Idempotency-Key" : "my-first-post" ,
},
body: JSON.stringify({
accounts: ["5ae80ed0-bdfd-4c62-a715-be5d8b8a9d37" ],
text: "Hello from the HivePost API" ,
publish_at: "2026-11-02T10:00:00Z"
}),
});
const data = await res.json();
console.log(res.status, data);import os
import requests
res = requests.post(
"https://hivepost.app/v1/posts" ,
headers={
"Authorization" : f"Bearer {os.environ['HIVEPOST_API_KEY']}" ,
"Idempotency-Key" : "my-first-post" ,
},
json={
"accounts" : ["5ae80ed0-bdfd-4c62-a715-be5d8b8a9d37" ],
"text" : "Hello from the HivePost API" ,
"publish_at" : "2026-11-02T10:00:00Z" ,
},
)
print(res.status_code, res.json())Response · 201 Copy
{
"id" : "8c1f4a52-6f0e-4d1b-9a43-2d7e5b0c9f21" ,
"object" : "post" ,
"mode" : "test" ,
"status" : "scheduled" ,
"text" : "Hello from the HivePost API" ,
"publish_at" : "2026-11-02T10:00:00Z" ,
"brand_id" : "0b6d2c1e-3f4a-4e5b-8c7d-9a1b2c3d4e5f" ,
"accounts" : [
{
"id" : "5ae80ed0-bdfd-4c62-a715-be5d8b8a9d37" ,
"network" : "bluesky" ,
"status" : "scheduled" ,
"text" : null ,
"published_at" : null ,
"external_id" : null ,
"error" : null
}
],
"media" : [
{
"id" : "8c1f4a52-6f0e-4d1b-9a43-2d7e5b0c9f21" ,
"status" : "uploading"
}
],
"created_at" : "2026-11-12T10:00:00Z"
}