POST
/
as
/
token.oauth2
curl --request POST \
  --url https://eu.platform.go.gbgplc.com/captain/api/as/token.oauth2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'username=<string>' \
  --data 'password=<string>' \
  --data grant_type=password
{
  "access_token": "<string>",
  "expires_in": 123,
  "token_type": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/x-www-form-urlencoded
client_id
string
required

The client ID assigned to your organization.

client_secret
string
required

The client secret assigned to your organization.

username
string
required

The username for API authentication.

password
string
required

The password for API authentication.

grant_type
enum<string>
required

Must always be set to 'password'.

Available options:
password

Response

200
application/json
Successfully retrieved access token.
access_token
string

The access token used for authentication.

expires_in
integer

Token expiration time in seconds.

token_type
string

The type of token, usually 'Bearer'.