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 successful400 Bad Request- Invalid credentials500 Internal Server Error: Server Encountered an Error