POST
/
users
/
authorization
Create Authorization
curl --request POST \
  --url https://api.village.do/v1/users/authorization \
  --header 'Content-Type: application/json' \
  --header 'secret-key: <api-key>' \
  --header 'user-identifier: <user-identifier>' \
  --data '{
  "email": "[email protected]"
}'
{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGc..."
}

Authorizations

secret-key
string
header
required

API secret key (requires user-identifier header)

Headers

user-identifier
string
required

Specify the user making the request. This identifier should match the one you used when integrating the user with Village. Not needed when using user token authentication.

Body

application/json

Response

200
application/json

Token generated successfully

The response is of type object.