Skip to main content
POST
/
v1
/
auth
/
token
Get access token
curl --request POST \
  --url https://api.adullam.dev/v1/auth/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "+22507123456",
  "password": "secure_password"
}
'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "partner_id": "partner_abc123"
}

Adullam Get Access Token

The Get Token API allows you to obtain an access token for authenticating your requests to the Adullam platform. This documentation provides details on how to use the Get Token API, including the required parameters and response format.

Body

application/json
phone
string
required
Example:

"+22507123456"

password
string
required
Minimum string length: 8
Example:

"secure_password"

Response

Authentication successful

access_token
string
Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
string
Example:

"Bearer"

expires_in
integer

Token expiration time in seconds

Example:

3600

partner_id
string
Example:

"partner_abc123"