support
GET /v1/tickets/{ticketId}/attachments/{attachmentId}
Download a ticket attachment.
Authentifizierung
Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung tickets.view verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.
Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.
Ausprobieren
Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.
curl -X GET https://api.zinndigital.com/v1/tickets/{ticketId}/attachments/{attachmentId} \
-H "Authorization: Bearer zdk_live_…"Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole
Details
The file's bytes, served `Content-Disposition: attachment` with `nosniff` and a sandboxing CSP so it cannot execute in the caller's origin. ⛔ Answers **422**, not 404, when the file exists but has not passed its malware scan — a customer whose upload is quarantined must not be told their file vanished. The error code distinguishes `pending` (wait) from `infected`/`error` (never served). Requires `tickets.view`.
Parameter
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
ticketId (path) | Uuid | Ja | The ticket's id. |
attachmentId (path) | Uuid | Ja | The attachment's id. |
Fehler, die dieser Endpunkt zurückgeben kann
401 · 403 · 404 · 422 · 429