This endpoint authenticates users and generates a JWT (JSON Web Token) for accessing protected API resources. Upon successful authentication.
Endpoint: {{baseURL}}/login
Method: POST
Content-Type: application/json
Body: none
This endpoint uses API Key authentication to verify your identity before issuing a token.
Add to headers
authkey:`{{authkey}}`
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Response Properties:
token (string): A JWT token that can be used to authenticate subsequent API requests. This token should be included in the Authorization header of protected endpoints.
This token will be valid for 5 hours
After running this request successfully, other requests in the collection can reference the token using:
Authorization: Bearer {{token}}
Returned when the API key is invalid, missing, or expired.
Returned when authorization fails - the API key may be valid but lacks sufficient permissions to generate a token.