Skip to main content
POST
/
v1
/
tokens
cURL
curl --request POST \
  --url https://dev-api-cj-agc-vie.fnstack.dev/v1/tokens \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "phone_number": "242059758563"
}
'
{
  "user": {
    "user_id": "user_2c1x7X3Q5piB9cHbvvPPKt04bK5",
    "policy_holder_id": "phol_2c1x7V4r47ynM4RABVm1Co0UKkG"
  },
  "access_token": "<string>"
}

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required
Minimum string length: 1

Body

application/json
phone_number
string
required
Minimum string length: 1
Example:

"242059758563"

Response

Retrieve the user access token

user
object
required
access_token
string
required

User access token for the next requests

Minimum string length: 1