Setting Up Authentication

As outlined in the authentication reference docs, the Mothership API handles authenticating requests via a Bearer token in the request's Authorization header.

For the purposes of this guide, however, we'll use the generic token below to authenticate requests in our sandbox environment.


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, you can obtain an API token by visiting your the api settings

What’s Next

We can now make valid requests to the API. The first thing we'll need to request are our shipment's pickup and delivery locations.