Skip to content

Dev/staging password login

POST
/auth/dev-login
curl --request POST \
--url https://example.com/api/auth/dev-login \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "password": "example" }'

Email+password login for local development or explicit DEV_LOGIN_ENABLED environments. Returns JWT. Disabled for production preview origins unless explicitly enabled.

Media type application/json
object
email
required
string format: email
password
required
string

Auth tokens

Media type application/json
object
access_token
required
string
refresh_token
required
string
expires_in
integer

Invalid request

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Forbidden

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Too many login attempts