Skip to main content
POST
cURL

Headers

X-CSRF-Token
string
required

Echoes the token from the current session. Required on every unsafe method.

Idempotency-Key
string

Optional here. Supplying one makes a repeated submission resolve to the record already created instead of a second one.

Required string length: 8 - 128

Path Parameters

ticketID
string<uuid>
required

Body

multipart/form-data
file
file
required
message
string

Response

Attached

id
string<uuid>
required
kind
enum<string>
required
Available options:
photo,
document
fileName
string
required
mediaType
string
required
sizeBytes
integer<int64>
required
downloadable
boolean
required

False for a file that lives in Telegram rather than here.

createdAt
string<date-time>
required
messageId
integer<int64>

Present on the upload response; the message the file was hung on.