post/auth/login

Exchange email+password for a JWT

Request body

Request example
{
  "email": "<Email>",
  "password": "<Password>"
}

Responses

200Successful Response
Example · 200
{
  "access_token": "<Access Token>",
  "token_type": "bearer"
}
422Validation Error
Example · 422
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "<Message>",
      "type": "<Error Type>"
    }
  ]
}

Code samples

Generated from the live OpenAPI spec. Replace $SAVITAR_API_KEY with a key from your dashboard.

curl -X POST "https://redactra-api-direct-yjxsqk46ja-el.a.run.app/auth/login" \
  -H "Authorization: Bearer $SAVITAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "<Email>",
  "password": "<Password>"
}'