AuthenticationAuthenticate a user

Authenticate a user

Authenticates a user and returns access and refresh JWT tokens.

curl -X POST "http://localhost:8080/api/login" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "user@example.com",
  "password": "example_string"
}'
{
  "access_token": "example_string",
  "refresh_token": "example_string"
}
POST
/api/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.

Format: email
passwordstring
Required

User password.

Format: password
Request Preview
Response

Response will appear here after sending the request

Body

application/json
emailstring
Required

User email address.

Responses

access_tokenstring
Required

JWT access token.

refresh_tokenstring
Required

JWT refresh token.