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.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
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
Updated 12 months ago
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.