Login to Get Token

Overview

This endpoint authenticates users and generates a JWT (JSON Web Token) for accessing protected API resources. Upon successful authentication.

Request Details

Endpoint: {{baseURL}}/login
Method: POST
Content-Type: application/json
Body: none

Authentication Requirements

This endpoint uses API Key authentication to verify your identity before issuing a token.

Add to headers

authkey:`{{authkey}}`

Response Format

Success Response (200 OK)

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Response Properties:

Using the Token

After running this request successfully, other requests in the collection can reference the token using:

Authorization: Bearer {{token}}

Error Response (401 Unauthorized)

Returned when the API key is invalid, missing, or expired.

Error Response (403 Forbidden)

Returned when authorization fails - the API key may be valid but lacks sufficient permissions to generate a token.