Skip to main content
POST
/
api
/
token
Get access token
curl --request POST \
  --url https://api.use3p.com/api/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "secret_key": "<string>"
}
'
{
  "access_token": "<string>",
  "expires_in": 123,
  "expiry": "<string>",
  "refresh_token": "<string>",
  "token_type": "<string>"
}

Body

application/json

API key validation data

secret_key
string

Response

200 - application/json

Access token

access_token
string

AccessToken is the token that authorizes and authenticates the requests.

expires_in
integer

ExpiresIn is the OAuth2 wire format "expires_in" field, which specifies how many seconds later the token expires, relative to an unknown time base approximately around "now". It is the application's responsibility to populate Expiry from ExpiresIn when required.

expiry
string

Expiry is the optional expiration time of the access token.

If zero, [TokenSource] implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.

refresh_token
string

RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.

token_type
string

TokenType is the type of token. The Type method returns either this or "Bearer", the default.