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

API

Media API reference

Updated

The Media API reference covers 6 endpoints of the SkedCast social media REST API. The media library: upload, import and read assets.

Media 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 endpoints reference, Post targets API reference, clients reference, Accounts, Workspace endpoints reference, Approvals API reference, campaigns reference, Analytics, Reports endpoints reference, webhooks reference, Inbox.

List library assets

GET/media

Requires the scope media.read

Parameters
FieldDescription
cursorstringin queryKeyset cursor from a previous page.See pagination.
limitintegerin queryPage size (1–100).
kindenum: image | video | gif | documentin query
folderstringin query
labelstringin queryNarrow to assets carrying this label.
clientIdstring (uuid)in query
statusenum: pending | scanning | passed | transcoding | transcoded | failed | …in query
searchstringin queryFree-text match on the filename, folder name, or any one label.
usedenum: true | false | upcomingin queryNarrow by post usage. - true: used by at least one post (an attachment, a video cover, or one platform's own media). - false: used by no post. - upcoming: sent by a post that has not published yet (a destination still scheduled, scheduled on the platform, or on hold).
MoreThese files cannot be deleted until they are removed from those posts or the posts are canceled.
sortenum: created_at | filename | sizein query
orderenum: asc | descin query
fromstring (date-time)in queryLower bound on the UPLOAD date, under every sort.
tostring (date-time)in queryUpper bound on the UPLOAD date, under every sort.

Responses

200
A page of media assets.
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/media" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY"

Response 200

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

Register an uploaded asset

POST/media

Requires the scope media.manage

Register an asset after its bytes are uploaded, so SkedCast starts processing it.

More about this endpoint

The upload sequence:

1. POST /media/presign returns assetId, key and an upload URL. 2. PUT the file to that URL (a multipart upload also calls POST /media/{id}/complete). 3. POST /media with the assetId and key from step 1 registers the asset.

The response carries readyEvent (media.ready): subscribe to it instead of polling. Requires the media.manage scope 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
assetIdstring (uuid)RequiredThe assetId from the presign response.
keystringRequiredThe key from the presign response.
clientIdstring (uuid)Optional, and best left out: the asset is filed under the client chosen at presign, which the key carries.
MoreWhen sent it must equal that client, else 400 media_bad_key (since 2026-11-27).
contentTypestringRequiredThe file's MIME type, for example image/jpeg.
sizeBytesintegerRequiredThe file size in bytes.
MoreSkedCast records the size of the stored file.
filenamestringRequiredThe original file name.
platformsarray of enum: x | linkedin | instagram | facebook | tiktok | youtube | …Optional.
MorePrepare the file for these platforms first.

Responses

201
The registered asset.
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 POST "https://api.skedcast.com/v1/media" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "assetId": "0196b0a0-0000-7000-8000-000000000001",
  "key": "string",
  "contentType": "string",
  "sizeBytes": 1,
  "filename": "string"
}'

Response 201

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

Get a library asset

GET/media/{id}

Requires the scope media.read

Parameters
FieldDescription
idstring (uuid)in pathRequired

Responses

200
The media asset.
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/media/{id}" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY"

Response 200

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

Presign a direct upload

POST/media/presign

Requires the scope media.manage

Get a presigned URL to upload a file straight to storage. The file does not pass through the API.

More about this endpoint

The upload sequence:

1. POST /media/presign returns assetId, key, expiresAt and either a single upload url or, with multipart: true, uploadId and parts[]. 2. PUT the file to the URL before it expires. For a multipart upload, PUT each part at its sizeBytes, then call POST /media/{id}/complete. 3. POST /media with the assetId and key registers the asset.

Requires the media.manage scope 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
clientIdstring (uuid)Scope the asset to one client.
MoreOmit for a workspace-wide asset.
filenamestringRequiredThe original file name.
contentTypestringRequiredThe file's MIME type, for example image/jpeg.
MoreSkedCast checks the real type after upload.
sizeBytesintegerRequiredThe file size in bytes.
multipartbooleanSet true for a large file to get uploadId and parts[] instead of one upload url.

Responses

201
The presigned upload: assetId, key, expiresAt, and a single url or, for a multipart upload, uploadId and parts[].
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 POST "https://api.skedcast.com/v1/media/presign" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "filename": "string",
  "contentType": "string",
  "sizeBytes": 1
}'

Response 201

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

Complete a multipart upload

POST/media/{id}/complete

Requires the scope media.manage

Finish a multipart upload started with POST /media/presign and multipart: true. Send the key and uploadId from the presign and every part's partNumber with the ETag its PUT returned, in order. Then register the asset with POST /media, as for a single upload.

More about this endpoint

The key must be the one issued for this asset; any other is refused. Requires the media.manage scope 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
keystringRequiredThe key the presign returned.
uploadIdstringRequiredThe uploadId the presign returned.
partsarray of objectRequired

Responses

201
The upload is assembled: { assetId }.
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/media/{id}/complete" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "key": "string",
  "uploadId": "string",
  "parts": [
    {
      "partNumber": 1,
      "etag": "string"
    }
  ]
}'

Response 201

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

Import an asset from a URL

POST/media/import-url

Requires the scope media.manage

Import an image or video into the library from a URL (HTTPS URLs only). Requires the media.manage scope 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
urlstring (uri)RequiredAn HTTPS URL of the image or video to import.
clientIdstring (uuid)Scope the asset to one client.
MoreOmit for a workspace-wide asset.
platformsarray of enum: x | linkedin | instagram | facebook | tiktok | youtube | …Optional.
MorePrepare the file for these platforms first.

Responses

201
The imported asset.
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 POST "https://api.skedcast.com/v1/media/import-url" \
  -H "Authorization: Bearer $SKEDCAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com"
}'

Response 201

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