GuidesTracking a shipment
Setting up authentication
Create a sandbox token and send it with every tracking request.
As outlined in the authentication reference docs, the Dashboard API handles authenticating requests via a Bearer token in the request's Authorization header.
For the purposes of this guide, use a sandbox token from the API keys page in the dashboard and put it in an environment variable.
export MOTHERSHIP_API_TOKEN="your sandbox token"Every request you make in the sandbox environment must include this token in the Authorization header.
Authorization: Bearer {API_TOKEN_GOES_HERE}For production requests, create a production token on the same page. Only organization owners and developers can see the Developers page. If it says your organization has no API access, contact your sales representative or message support through the dashboard chat to request API access.