POST
/filesUpload 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
| Name | In | Type | Description |
|---|---|---|---|
namerequired | query | string | File name, including its extension |
Response
File uploaded
| Field | Type | Description |
|---|---|---|
fileIdrequired | string | TypeID - a type-prefixed UUID |
urlrequired | string | Storage URL to attach by fileId; omit it and send fileId instead of url |
namerequired | string | |
contentTyperequired | string | |
sizerequired | number | Size in bytes |
familyrequired | string | File family (image, pdf, document, ...) |
Errors
400Missing file name, or an empty body401Unauthorized413File too large for its type415File type not allowedExample request
curl \
-X POST \
"https://feedback.quackback.io/api/v1/files" \
-H "Authorization: Bearer qb_your_api_key_here"