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
| Endpoint | Method | Path | Scope | Purpose |
|---|---|---|---|---|
| List uploads | GET | /uploads | uploads:write | Cursor-paginated list, newest first |
| Start an upload | POST | /uploads | uploads:write | Reserve a slot, get a presigned PUT URL |
| Get an upload | GET | /uploads/{upload_id} | uploads:write | Read current state; finalizes lazily if bytes are in storage |
| Delete an upload | DELETE | /uploads/{upload_id} | uploads:write | Remove it from the library and cancel its unpublished posts |
| Group into carousel | POST | /uploads/carousel-group | uploads:write | Bundle 2-50 existing uploads into a single carousel |
| Set custom thumbnail | PUT | /uploads/{upload_id}/thumbnail | uploads:write | Upload a custom thumbnail image for this upload |
| Remove custom thumbnail | DELETE | /uploads/{upload_id}/thumbnail | uploads:write | Remove a previously-set custom thumbnail |
List uploads
/uploads·uploads:writeReturns 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
| Field | Type | Description |
|---|---|---|
| status | string | Comma-separated. Allowed: reserved, ready. |
| content_kind | string | Only 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_after | ISO 8601 | Inclusive lower bound on created_at. |
| created_before | ISO 8601 | Exclusive upper bound on created_at. |
| cursor | string | Opaque cursor from pagination.next_cursor. |
| limit | integer | 1-100, default 25. |
Example request
curl "https://api.shortsync.app/v1/uploads?status=ready&limit=5" \
-H "Authorization: Bearer $TOKEN"Example response
{
"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
/uploads·uploads:writeReturns 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
| Field | Type | Description |
|---|---|---|
| source_url | string | Optional. 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. |
| filename | string | Optional. 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
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
{
"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.
curl -X PUT "$PRESIGNED_URL" \
-H "Content-Type: video/mp4" \
-H "x-amz-meta-filename: cooking-reel-001.mp4" \
--upload-file ./cooking-reel-001.mp4A 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.
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"}'{
"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
/uploads/{upload_id}·uploads:writeReturns 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
curl https://api.shortsync.app/v1/uploads/$UPLOAD_ID \
-H "Authorization: Bearer $TOKEN"Example response
{
"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
| Field | Type | Description |
|---|---|---|
| 404 UPLOAD_NOT_FOUND | error | No upload with that ID belongs to this workspace. |
| 413 FILE_TOO_LARGE | error | Actual stored file size exceeds the per-kind cap (2 GB video, 20 MB image). The stored object is deleted before responding. |
| 413 STORAGE_QUOTA_EXCEEDED | error | Finalizing this upload would push the workspace over its storage limit. |
| 415 UNSUPPORTED_FILE_TYPE | error | The 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
/uploads/{upload_id}·uploads:writeRemoves 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
curl -X DELETE https://api.shortsync.app/v1/uploads/$UPLOAD_ID \
-H "Authorization: Bearer $TOKEN"Response
204 with no body.
Group into carousel
/uploads/carousel-group·uploads:writeBundles two or more existing uploads into a single carousel. Each child must have been created via POST /uploads and had its bytes PUT to the presigned URL before calling this endpoint. The returned upload_id is what you pass to POST /posts to publish the carousel.
Request body
| Field | Type | Description |
|---|---|---|
| child_upload_ids | string[] | Required. Ordered list of upload IDs to group. Minimum 2, maximum 50. Position 0 is the leftmost slide. No duplicates; no nesting (a carousel cannot contain another carousel). |
| cover_index | integer | Optional. 0-based index of the item to use as the carousel cover image. Defaults to 0 (the first item). Must be within the bounds of child_upload_ids. |
Example request
curl -X POST https://api.shortsync.app/v1/uploads/carousel-group \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"child_upload_ids": [
"fb18b1e8-9b66-4b3b-a3ed-e3cf8a9b2c1f",
"a204c1d0-7e21-4f5a-8c3e-2b8f9d6e1a07",
"c8e5f321-1a4b-49d7-b6c2-5f3e8a9d0b12"
],
"cover_index": 0
}'Example response 201
{
"upload_id": "d4e7a932-5c18-4f6b-9a2d-1b3e8c7f0d54",
"child_count": 3,
"content_type": "carousel",
"cover_index": 0,
"has_video": false,
"has_image": true
}Use the upload_id from the response as the upload_id in POST /posts. The carousel's caption and platform settings are set on the post, not on the carousel itself.
Per-platform carousel limits
Each platform enforces its own maximum item count at publish time. If the carousel exceeds a target platform's limit, that target fails with TOO_MANY_CAROUSEL_ITEMS. The API accepts up to 50 items so you can build one carousel and fan it out; just be aware of per-platform caps.
| Platform | Max items | Media types |
|---|---|---|
| 10 | Images + video | |
| TikTok | 35 | Images only |
| 30 | Images only | |
| 20 | Images only | |
| Threads | 10 | Images + video |
| X (Twitter) | 4 | Images only |
| Bluesky | 4 | Images only |
| 5 | Images only | |
| Telegram | 10 | Images + video |
| Mastodon | 4 | Images only |
| Discord | 10 | Images + video |
| Tumblr | 10 | Images + video (one video max) |
| Pixelfed | 20 | Images and video (the connected server's album cap applies, default 4) |
| Not supported | One video or image per post | |
| Google Business Profile | Not supported | One photo per post |
Errors
| Field | Type | Description |
|---|---|---|
| 400 INVALID_CHILDREN | error | child_upload_ids is missing, not an array, or has fewer than 2 items. |
| 400 TOO_MANY_CHILDREN | error | More than 50 items in child_upload_ids. |
| 400 DUPLICATE_CHILDREN | error | The same upload ID appears more than once in the array. |
| 400 NESTED_CAROUSEL | error | One of the children is itself a carousel. Nesting is not allowed. |
| 404 CHILDREN_NOT_FOUND | error | One or more upload IDs don't exist in this workspace. |
| 404 CHILDREN_NOT_FINALIZED | error | One or more uploads haven't had their bytes PUT yet. Finish uploading before grouping. |
Set custom thumbnail
/uploads/{upload_id}/thumbnail·uploads:writeUploads 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)
| Field | Type | Description |
|---|---|---|
| thumbnail | file | Required. An image file (image/jpeg, image/png, image/webp, etc.). Maximum 10 MB. |
Example request
curl -X PUT https://api.shortsync.app/v1/uploads/$UPLOAD_ID/thumbnail \
-H "Authorization: Bearer $TOKEN" \
-F "thumbnail=@my-cover.jpg"Example response
{
"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
| Field | Type | Description |
|---|---|---|
| 400 THUMBNAIL_REQUIRED | error | No 'thumbnail' file field found in the form data. |
| 400 INVALID_FILE_TYPE | error | The file is not an image (Content-Type does not start with image/). |
| 400 FILE_TOO_LARGE | error | The file exceeds 10 MB. |
| 404 UPLOAD_NOT_FOUND | error | No upload with that ID belongs to this workspace. |
Remove custom thumbnail
/uploads/{upload_id}/thumbnail·uploads:writeRemoves 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
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
| Field | Type | Description |
|---|---|---|
| 404 UPLOAD_NOT_FOUND | error | No upload with that ID belongs to this workspace. |