Retrieve an order's shipping labels
GET
The playground uses your live account
Requests are sent with your real API key, so creating, updating or deleting here changes your production data.
Render the order's shipping labels as a single PDF (A6, one Code 128 barcode per page, one page per package) and return a signed URL to it, valid for one hour. Every call renders the labels afresh and signs a new URL, so fetch it promptly server-side: the link is too short-lived to embed anywhere a recipient might open later.
header
AuthorizationBearer <token>Pass the API key directly as the token.
id*stringThe Spoke order ID.
Match
^[a-zA-Z0-9_-]{1,50}$Length
1 <= length <= 50A fresh signed link to the shipping-labels PDF.
application/json- response
A fresh signed link to the shipping-labels PDF.
url*stringSigned URL to the shipping-labels PDF. Fetchable without the API key until it expires.
expiresAt*numberWhen the signed URL stops working, in seconds since epoch.
curl -X GET 'https://api.spoke.com/connect/v1/orders/string/shippingLabels'Example Response
{ "url": "string", "expiresAt": 0}Was this page helpful?