support

GET /v1/tickets/{ticketId}/attachments/{attachmentId}

Download a ticket attachment.

Tutti gli endpoint support

Autenticazione

Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione tickets.view; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

curl -X GET https://api.zinndigital.com/v1/tickets/{ticketId}/attachments/{attachmentId} \
  -H "Authorization: Bearer zdk_live_…"

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

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`.

Parametri

NomeTipoObbligatorioChe cos'è
ticketId (path)UuidThe ticket's id.
attachmentId (path)UuidThe attachment's id.

Errori che questo endpoint può restituire

401 · 403 · 404 · 422 · 429