Token Management
Token Management

Token Generation

Mint an OAuth bearer token with GET https://app.ship.com/public/token. Send your account email and password as HTTP request headers named email and password. This endpoint has no request body. While your current token is still valid, the same token is returned; once it has expired, a fresh token valid for 180 days is minted. Your refresh token never changes.

Use the https://app.ship.com/public/account endpoint to request an Oauth token programmatically.

Request Headers

Header Value
email string
password string

Successful Response Example

1{
2  "success": true,
3  "oauth": {
4    "token": "string",
5    "refreshToken": "string",
6    "expires": "date"
7  }
8}