POST https://theapiengine.in/api/auth/token/
Authenticate a user using username and password and return JWT access and refresh tokens.
Endpoint Details
Endpoint Name
Obtain JWT Token
Authentication Required
No
Minimum Plan
FREE onwards
HTTP Method
POST
Endpoint Path
https://theapiengine.in/api/auth/token/
Status
ActiveEndpoint Description
This endpoint authenticates a user using valid credentials (username and password). On successful authentication, it returns a short-lived access token and a long-lived refresh token. The access token must be included in the Authorization header for all protected API requests. The refresh token can be used to obtain a new access token when the current one expires.
Sample Payloads
Sample Request (JSON)
{'password': 'StrongPassword123', 'username': 'user@example.com'}
Sample Response (JSON)
{'access': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...', 'refresh': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...'}
Request ↔ Response Flow
Sample Request
Sample Response