Authentication
Login
Authenticate with email and password and receive a JWT access token.
post/v1/login
Request body
Example request
{
"email": "user@example.com",
"password": "password"
}Response
Access token, user and accounts
Example response
{
"status": 200,
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
"user": {
"id": "bgjazeo5r9v2lq7l36dx48np",
"name": "John Smith",
"email": "example@example.com",
"telephone": "17989206641",
"government_id": "15774136604",
"has_accepted_terms": true,
"created_at": "2023-03-03T11:51:34Z"
},
"accounts": [
{
"id": "6401df46d6a6b0c692d9ec49",
"name": "JS",
"roles": [
"owner"
],
"is_delete_allowed": true,
"created_at": "2023-03-03T11:51:34Z"
}
]
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.