POST
/v1/auth/loginLogin
Authenticate with email and password.
Authenticates a user with email and password. Returns an access token and sets a refresh token cookie.
Rate limited to 5 requests per 60 seconds.
Body parameters
email string REQUIRED
password string REQUIRED
min length: 8max length: 128
Responses
200
400
Validation failed
401
Invalid credentials
Request
curl -X POST https://api.example.com/v1/auth/login \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"email": "example_email",
"password": "example_password"
}'Response
200 200 OK
{
"accessToken": "example_accessToken",
"expiresAt": 0
}