For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authorization

This document contains details for the /api/login authorization endpoint, including the request format, response example, and status codes.

Method

Method
POST

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.

Request example

{"login":"user@example.com","password":"strong-password"}

Response example

{"token":"b16b61fc-4706-4c90-a57d-fe0cd0dcd2f0"}

Use this token in the Authorization header as Bearer {token}.

Response status codes

Code
Description

200

Success

401

Not authorized

403

Forbidden

Last updated

Was this helpful?