Skip to content
Navigation
POST/files

Upload a file

Upload a file so it can be attached to a conversation reply, note, or ticket. Send the raw file bytes as the request body (not multipart/form-data) and the file name as the `name` query parameter. The response carries a `fileId`: attach it by setting `attachments: [{ fileId }]` on the reply/note/ticket request.

Parameters

NameInTypeDescription
namerequiredquerystringFile name, including its extension

Response

File uploaded

FieldTypeDescription
fileIdrequiredstringTypeID - a type-prefixed UUID
urlrequiredstringStorage URL to attach by fileId; omit it and send fileId instead of url
namerequiredstring
contentTyperequiredstring
sizerequirednumberSize in bytes
familyrequiredstringFile family (image, pdf, document, ...)

Errors

400Missing file name, or an empty body
401Unauthorized
413File too large for its type
415File type not allowed

Example request

curl \
  -X POST \
  "https://feedback.quackback.io/api/v1/files" \
  -H "Authorization: Bearer qb_your_api_key_here"