Skip to content

Download a file of a support ticket

GET /v1/tickets/{ticketRef}/files/{fileId}

Downloads a file sent with one of the ticket's messages, as it is: its type in Content-Type, its size in Content-Length and its name in Content-Disposition (always as an attachment).

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

support:read
View tickets. Read this account's support tickets.

Path parameters

FieldType and description
ticketRef Required

string

The ticket's id: its reference, like RF-7KQ2MX (any case).

fileId Required

string

The file's id (in the message's files).

Example request

curl "https://api.rabbitflare.com/v1/tickets/RF-7KQ2MX/files/5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN" \
  -OJ

Response

200 OK The answer is the file itself, as application/octet-stream, without the data envelope.

Example response

200 OK

The file itself, as application/octet-stream, without the data envelope.

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

502 bad_gateway

Something on our side didn't answer properly.

Try again in a moment.

Rate limit

Read requests: 120 a minute per token, 240 per account. More in Rate limits.

Added on .

Popular

API docs