Skip to main content
POST
/
oauth
/
token
Get Access Token
curl --request POST \
  --url https://api.gonitro.dev/oauth/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientID": "<string>",
  "clientSecret": "<string>"
}
'
{
  "accessToken": "<string>",
  "tokenType": "<string>",
  "expiresIn": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
clientID
string
required

The client ID for auth client credentials flow

Minimum string length: 1
clientSecret
string
required

The client jwtSecret for auth client credentials flow

Minimum string length: 1

Response

OK

accessToken
string

The access token

tokenType
string

The token type (typically 'Bearer')

expiresIn
integer<int64>

Token expiration time in seconds