Skip to main content
POST
/
api
/
v1
/
auth
/
login
curl --request POST \
    --url http://localhost:8000/api/v1/auth/login \
    --header "Content-Type: application/json" \
    --data '{
        "email": "user@example.com",
        "password": "password"
    }' | jq
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "bearer"
}
curl --request POST \
    --url http://localhost:8000/api/v1/auth/login \
    --header "Content-Type: application/json" \
    --data '{
        "email": "user@example.com",
        "password": "password"
    }' | jq

Body

application/json

Schema for email/password login.

email
string
required
password
string
required

Response

Successful Response

JSON payload containing both access and refresh tokens.

access_token
string
required
refresh_token
string
required
token_type
string
default:bearer