Skip to main content
POST
/
auth
/
oauth
/
token
Create Access Token
curl --request POST \
  --url https://golance.com/auth/oauth/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientId": "<string>",
  "clientSecret": "<string>",
  "grantType": "client_credentials"
}
'
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 1
}

Body

application/json
clientId
string
required
Required string length: 2 - 100
clientSecret
string
required
Required string length: 2 - 100
grantType
enum<string>
required
Available options:
client_credentials

Response

200 - application/json

Access token response

access_token
string
required
token_type
enum<string>
required
Available options:
Bearer
expires_in
number
required

Expiration time in seconds

Required range: x >= 0