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

API

Campaigns API reference

Updated

The Campaigns API reference covers 8 endpoints of the SkedCast social media REST API. Named post groups and a one-call schedule shift.

Campaigns API reference: endpoints

Every endpoint below uses the same authentication, conventions and error codes. New to the API? Start with the quickstart or the developer docs.

Prefer a typed client? Call these endpoints through the TypeScript SDK or the MCP server, and receive changes as webhook events.

Other resources: Posts API reference, post targets reference, Clients, Accounts endpoints reference, Workspace API reference, approvals reference, Analytics endpoints reference, Reports API reference, media reference, Webhooks, Inbox endpoints reference.

List campaigns

GET/campaigns

Requires the scope campaigns.read

Parameters
FieldDescription
clientIdstring (uuid)in queryInclude this client's campaigns alongside the workspace-wide ones.
statusenum: active | archivedin query
cursorstringin queryKeyset cursor from a previous page.See pagination.
limitintegerin queryPage size (1–100).
MoreDefault 100.

Responses

200
One page of the campaigns, alphabetically.
400
An RFC 9457 error (application/problem+json).
401
An RFC 9457 error (application/problem+json).
403
An RFC 9457 error (application/problem+json).
404
An RFC 9457 error (application/problem+json).
422
An RFC 9457 error (application/problem+json).
429
An RFC 9457 error (application/problem+json).
bash
curl -X GET "https://api.skedcast.com/v1/campaigns" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY"

Response 200

json
{
  "data": [
    {}
  ],
  "page": {
    "hasMore": true,
    "cursor": "string",
    "nextCursor": "string"
  },
  "meta": {
    "correlationId": "string"
  }
}

Create a campaign

POST/campaigns

Requires the scope campaigns.manage

Create a campaign (a named grouping of posts; omit clientId for a workspace-wide one). 409 campaign_exists on a duplicate (client, name). Requires the campaigns.manage scope (Owner, Manager, or an Editor on the campaign's client) and an Idempotency-Key header.

Parameters
FieldDescription
Idempotency-Keystringin headerRequiredA unique key (for example a UUID, up to 255 characters) for this request.See idempotency and retries.
MoreRetry 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.
Body
FieldDescription
namestringRequired
descriptionstring
statusenum: active | archived
colorstringHex color (#RRGGBB) for calendar/queue tinting.
startsAtstring (date-time)
endsAtstring (date-time)
clientIdstring (uuid)Optional client scope; omit for a workspace-wide campaign.

Responses

201
The created campaign.
400
An RFC 9457 error (application/problem+json).
401
An RFC 9457 error (application/problem+json).
403
An RFC 9457 error (application/problem+json).
404
An RFC 9457 error (application/problem+json).
409
An RFC 9457 error (application/problem+json).
422
An RFC 9457 error (application/problem+json).
429
An RFC 9457 error (application/problem+json).
bash
curl -X POST "https://api.skedcast.com/v1/campaigns" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string"
}'

Response 201

json
{
  "data": {},
  "meta": {
    "correlationId": "string"
  }
}

Get a campaign

GET/campaigns/{id}

Requires the scope campaigns.read

Parameters
FieldDescription
idstring (uuid)in pathRequired

Responses

200
The campaign + a live postCount.
400
An RFC 9457 error (application/problem+json).
401
An RFC 9457 error (application/problem+json).
403
An RFC 9457 error (application/problem+json).
404
An RFC 9457 error (application/problem+json).
422
An RFC 9457 error (application/problem+json).
429
An RFC 9457 error (application/problem+json).
bash
curl -X GET "https://api.skedcast.com/v1/campaigns/{id}" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY"

Response 200

json
{
  "data": {},
  "meta": {
    "correlationId": "string"
  }
}

Update a campaign

PATCH/campaigns/{id}

Requires the scope campaigns.manage

Partial update (name / description / status / color / planning window; ≥1 field). The client scope is immutable. Requires the campaigns.manage scope (Owner, Manager, or an Editor on the campaign's client) and an Idempotency-Key header.

Parameters
FieldDescription
idstring (uuid)in pathRequired
Idempotency-Keystringin headerRequiredA unique key (for example a UUID, up to 255 characters) for this request.See idempotency and retries.
MoreRetry 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.
Body
FieldDescription
namestring
descriptionstring
statusenum: active | archived
colorstring
startsAtstring (date-time)
endsAtstring (date-time)

Responses

200
The updated campaign.
400
An RFC 9457 error (application/problem+json).
401
An RFC 9457 error (application/problem+json).
403
An RFC 9457 error (application/problem+json).
404
An RFC 9457 error (application/problem+json).
409
An RFC 9457 error (application/problem+json).
422
An RFC 9457 error (application/problem+json).
429
An RFC 9457 error (application/problem+json).
bash
curl -X PATCH "https://api.skedcast.com/v1/campaigns/{id}" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

Response 200

json
{
  "data": {},
  "meta": {
    "correlationId": "string"
  }
}

Delete a campaign

DELETE/campaigns/{id}

Requires the scope campaigns.manage

Delete a campaign. Its posts are ungrouped, never deleted. Idempotent. Requires the campaigns.manage scope (Owner, Manager, or an Editor on the campaign's client) and an Idempotency-Key header.

Parameters
FieldDescription
idstring (uuid)in pathRequired
Idempotency-Keystringin headerRequiredA unique key (for example a UUID, up to 255 characters) for this request.See idempotency and retries.
MoreRetry 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.

Responses

200
The delete acknowledgement ({ ok: true }).
400
An RFC 9457 error (application/problem+json).
401
An RFC 9457 error (application/problem+json).
403
An RFC 9457 error (application/problem+json).
404
An RFC 9457 error (application/problem+json).
409
An RFC 9457 error (application/problem+json).
422
An RFC 9457 error (application/problem+json).
429
An RFC 9457 error (application/problem+json).
bash
curl -X DELETE "https://api.skedcast.com/v1/campaigns/{id}" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Response 200

json
{
  "data": {},
  "meta": {
    "correlationId": "string"
  }
}

Assign posts to a campaign

POST/campaigns/{id}/assign

Requires the scope campaigns.manage

Group the given posts into the campaign. On a client-scoped campaign, cross-client posts are silently skipped. Returns { assigned }. Requires the campaigns.manage scope (Owner, Manager, or an Editor on the campaign's client) and an Idempotency-Key header.

Parameters
FieldDescription
idstring (uuid)in pathRequired
Idempotency-Keystringin headerRequiredA unique key (for example a UUID, up to 255 characters) for this request.See idempotency and retries.
MoreRetry 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.
Body
FieldDescription
postIdsarray of string (uuid)Required

Responses

200
The assignment count ({ assigned }).
400
An RFC 9457 error (application/problem+json).
401
An RFC 9457 error (application/problem+json).
403
An RFC 9457 error (application/problem+json).
404
An RFC 9457 error (application/problem+json).
409
An RFC 9457 error (application/problem+json).
422
An RFC 9457 error (application/problem+json).
429
An RFC 9457 error (application/problem+json).
bash
curl -X POST "https://api.skedcast.com/v1/campaigns/{id}/assign" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "postIds": [
    "0196b0a0-0000-7000-8000-000000000001"
  ]
}'

Response 200

json
{
  "data": {},
  "meta": {
    "correlationId": "string"
  }
}

Unassign posts from a campaign

POST/campaigns/{id}/unassign

Requires the scope campaigns.manage

Un-group the given posts from the campaign. Returns { unassigned }. Requires the campaigns.manage scope (Owner, Manager, or an Editor on the campaign's client) and an Idempotency-Key header.

Parameters
FieldDescription
idstring (uuid)in pathRequired
Idempotency-Keystringin headerRequiredA unique key (for example a UUID, up to 255 characters) for this request.See idempotency and retries.
MoreRetry 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.
Body
FieldDescription
postIdsarray of string (uuid)Required

Responses

200
The unassignment count ({ unassigned }).
400
An RFC 9457 error (application/problem+json).
401
An RFC 9457 error (application/problem+json).
403
An RFC 9457 error (application/problem+json).
404
An RFC 9457 error (application/problem+json).
409
An RFC 9457 error (application/problem+json).
422
An RFC 9457 error (application/problem+json).
429
An RFC 9457 error (application/problem+json).
bash
curl -X POST "https://api.skedcast.com/v1/campaigns/{id}/unassign" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "postIds": [
    "0196b0a0-0000-7000-8000-000000000001"
  ]
}'

Response 200

json
{
  "data": {},
  "meta": {
    "correlationId": "string"
  }
}

Shift a campaign's schedule

POST/campaigns/{id}/shift

Requires the scope campaigns.manage

Move the whole campaign's still-pending schedule by a relative shiftMinutes (non-zero, ±1 year). Each target moves on its own, so one failure does not stop the rest. Returns the bulk { accepted, skipped, skippedReasons } result. Requires the campaigns.manage scope (Owner, Manager, or an Editor on the campaign's client) and an Idempotency-Key header.

Parameters
FieldDescription
idstring (uuid)in pathRequired
Idempotency-Keystringin headerRequiredA unique key (for example a UUID, up to 255 characters) for this request.See idempotency and retries.
MoreRetry 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.
Body
FieldDescription
shiftMinutesintegerRequiredNon-zero relative shift in minutes.
respectCadencebooleanAdvisory: asks SkedCast to keep each account's spacing between posts when it moves them.

Responses

200
The bulk shift result.
400
An RFC 9457 error (application/problem+json).
401
An RFC 9457 error (application/problem+json).
403
An RFC 9457 error (application/problem+json).
404
An RFC 9457 error (application/problem+json).
409
An RFC 9457 error (application/problem+json).
422
An RFC 9457 error (application/problem+json).
429
An RFC 9457 error (application/problem+json).
bash
curl -X POST "https://api.skedcast.com/v1/campaigns/{id}/shift" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "shiftMinutes": -525600
}'

Response 200

json
{
  "data": {},
  "meta": {
    "correlationId": "string"
  }
}