support
GET /v1/tickets/{ticketId}/attachments/{attachmentId}
Download a ticket attachment.
Autentikasi
Kirim kunci API sebagai token bearer. Kunci tersebut harus memiliki izin tickets.view; kunci tanpa izin tersebut akan ditolak dengan status 403, bukan 404.
Endpoint ini tidak memerlukan id organisasi. Kunci Anda telah mengidentifikasi organisasi tempatnya berafiliasi, dan respons akan dibatasi untuk organisasi tersebut.
Coba
Ganti apa pun di dalam tanda kurung sudut dengan nilai Anda sendiri, dan placeholder kunci dengan kunci dari dasbor Anda.
curl -X GET https://api.zinndigital.com/v1/tickets/{ticketId}/attachments/{attachmentId} \
-H "Authorization: Bearer zdk_live_…"Sudah masuk? Konsol API di dasbor Anda akan mengisi ID organisasi asli dan kunci Anda sendiri, serta menjalankan permintaan terhadap API langsung sehingga Anda dapat melihat respons aktualnya. Buka titik akhir ini di konsol API
Detail
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
| Nama | Jenis | Wajib | Tentang apa ini |
|---|---|---|---|
ticketId (path) | Uuid | Ya | The ticket's id. |
attachmentId (path) | Uuid | Ya | The attachment's id. |
Kesalahan yang dapat dikembalikan oleh titik akhir ini
401 · 403 · 404 · 422 · 429