Browse docs
What it does#
Your customer connects their own social accounts from a link you send, with no SkedCast account, and your code publishes to them with your own API key (or an OAuth token). Each customer becomes a client in your workspace.
Prerequisites#
- API keys and the REST API are included from Studio, and MCP access for AI clients from Solo. See the pricing page for the current plans.
- A key with
clients.manage,accounts.connect,accounts.readandposts.compose, created by an Owner or Manager: a key's power is scopes ∩ access. See scopes and authentication.
SkedCast API partner onboarding flow#
| Step | Call | Scope | Who acts |
|---|---|---|---|
| Create the client | POST /clients | clients.manage | Your code |
| Mint a connect link | POST /clients/<clientId>/connect-invites | accounts.connect | Your code |
| Connect the accounts | Open the link | None | Your customer |
| Publish | POST /posts | posts.compose | Your code |
1. Create a client and mint a connect link#
curl -X POST https://api.skedcast.com/v1/clients \
-H "Authorization: Bearer sked_live_YOUR_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ "name": "Riverside Coffee Co.", "type": "brand" }'curl -X POST https://api.skedcast.com/v1/clients/<clientId>/connect-invites \
-H "Authorization: Bearer sked_live_YOUR_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ "platforms": ["instagram", "tiktok"], "expiresInHours": 72 }'{
"data": {
"inviteId": "3f9a…",
"url": "https://app.skedcast.com/invite/inv_9f3a2b…",
"token": "inv_9f3a2b…",
"platformsRequested": ["instagram", "tiktok"],
"expiresAt": "2026-07-06T15:00:00Z"
},
"meta": { "correlationId": "c-…" }
}2. Send the link to the customer#
The customer opens the url, sees your workspace name, their client name and the platforms you requested, and connects each through the platform's own OAuth.
A re-sent link only asks for what is missing.
3. Detect that the customer connected#
Subscribe to account.connected (a new account) and account.reconnected (an existing one connected again), or read GET /accounts?clientId=<clientId>. See webhooks and the webhook payload examples to test your handler.
4. Post on the client's behalf#
# see what connected
curl "https://api.skedcast.com/v1/accounts?clientId=<clientId>" \
-H "Authorization: Bearer sked_live_YOUR_KEY"
# publish on their behalf
curl -X POST https://api.skedcast.com/v1/posts \
-H "Authorization: Bearer sked_live_YOUR_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ "clientId": "<clientId>", "content": "New drop is live 🚗", "targets": { "mode": "selection", "accountIds": ["<accountId>"] }, "schedule": { "type": "at", "scheduledAt": "2030-01-15T15:00:00Z" } }'Verify#
- Open the link in a private window, connect a test account, and confirm your product receives
account.connected. - Publish a test post and confirm
target.publishedarrives. - Let a link expire and confirm your product mints a new one; disconnect a test account and confirm it reacts to
account.reauth_required.
Troubleshoot#
| Situation | What to do |
|---|---|
| A connection expires later | SkedCast sends account.token_expiring ahead and account.reauth_required when the account must be authorized again. Mint a fresh connect link for the same client; it only asks for what is missing. |
| The link expired before the customer finished | Mint a new link for the same client. |
| A call failed or timed out | Retry a 429, 502, 503 or 504, or a request that got no response, with the same Idempotency-Key: SkedCast runs it once or returns the first result. Every other answer, including a 500, is kept for 24 hours and returned again for that key, so send a new key to try again. |
| A call is refused | The error body names the reason: a missing scope, a role that cannot create clients, or a platform the plan does not include. See the error catalogue. |
Data to store#
| Value | When | Why |
|---|---|---|
Client id | When you create the client | Scopes every later request |
inviteId and expiresAt | When you mint a link | Resend a link before it expires |
Account id | When the customer connects | Publish to the right accounts |
Link token | Do not keep it | Anyone holding it can connect accounts to that client until it expires |
Concepts#
- Partial connections: a customer can connect Instagram now and TikTok later from the same link. Listen for
account.connectedand update your checklist. - Several brands: create one client per brand, each with its own accounts. Brands that share accounts stay in one client, which is the unit that owns accounts.
- Approvals: set an approval policy on each client at creation, or with
PATCH /v1/clients/{id}. You receiveapproval.requestedandapproval.decided; list waiting items withGET /v1/approvalsand decide withPOST /v1/approvals/{id}/approve,/rejector/request-changes. - Time zones: store the customer's time zone on their client and send publish times in ISO 8601 with an offset, so a post booked for 9:00 local stays at 9:00 local.
Onboard many customers at once#
Create the clients in a loop with an Idempotency-Key on each call and mint one link per client. POST /v1/posts/bulk takes up to 50 posts per request.
Each plan has its own client limit, listed on the pricing page; request budgets are in conventions.
Offboard a customer#
Cancel the posts still scheduled, then archive the client with DELETE /v1/clients/{id}. Archiving is a soft delete that an Owner performs, and you receive client.deleted.
Next steps and reference links#
- Quickstart, scopes, authentication and webhooks.
- MCP: an assistant can run onboarding with each change confirmed; see the MCP feature page.
- The developer documentation lists the other references.