This section provides information about the authentication API endpoint /en/docs/api/auth
. This endpoint is used to authenticate users and manage their sessions.
Endpoint Details
The /en/docs/api/auth
endpoint is a RESTful API that handles authentication related operations. Here's a brief overview:
- Method:
POST
- URL:
/en/docs/api/auth
- Headers:
Content-Type: application/json
- Body:
{ "username": "string", "password": "string" }
Usage
To use this endpoint, send a POST request to /en/docs/api/auth
with a JSON body containing the username and password. If the authentication is successful, the API will return a JSON response with an authentication token.
Example Request
curl -X POST "https://yourdomain.com/en/docs/api/auth" -H "Content-Type: application/json" -d '{"username": "user123", "password": "password123"}'
Example Response
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
For more information about how to work with APIs, check out our API documentation.
Additional Resources
Authentication