Skip to main content
POST
Upload a picture to the media library

Authorizations

Authorization
string
header
required

An API key (utk_live_...) or an app's OAuth access token (uto_...).

Headers

Idempotency-Key
string

Any 1 to 255 printable ASCII characters, without a space at either end. The answer to the first request with a key is kept for 24 hours per credential: the same request again gets it back (Idempotent-Replayed: true), another request with the key is 409 PUB-002-002, and while the first still runs 409 PUB-002-003. A server error is not kept, and a request that never answered frees its key after 2 minutes: a retry with the key then runs again.

Maximum string length: 255

Body

multipart/form-data
file
file
required

The picture: at most 10 MB, a PNG, JPG, WebP or GIF. Its part's Content-Type names the format, and the content must be that format.

Response

Uploaded.

id
string<uuid>
required
name
string
required

The file name.

kind
enum<string>
required
Available options:
image,
video
mimeType
string
required
bytes
integer
required
url
string<uri>
required

What a survey draft's picture or video field takes.

posterUrl
string | null
required

A video's still frame (a question's videoPoster); null for an image.

inLibrary
boolean
required

True for the organization's library, false for the member's own uploads.

createdAt
string<date-time>
required
Example:

"2026-09-30T10:00:00.000Z"

Last modified on November 30, 2026