Skip to content

Download a support attachment

GET /api/v2/support/attachments/{id}

Downloads one file attached to a support ticket. Use the downloadUrl from the attachment in GET /api/v2/support/tickets/{id}. It already holds the attachment ID (tatt_…) and the ticketId query parameter. Some attachments have a direct https:// downloadUrl instead. Open those links directly.

The response is the file itself, not JSON. Content-Disposition carries the file name. Content-Type is application/pdf for PDF files and image/ plus the file extension for everything else. Save the file under the name from Content-Disposition.

Authentication: An API key with the scope read:support. About keys and scopes

Request

Path parameters

idstringrequired
The ticket attachment ID (tatt_…).

Query parameters

ticketIdstringrequired
The ID of the ticket the file is attached to (tkt_…).

Example

GET /api/v2/support/attachments/{id}
curl "https://cloud.hostup.se/api/v2/support/attachments/tatt_01hxa3b4c5d6e7f8g9h0j1k2m3?ticketId=tkt_01hxa3b4c5d6e7f8g9h0j1k2m3" \
-H "Authorization: Bearer $HOSTUP_API_KEY"

Responses

200 The file. Content-Type is application/pdf for PDF files and image/ plus the file extension for other files. Use the file name in Content-Disposition.

Content type: application/octet-streamapplication/pdfimage/pngimage/jpeg

Errors

Errors are Problem Details with a stable code. Branch on the code, not on the text.

400code is invalid_request. ticketId is missing or invalid. The same code is returned for a malformed attachment ID.
401Unauthorized. Authentication is required.
403code is forbidden. The ticket does not exist or is not yours.
404code is attachment_not_found. The file is not attached to that ticket.
429Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers.
500Internal error. Retry later or contact support if the issue persists.