Skip to content
Reading with an AI assistant?View as MarkdownOpen in ClaudeOpen in ChatGPT

Developers

Code samples: curl, JavaScript and Python

Copy a POST https://api.skedcast.com/v1/posts request as curl, JavaScript fetch or Python requests. All three send the same request.

Language
curl -X POST 'https://api.skedcast.com/v1/posts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: YOUR_UNIQUE_KEY' \
  -d '{"clientId":"00000000-0000-4000-8000-000000000001","content":"Launch day is here 🚀","mediaIds":[],"targets":{"mode":"accounts","accountIds":["00000000-0000-4000-8000-000000000002"]},"schedule":{"type":"now"}}'

Frequently asked questions

Is there a client library?
These samples call the REST API directly with curl, fetch and requests. For a typed client, generate one from the OpenAPI 3.1 document at https://skedcast.com/openapi.json with a tool such as openapi-typescript, openapi-generator or kiota.
Do the three samples send the same request?
Yes. The JSON body is the same in curl, JavaScript and Python.
How do I authenticate the request?
Send your API key as a bearer token in the Authorization header. Create the key in the SkedCast console. API keys are available on plans that include API access; see the pricing page.
Why does the sample include an Idempotency-Key header?
Every POST, PATCH and DELETE needs one, so a retried request never schedules a post twice. Replace the placeholder with a unique value for each request.

Ready to broadcast everywhere?

Sign up free — no credit card. You land on the Free plan, and you can start a one-time 7-day Studio trial from your workspace whenever you are ready. Connect your first accounts, import a batch, and watch one post fan out across every platform.