This endpoint allows a user to fetch all of the developer tokens active for his/her shipper account.

curl -X GET \
  https://sandbox.api.mothership.com/beta/tokens \
  -H 'Authorization: Bearer {YOUR_API_TOKEN}'
{
    "data": [
        {
            "createdAt": "2019-03-14T23:59:47.678Z",
            "note": "Sample sandbox token",
            "scopes": [
                {
                    "access": "write",
                    "entity": "shipments"
                },
                {
                    "access": "write",
                    "entity": "quotes"
                },
                {
                    "access": "read",
                    "entity": "documents"
                }
            ],
            "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
        }
    ]
}

Token scopes are specified with access and entity.

AccessDescription
readGrants the API token read access to the specified entity
writeGrants the API token write access to the specified entity
EntityDescription
documentsRefers to operations against the Documents API
quotesRefers to operations against the Quotes API
shipmentsRefers to operations against the Shipments API
webhookConfigsRefers to operations against the Webhooks API
Language
Authorization
Bearer
Click Try It! to start a request and see the response here!