Skip to main content
POST
/
oauth
/
token
cURL
curl --request POST \
  --url https://test.digitaltermination.com/oauth/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
{
  "token_type": "Bearer",
  "expires_in": 31536000,
  "access_token": "<string>",
  "refresh_token": "<string>"
}

Body

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

The client ID provided after onboarding

client_secret
string
required

The client secret provided after onboarding

username
string
required

The email used to create the account

password
string
required

The password for authentication

grant_type
string
required

The OAuth2 grant type

Example:

"password"

Response

Generated OAuth token

token_type
string
Example:

"Bearer"

expires_in
integer

Token expiration time in seconds

Example:

31536000

access_token
string

The access token

refresh_token
string

The refresh token