Uploads

Two steps: POST /uploads with an empty body returns a presigned PUT URL, you PUT the file bytes directly to media storage with a Content-Type header of your choice, and then you reference the upload_id from POST /posts. ShortSync finalizes the upload lazily on first use and validates the actual Content-Type against the allow-list then.

The presigned URL pattern keeps the bytes on the path from your client to storage without proxying through our servers. Big files, no latency hit.

Base path: https://api.shortsync.app/v1

EndpointMethodPathScopePurpose
List uploadsGET/uploadsuploads:writeCursor-paginated list, newest first
Start an uploadPOST/uploadsuploads:writeReserve a slot, get a presigned PUT URL
Get an uploadGET/uploads/{upload_id}uploads:writeRead current state; finalizes lazily if bytes are in storage
Delete an uploadDELETE/uploads/{upload_id}uploads:writeRemove it from the library and cancel its unpublished posts
Group into carouselPOST/uploads/carousel-groupuploads:writeBundle 2-50 existing uploads into a single carousel
Set custom thumbnailPUT/uploads/{upload_id}/thumbnailuploads:writeUpload a custom thumbnail image for this upload
Remove custom thumbnailDELETE/uploads/{upload_id}/thumbnailuploads:writeRemove a previously-set custom thumbnail

List uploads

GET/uploads·uploads:write

Returns uploads in the workspace, newest first. Cursor-paginated. Filter by status (reserved or ready) and creation time. List calls do not lazy-finalize stale reservations. That still happens on GET /uploads/{upload_id} (and on the opportunistic background timer after POST /uploads).

Query parameters

FieldTypeDescription
statusstringComma-separated. Allowed: reserved, ready.
content_kindstringOnly this kind: video, image, text or carousel. Carousels include carousel_items: each item's upload_id, original filename, content_kind and 0-based position.
created_afterISO 8601Inclusive lower bound on created_at.
created_beforeISO 8601Exclusive upper bound on created_at.
cursorstringOpaque cursor from pagination.next_cursor.
limitinteger1-100, default 25.

Example request

bash
curl "https://api.shortsync.app/v1/uploads?status=ready&limit=5" \
  -H "Authorization: Bearer $TOKEN"

Example response

json
{
  "data": [
    {
      "id": "fb18b1e8-9b66-4b3b-a3ed-e3cf8a9b2c1f",
      "status": "ready",
      "filename": "cooking-reel-001.mp4",
      "content_type": "video/mp4",
      "size_bytes": 12450112,
      "workspace_id": "bbdeeb40-c106-4ed6-95b5-c0e76086c957",
      "media": {
        "content_kind": "video",
        "duration_seconds": 53.2,
        "width": 1080,
        "height": 1920,
        "aspect_ratio": 0.5625,
        "fps": 30,
        "bitrate_kbps": 4800,
        "video_codec": "h264",
        "audio_codec": "aac"
      },
      "error": null,
      "created_at": "2026-06-09T13:34:00Z",
      "updated_at": "2026-06-09T13:35:30Z"
    }
  ],
  "pagination": {
    "next_cursor": null,
    "has_more": false
  }
}

Start an upload

POST/uploads·uploads:write

Returns a presigned PUT URL valid for one hour. The body is optional; pass filename if you want the original name preserved on the upload row. When you pass a filename, the response includes a required_headers map that you MUST echo verbatim on the PUT. Its values are baked into the V4 signature, so anything else fails with 403 SignatureDoesNotMatch. Content type is not taken at this step; set it on the PUT itself and ShortSync validates lazily at finalize. Already have the file at a public link? Pass source_url instead and ShortSync downloads it for you (see below).

Request body

FieldTypeDescription
source_urlstringOptional. A public https:// direct-download link to a video or image. ShortSync downloads it and returns a ready upload, with no PUT step. See Upload from a URL.
filenamestringOptional. Recorded on the upload so the dashboard and GET /uploads/{id} show the original name. Max 255 chars; no /, \, or control characters. Omit it and the upload is stored as upload.<ext> instead, where ext is derived from the PUT's MIME.

Example request

bash
curl -X POST https://api.shortsync.app/v1/uploads \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"filename": "cooking-reel-001.mp4"}'

Example response

json
{
  "upload_id": "fb18b1e8-9b66-4b3b-a3ed-e3cf8a9b2c1f",
  "presigned_url": "https://media.shortsync.app/.../?X-Amz-Algorithm=...",
  "method": "PUT",
  "expires_at": "2026-06-09T14:35:00Z",
  "workspace_id": "bbdeeb40-c106-4ed6-95b5-c0e76086c957",
  "required_headers": {
    "x-amz-meta-filename": "cooking-reel-001.mp4"
  }
}

required_headers is only present when filename was set on the POST. Send no filename, get no required_headers back, and skip step 2's header echo.

PUT the file bytes

PUT the bytes to the presigned_url. Set Content-Type to the actual MIME of your file. ShortSync stores whatever header you send and validates it at finalize. Allowed: video/mp4, video/quicktime, video/webm, video/x-msvideo, video/x-matroska, image/jpeg, image/png, image/webp, image/heic, image/gif. If you received required_headers above, every key/value in that map must appear on the PUT exactly, since they're part of the V4 signature.

bash
curl -X PUT "$PRESIGNED_URL" \
  -H "Content-Type: video/mp4" \
  -H "x-amz-meta-filename: cooking-reel-001.mp4" \
  --upload-file ./cooking-reel-001.mp4

A 200 from the storage host means the bytes landed. You can call POST /posts next; the upload is finalized automatically on first reference. The MIME allow-list, size caps (2 GB video, 20 MB image), and workspace storage quota are validated then; type mismatch returns 415, size or quota issues return 413.

Upload from a URL

Send source_url and ShortSync downloads the file itself, then answers 201 with a ready upload you can pass to POST /posts straight away. This is the easy route for Zapier, Make and n8n, which can't always PUT raw bytes. The link must be a public direct download (S3, Dropbox ?dl=1, Google Drive uc?export=download&id=…) and the server must send a Content-Length header. Links to private networks are refused. When the link has no file extension (Google Drive), also pass a filename like clip.mp4 so ShortSync can tell the media type. The call waits for the download, so large videos take a while; send an Idempotency-Key so a retry after a timeout doesn't import the file twice.

bash
curl -X POST https://api.shortsync.app/v1/uploads \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2a9b-recipe-001" \
  -d '{"source_url": "https://example-bucket.s3.amazonaws.com/clips/recipe.mp4"}'
json
{
  "upload_id": "fb18b1e8-9b66-4b3b-a3ed-e3cf8a9b2c1f",
  "status": "ready",
  "filename": "recipe.mp4",
  "content_type": "video/mp4",
  "size_bytes": 12450112,
  "source_url": "https://example-bucket.s3.amazonaws.com/clips/recipe.mp4",
  "workspace_id": "bbdeeb40-c106-4ed6-95b5-c0e76086c957"
}

If the file can't be imported (download failed, no Content-Length, not a video or image, too large, or the storage quota is full) you get 422 with a message that says which.

Get an upload

GET/uploads/{upload_id}·uploads:write

Returns the current state. status is reserved until bytes are in storage, then ready. On the first call after bytes land, this endpoint finalizes the upload inline: it reads the stored Content-Type, validates it against the MIME allow-list, checks size caps and the workspace storage quota, then marks the upload ready. Polling before the PUT is cheap; it just returns reserved.

Example request

bash
curl https://api.shortsync.app/v1/uploads/$UPLOAD_ID \
  -H "Authorization: Bearer $TOKEN"

Example response

json
{
  "id": "fb18b1e8-9b66-4b3b-a3ed-e3cf8a9b2c1f",
  "status": "ready",
  "filename": "upload",
  "content_type": "video/mp4",
  "size_bytes": 12450112,
  "workspace_id": "bbdeeb40-c106-4ed6-95b5-c0e76086c957",
  "media": {
    "content_kind": "video",
    "duration_seconds": null,
    "width": null,
    "height": null,
    "aspect_ratio": null,
    "fps": null,
    "bitrate_kbps": null,
    "video_codec": null,
    "audio_codec": null
  },
  "error": null,
  "created_at": "2026-06-09T13:34:00Z",
  "updated_at": "2026-06-09T13:35:30Z"
}

filename is the value you passed to POST /uploads at reservation, or upload.<ext> (extension derived from the stored MIME) when you didn't. content_type is the canonical MIME ShortSync read off the stored object.

media.* is populated by a server-side ffprobe at lazy finalize. Most fields fill in for standard video MIMEs; unusual codecs may come back null without affecting the rest of the upload.

Errors

FieldTypeDescription
404 UPLOAD_NOT_FOUNDerrorNo upload with that ID belongs to this workspace.
413 FILE_TOO_LARGEerrorActual stored file size exceeds the per-kind cap (2 GB video, 20 MB image). The stored object is deleted before responding.
413 STORAGE_QUOTA_EXCEEDEDerrorFinalizing this upload would push the workspace over its storage limit.
415 UNSUPPORTED_FILE_TYPEerrorThe Content-Type on the stored object isn't in the allow-list. The stored object is deleted before responding; reserve a new upload_id and PUT again with a correct Content-Type.

Delete an upload

DELETE/uploads/{upload_id}·uploads:write

Removes the upload from the library, same as deleting it in the dashboard. Its file and thumbnails are deleted and any scheduled, queued or draft posts made from it are cancelled. Posts that are already published stay live on their platforms. Workspace clients can't delete.

Example request

bash
curl -X DELETE https://api.shortsync.app/v1/uploads/$UPLOAD_ID \
  -H "Authorization: Bearer $TOKEN"

Response

204 with no body.

Set custom thumbnail

PUT/uploads/{upload_id}/thumbnail·uploads:write

Uploads a custom thumbnail image for this upload. Send the image as multipart/form-data with a single thumbnail file field. When a custom thumbnail is set, platforms that support it (YouTube, Instagram Reels, Facebook Reels, Pinterest) will use it at publish time.

Request body (multipart/form-data)

FieldTypeDescription
thumbnailfileRequired. An image file (image/jpeg, image/png, image/webp, etc.). Maximum 10 MB.

Example request

bash
curl -X PUT https://api.shortsync.app/v1/uploads/$UPLOAD_ID/thumbnail \
  -H "Authorization: Bearer $TOKEN" \
  -F "thumbnail=@my-cover.jpg"

Example response

json
{
  "upload_id": "fb18b1e8-9b66-4b3b-a3ed-e3cf8a9b2c1f",
  "thumbnail_url": "https://media.shortsync.app/.../thumbnail_custom_my-cover.jpg"
}

Calling PUT again replaces the previous custom thumbnail. The old S3 object is orphaned (cleaned up later); the database is always the source of truth.

Errors

FieldTypeDescription
400 THUMBNAIL_REQUIREDerrorNo 'thumbnail' file field found in the form data.
400 INVALID_FILE_TYPEerrorThe file is not an image (Content-Type does not start with image/).
400 FILE_TOO_LARGEerrorThe file exceeds 10 MB.
404 UPLOAD_NOT_FOUNDerrorNo upload with that ID belongs to this workspace.

Remove custom thumbnail

DELETE/uploads/{upload_id}/thumbnail·uploads:write

Removes a previously-set custom thumbnail. The S3 object is deleted best-effort. Returns 204 No Content on success, including when there was no custom thumbnail to remove (idempotent).

Example request

bash
curl -X DELETE https://api.shortsync.app/v1/uploads/$UPLOAD_ID/thumbnail \
  -H "Authorization: Bearer $TOKEN"

Returns 204 with no body. After removal, publishing uses the auto-generated frame thumbnail (or thumbnail_timestamp_ms if set on the post).

Errors

FieldTypeDescription
404 UPLOAD_NOT_FOUNDerrorNo upload with that ID belongs to this workspace.