Download Support Ticket Attachment
GET https://api.suger.cloud/org/{orgId}/support/ticket/{ticketId}/attachment/{attachmentId}
Authenticated download of a support-ticket attachment (GitHub-Issues backend). Verifies that the caller's org owns the ticket and that the ticket references this attachment, then redirects to a short-lived signed URL. Pass format=JSON to receive that URL in the response body, which is what a browser requires: it cannot follow this redirect, because the Authorization header makes the request preflighted and a preflighted request that is redirected to another origin fails.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
orgId | path | string | yes | Organization ID |
ticketId | path | string | yes | Ticket ID |
attachmentId | path | string | yes | Attachment ID |
format | query | string | no | Set to JSON to receive the signed URL in the response body. Omit for the default redirect. |
Responses
200 — The signed URL (format=JSON only)
Content-Type: application/json · Schema: SupportTicketAttachmentURL
SupportTicketAttachmentURL fields:
| Field | Type | Required | Description |
|---|---|---|---|
expiresIn | integer | no | ExpiresIn is how long the URL stays valid, in seconds. |
url | string | no |
302 — Redirect to a short-lived download URL
Content-Type: application/json
404 — Not found
Content-Type: application/json
500 — Internal server error
Content-Type: application/json
Example
Generated from this operation's schema. Values are placeholders —
substitute your own ids, and set SUGER_TOKEN to a bearer token
from the OAuth client-credentials exchange.
Request
curl -X GET 'https://api.suger.cloud/org/{orgId}/support/ticket/{ticketId}/attachment/{attachmentId}' \
-H "Authorization: Bearer $SUGER_TOKEN" Response — 200
{
"expiresIn": 1,
"url": "https://example.com"
} Error — 404
"string" View as Markdown · API reference overview
Spotted something wrong or out of date on this page? Tell us and we'll correct it.