AuthAuthenticate and obtain access token

Authenticate and obtain access token

Authenticates the user with email and password. Returns a JWT access token and its expiration time in seconds.

curl -X POST "https://api.example.com/api/v1/auth/login" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "admin@example.com",
  "password": "securepassword123"
}'
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expiresIn": 3600
}
POST
/api/v1/auth/login
POST
Base URLstring

Target server for requests. Edit to use your own host.

Content-Typestring
Required

The media type of the request body

Options: application/json
emailstring
Required

User email address

passwordstring
Required

User password (16-32 characters)

Min length: 16 • Max length: 32
Request Preview
Response

Response will appear here after sending the request

Body

application/json
emailstring
Required

User email address

Example:
admin@example.com
passwordstring
Required

User password (16-32 characters)

Example:
securepassword123

Responses

accessTokenstring
Required

JWT access token for authenticated requests

expiresInnumber
Required

Token expiration time in seconds