Skip to main content
POST
/
access
/
token
Returns an access token
curl --request POST \
  --url https://api.peakmetrics.com/access/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>",
  "client_id": "<string>"
}
'
{
  "Token": "<string>",
  "ExpiresIn": 123
}

Body

application/json
username
string

The username of the user.

password
string

The password of the user.

client_id
string

The client ID of the user.

Response

200 - application/json

A JSON object with the access token

Token
string

The access token.

ExpiresIn
integer

The number of seconds until the token expires.