Skip to content

Login to receive a JWT

Request

Authenticates a user using Basic Auth credentials and returns a JWT token if successful.

Security
BasicAuth
Headers
Authorizationstringrequired

Authorization header with Basic Auth format 'Basic base64(username:password)'

Example:Basic bXJmb3VseTptcnBhc3N3b3Jk
Bodyapplication/jsonrequired

Basic Authorization header with encoded username and password

POST
/login
curl -i -X POST \
  -u '<username>:<password>' \
  https://api.open-atlas.com/_mock/openapi/login \
  -H 'Authorization: Basic bXJmb3VseTptcnBhc3N3b3Jk' \
  -H 'Content-Type: application/json'

Responses

User authenticated successfully. JWT token returned in the response.

Bodyapplication/json
tokenstring

JSON Web Token (JWT)

Example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.your-payload-here.signature"
Response
{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.your-payload-here.signature" }