Retrieve label documents
After creating a shipping label, useGET /labels/{id} to retrieve the printable airway bill document. This guide covers the retrieval flow, document formats, and practical considerations.
Retrieve the document URL
Use theid from the label creation response:
Response
200 OK
| Field | Description |
|---|---|
id | The label UUID (same as the request parameter). |
url | Direct download URL for the airway bill document. |
labelFormat | Document format: pdf or png. |
Download and print
Download the document from the returnedurl:
Document behavior
- Permanent URL — The document URL does not expire. You can store it and download the document at any time.
- Formats — Documents are available as PDF or PNG, depending on the courier and label configuration.
- Re-retrieval — Calling
GET /labels/{id}multiple times returns the same URL. The endpoint is naturally idempotent.
Error handling
| Status | Meaning | Action |
|---|---|---|
| 200 | Document URL retrieved | Download from the url field |
| 403 | Access denied | The label belongs to a different account |
| 404 | Label not found | Verify the label ID is correct |
| 502 | Upstream service error | Retry with exponential backoff |