POST
/
oauth
/
token
Get OAuth Token
curl --request POST \
  --url https://your-subdomain.alienvault.cloud/api/2.0/oauth/token \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials
{
  "access_token": "xxx.yyy.zzz",
  "token_type": "bearer",
  "expires_in": 899,
  "scope": "trust read write",
  "jti": "3b4cc123-2164-44cb-ae34-9c76d7c429ab"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/x-www-form-urlencoded

The grant type must be client_credentials.

grant_type
string

The grant type to use for authentication.

Example:

"client_credentials"

Response

Successful authentication.

access_token
string
required
token_type
string
required
expires_in
integer
required
scope
string
required
jti
string
required