Skip to content

API Authentication: Token-based authentication

Custom Auth Token

Endpoint: POST /api/api-token-auth/

Description: Obtain authentication token for API access.

Request Body:

{
    "username": "your_username",
    "password": "your_password"
}

Response:

{
    "token": "<YOUR_AUTH_KEY>"
}

Status Codes:

  • 200 OK - Authentication successful
  • 400 Bad Request - Invalid credentials
  • 500 Internal Server Error: Server Encountered an Error