Skip to main content
POST
/
auth
/
login
curl -X POST https://api.arca.example.com/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "securepassword123"
  }'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "John Doe",
  "email": "[email protected]",
  "roleId": 2,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Authenticate a user and receive a JWT token.

Request Body

email
string
required
User’s email address. Must be a valid email format and not exceed 100 characters.
password
string
required
User’s password. Must be between 8 and 255 characters.

Response

id
string
The user’s unique identifier (UUID).
name
string
The user’s name.
email
string
The user’s email address.
roleId
number
The user’s role ID indicating their access level.
token
string
JWT token for authenticating subsequent requests. Include this in the Authorization header as Bearer {token}.
curl -X POST https://api.arca.example.com/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "securepassword123"
  }'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "John Doe",
  "email": "[email protected]",
  "roleId": 2,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Build docs developers (and LLMs) love