get https://sandbox.api.mothership.com/beta/tokens
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.
Access | Description |
---|---|
read | Grants the API token read access to the specified entity |
write | Grants the API token write access to the specified entity |