01
List your accounts
Find the account IDs you want HumanPost to publish to.
curl "https://us-central1-clickbaitcarousel.cloudfunctions.net/publishingApi/v2/accounts" \
-H "Authorization: Bearer $API_KEY"Go from an API key to your first queued post in three calls.
Create a key with the permissions you need in Dashboard → Settings → API & MCP. Send it as a Bearer token on every API request.
Get your API keyTreat API keys like passwords. Keep them server-side and never commit them to source control.
Authorization: Bearer ccb_live_<key_id>_<secret>List an account, import media, and create the queued post.
Find the account IDs you want HumanPost to publish to.
curl "https://us-central1-clickbaitcarousel.cloudfunctions.net/publishingApi/v2/accounts" \
-H "Authorization: Bearer $API_KEY"Import a public video URL and keep the returned upload ID.
curl -X POST "https://us-central1-clickbaitcarousel.cloudfunctions.net/publishingApi/v2/uploads" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"video","sourceUrl":"https://cdn.example.com/launch.mp4"}'Queue the processed upload for one or more accounts.
curl -X POST "https://us-central1-clickbaitcarousel.cloudfunctions.net/publishingApi/v2/posts" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: launch-post-001" \
-d '{"media":["UPLOAD_ID"],"accountIds":["ACCOUNT_ID"],"caption":"Launch day 🚀"}'Send a unique Idempotency-Key with POST /v2/posts. Retrying with the same key will not create a duplicate post.