Skip to main content
POST
Upload a file for a new support ticket

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 file: at most 20 MB, a PNG, JPEG, WebP or GIF picture, a PDF, plain text (UTF-8) or a CSV file. Usertick reads the type from the content, never from the name or the header.

Response

Uploaded.

A file waiting for its message. Nobody else sees it until the message is sent, and one that no message takes within 24 hours is deleted.

id
string<uuid>
required

Send it in uploadIds of the message the file goes with.

fileName
string
required

The name the file is kept under: the path is dropped, and the name ends with an extension of its type.

contentType
enum<string>
required

The type the file's content shows, whatever the request said.

Available options:
image/png,
image/jpeg,
image/webp,
image/gif,
application/pdf,
text/plain,
text/csv
byteSize
integer
required
Last modified on November 25, 2026