REST API
cURL
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" }
Authenticate with phone and password to receive an access token
"+22507123456"
8
"secure_password"
Authentication successful
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
"Bearer"
Token expiration time in seconds
3600
"partner_abc123"