Documentation
How to get an access token, make your first call, and follow the conventions every endpoint shares. Each API's parameters, response schema and OpenAPI download are on the APIs page.
Base URL: https://publicapi.parcelshield.com
Quick start
Get an access token with the client ID and secret ParcelShield gave you:
curl -s -X POST "https://parcelshield.auth0.com/oauth/token" \-H "Content-Type: application/json" \-d '{"grant_type": "client_credentials","client_id": "YOUR_CLIENT_ID","client_secret": "YOUR_CLIENT_SECRET","audience": "urn:parcelshield:public-api"}'Call an API with the token:
curl "https://publicapi.parcelshield.com/v1/temperature-alerts?minLevel=SevereHot&pageSize=50" \-H "Authorization: Bearer YOUR_ACCESS_TOKEN"curl "https://publicapi.parcelshield.com/v1/risk-levels?granularity=zip3" \-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
The token response includes access_token and expires_in (seconds). Reuse the token until it is close to expiring rather than requesting one per call. If a call returns 401, get a new token.
On each API's page, Download definition gives you the OpenAPI file for Postman, Insomnia or a code generator.
APIs
Data
Temperature Alerts and 5-Day Risk (/v1/risk-levels) report weather-driven delivery risk by US ZIP code. Your credentials are all you need.
5-Day Risk returns tomorrow (UTC) by default; pass date=yyyy-MM-dd for another day in meta.horizon.
Shipping
The Shipping APIs work with your own ParcelShield shipping setup: your organizations, their ship-from locations, and carrier rates with on-time risk and a recommended option. ParcelShield turns Shipping on for your account.
Call them in this order:
GET /v1/shipping/organizations: your organizations. Eachidis anorganizationId. If you have only one organization, you can leaveorganizationIdout of the next call.GET /v1/shipping/locations?organizationId=…: that organization's ship-from locations. Eachidis afromLocationId.POST /v1/shipping/recommendations: carrier rates from one location to a US address, each with an on-time probability, a risk level (Low, Moderate, High or Extreme) and a predicted delivery date, plus the recommended option and arecommendationIdthat identifies the recommendation. Requires Shipping Recommendations to be enabled for your account.
Request rules:
shipDates: 1 to 3 dates (yyyy-MM-dd), up to 5 days ahead (UTC).targetDeliveryDate: on or after the latest ship date, at most 14 days ahead.packages: dimensions in inches;weightin lb by default, or setweightUnitto"oz".Only the recommended option is ranked; the order of the other options has no meaning.
Example (replace SHIP_DATE and TARGET_DATE with yyyy-MM-dd dates):
curl -X POST "https://publicapi.parcelshield.com/v1/shipping/recommendations" \-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \-H "Content-Type: application/json" \-d '{"fromLocationId": 1484,"to": {"name": "Jane Recipient","address1": "1600 Amphitheatre Pkwy","city": "Mountain View","state": "CA","zip": "94043"},"packages": [{ "length": 12, "width": 10, "height": 8, "weight": 5 }],"shipDates": ["SHIP_DATE"],"targetDeliveryDate": "TARGET_DATE"}'
Conventions
Authentication
Send the token as Authorization: Bearer <token>. Each API requires its own scope, shown on its page (for example read:five-day-risk); ParcelShield sets your scopes when it enables an API. Your client secret is delivered once through a secure link. Keep it in a secret manager, never in source code, a browser or a mobile app.
Request IDs
Every response has an X-Request-Id header, and every error repeats it as requestId. Log it with your request so the call can be traced.
Versioning
The major version is in the path (/v1). We don't make breaking changes within a version; they ship in a new version. We may add new response fields and values, so ignore any you don't recognise. Older versions keep working until they are retired, and we announce retirements in advance.
Errors
Errors are application/problem+json with type, title, status and requestId, plus detail and code where useful.
400: invalid parameters or body (
errorslists each problem), or a destination address that couldn't be verified.401: the token is missing, expired or invalid, or lacks the API's scope.
403: your account isn't set up for this API; for example, Shipping or Shipping Recommendations isn't enabled, or no organizations are set up yet.
404: not found, including an organization or location you don't have access to.
422: the request was valid but there is nothing to return (
no-rates-available).429: too many requests; see Rate limits.
500, 502, 503: a temporary problem on our side; retry with backoff.
Rate limits
Requests are rate limited. Limits can differ by API and by account, and all of your credentials share them. If you exceed a limit you get a 429 with a Retry-After header (seconds); wait at least that long before retrying.
Requests and responses
Bodies are JSON with camelCase fields. Timestamps are UTC ISO-8601; dates are yyyy-MM-dd.
Successful responses share one structure: data holds the result and meta describes it, always including generatedAt. Lists accept page and pageSize; keep requesting pages while meta.hasMore is true. A page of Temperature Alerts:
{"data": [{ "zip": "75001", "temperatureLevel": "SevereHot" }],"meta": {"generatedAt": "2026-09-24T13:22:41Z","window": { "hours": 48 },"granularity": "zip5","total": 12529,"page": 1,"pageSize": 50,"hasMore": true}}