Skip to main content
POST
/
v1
/
auth
User Login
curl --request POST \
  --url https://api.tradearies.dev/v1/auth \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "email": "user@example.com",
  "password": "<string>"
}'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "role": "user"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
email
string
required

User email address

Example:

"user@example.com"

password
string
required

User password

Required string length: 8 - 20

Response

Authentication successful

access_token
string

JWT access token

refresh_token
string

JWT refresh token

role
string

User role

I