cURL
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" }
Initiates authentication for a user (login)
User email address
"user@example.com"
User password
8 - 20
Authentication successful
JWT access token
JWT refresh token
User role
Was this page helpful?