Connect API

Retrieve an order's shipping labels

GET
/orders/{id}/shippingLabels

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.

Authorization

headerAuthorizationBearer <token>

Pass the API key directly as the token.

Path Parameters

id*string

The Spoke order ID.

Match^[a-zA-Z0-9_-]{1,50}$
Length1 <= length <= 50

Response Body

A fresh signed link to the shipping-labels PDF.

application/json
  1. response

A fresh signed link to the shipping-labels PDF.

url*string

Signed URL to the shipping-labels PDF. Fetchable without the API key until it expires.

expiresAt*number

When the signed URL stops working, in seconds since epoch.

Example Request
curl -X GET 'https://api.spoke.com/connect/v1/orders/string/shippingLabels'
Example Response
{  "url": "string",  "expiresAt": 0}

Was this page helpful?