Skip to main content
POST
Upload Content
This is the primary way to get content into ShortKit. Send metadata and get back signed upload URLs — your client uploads files directly to cloud storage, no proxying through your server. This endpoint accepts both publishable keys and secret keys, making it safe to call directly from mobile apps and browsers.
Building client-side uploads? A guide for integrating direct uploads into your app is coming soon.
Automatic captions and language detection. ShortKit generates captions for every video automatically — no configuration needed. Once processing completes, the detected language is stored as customMetadata.language (BCP 47 code, e.g. "en", "es"). You can use this field to filter the feed by language.

Request body

string
required
"video" or "carousel".
string
required
Display title. Max 200 characters.
string
Optional description. Max 2000 characters.
string[]
Tags for categorization and filtering.
string
Editorial section (e.g., "Sports", "News"). Max 200 characters.
string
Content author name. Max 200 characters.
object
Arbitrary key-value pairs passed through to the feed.
boolean
When true, playback is gated behind a short-lived signed streaming URL and the item’s streamingUrl is withheld until one is issued. When omitted, defaults to your organization’s default. See Protected Content.
string
default:"other"
"ios_upload" or "other". Set to "ios_upload" for videos recorded on iOS devices to enable color-accurate thumbnail extraction. iOS HEVC recordings frequently omit color metadata, which can cause default first-frame thumbnails to render with incorrect colors. Marking the origin enables an alternate extraction path that infers the correct color space.Only applies to contentType: "video". No effect for carousels. If you also render this content in a custom feed via the SDK, pair with the origin field on FeedInput.video.
string
ISO 8601 timestamp. Content won’t appear in the feed before this time.
string
ISO 8601 timestamp. Content is removed from the feed after this time.
object[]
Carousel only. Defines the image slots for the carousel. Min 1, max 10. Each object can include:
  • position (integer) — Display order (0-indexed). Defaults to array index. Positions must be unique.
  • altText (string) — Accessibility text for the image.
The number of objects in this array determines how many signed upload URLs you receive.
number
Carousel only. Seconds between automatic image transitions.
string
A webhook URL that ShortKit will POST to as the content moves through the processing pipeline. Applies to "video" and "carousel" content types. See Callback events for payload shape and delivery behavior.

Uploading a video

Send a POST with contentType: "video" and your metadata. The response includes a signed uploadUrl — your client PUTs the video file directly to that URL.

A carousel upload takes three steps: create the upload, send each image to its signed URL, then finalize. The carousel stays queued until you finalize it.
To create a carousel in a single request, use Create Image Carousel instead. Use this flow when the carousel’s files total more than 30 MB.
1

Create the upload

Specify the image slots in the images array. The response returns a signed upload URL for each slot.
2

Upload each image

PUT each image to its slot’s signed URL. Images can be uploaded in parallel. Signed URLs are valid for 24 hours.
3

Finalize

Call finalize once every image is uploaded. Finalize requires a secret key, so call it from your server — an app holding only a publishable key can create the upload and send the images, but can’t finish it.
Finalize checks each uploaded file. It must be a JPEG, PNG, WebP, or GIF of at most 10 MB and 40 megapixels; the format is read from the image itself, not from the Content-Type you sent with the upload. A file that fails, or a slot that was never uploaded, is reported with an error; a rejected file is deleted, and the slot is removed from the carousel so the feed only shows valid images.The carousel becomes ready if at least one image is valid, otherwise errored, and is published automatically if your organization auto-publishes. A carousel created with a publishable key stays unpublished unless your organization has enabled auto-publish for SDK uploads.
If finalize returns 503, image storage was briefly unavailable and the carousel is unchanged — call finalize again. Finalizing a carousel that is no longer awaiting upload, including a second call after a successful one, returns 400.

A video carousel is a container that references existing video content items. It holds up to 100 videos, and each video can belong to any number of carousels.
1

Get the videos ready

Upload each video with this endpoint (see Uploading a video) or bring it in with Import. A video can only be added to a carousel once its uploadStatus is ready. To know when that happens, pass a callbackUrl and wait for the ready event (see Callback events), or poll GET /v1/content/{id}. Protected videos can’t be added to a carousel.
2

Create the carousel

Create the carousel with POST /v1/content using a secret key. The request accepts contentType, title, description, tags, section and author. The carousel is ready as soon as it’s created.
3

Add videos

Add videos in one request or several. position sets each video’s place in the carousel (0-indexed); to add a video at the end, use the current number of videos. A video that’s already in the carousel is skipped.
The response lists every video in the carousel. Each entry’s id is its entry_id, which you need to remove that video later, so store it.
Sending {"videos": []} returns the current entries without changing the carousel.
4

Publish

If your organization has auto-publish on (the default), the carousel is published when it’s created and appears in the feed once it has at least one video. With auto-publish off, publish it yourself:

Reordering and removing videos

To reorder, send every video’s content id in the order you want. A video left out of the list keeps its old position, so always send the full list.
To remove a video, use its entry_id from the add response. The remaining videos are renumbered from 0.
Changes to a carousel appear the next time the feed is fetched. Empty carousels are excluded from the feed.

Uploading in bulk

There is no batch upload endpoint — each content item requires its own POST /v1/content/upload call. To upload many items, make requests in parallel:
For bulk server-side ingestion from URLs (cloud storage, CMS, etc.), use Import instead — it accepts up to 100 items in a single request.

Callback events

When you provide a callbackUrl, ShortKit sends a POST request to that URL at each stage of processing. Your endpoint must respond with a 2xx status code to acknowledge receipt.

Video uploads

ShortKit delivers up to three callbacks per video upload: 1. content.imported with status: "processing" Sent when your file has been received and processing has begun. If a playbackId is present, store it alongside your content record — the video is already streamable at this point, though transcoding is not yet complete. Viewers of longer videos may experience buffering near the end until encoding finishes.
playbackId may be null in this callback if processing is still in its earliest stage. The ready callback always includes a non-null playbackId.
2. content.imported with status: "ready" Sent when transcoding completes and the video is fully available at all quality levels. The payload shape is identical to the processing callback, with status set to "ready". playbackId is always present. 3. content.import_failed with status: "error" Sent if processing fails. The payload includes an error field with a human-readable description of the failure. No playbackId is included.
A single content.imported callback fires when you finalize the carousel. The status is "ready" if at least one image is valid, or "errored" if none are. Only valid images are included in the images array.
A carousel created with Create Image Carousel sends the same content.imported callback when it’s created, with each image’s alt text in alt.
externalId reflects the value you provided on upload, or null if not set.

Retry behavior

Each callback is attempted up to 3 times. If your endpoint returns a non-2xx status or is unreachable, ShortKit retries after 1 second, then again after 5 seconds. If all three attempts fail, the callback is abandoned. Callbacks are fire-and-forget — a failed callback does not affect processing. If your endpoint was down and you missed a callback, you can always retrieve the current status by polling GET /v1/content/{id}.