Authorization
This document contains details for the /api/login authorization endpoint, including the request format, response example, and status codes.
Last updated
Was this helpful?
This document contains details for the /api/login authorization endpoint, including the request format, response example, and status codes.
URL
/api/login
Content-Type
application/json
Body
{"login":"string","password":"string"}
Use this endpoint to get an authorization token for further API requests.
The response returns an authorization token. The token expires in 3 hours.
{"login":"user@example.com","password":"strong-password"}{"token":"b16b61fc-4706-4c90-a57d-fe0cd0dcd2f0"}Use this token in the Authorization header as Bearer {token}.
200
Success
401
Not authorized
403
Forbidden
Last updated
Was this helpful?
Was this helpful?
