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 completing our API access request form.