Skip to content

Request a 6-digit sign-in code by email (sign-up and sign-in)

POST
/v1/auth/code
curl --request POST \
--url https://api.replifier.com/v1/auth/code \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "locale": "es-MX" }'

Always responds 202 with the same body, whether or not the account exists, and sets the signed cookie __Host-repf_code that binds the code to this browser. The code expires in 10 minutes, can be used once and allows 5 attempts; requesting another one from the same browser invalidates the previous one for that browser. Issuance: 5 per hour per recipient and network and 30 per day per recipient; beyond that nothing is sent and the response is the same. locale only applies if the account is created when the code is verified.

Media typeapplication/json
object
email
required
string format: email
<= 254 characters
locale
string
Allowed values: es-MX es-ES es-AR en pt-BR fr de it ja ko zh-CN ar

If the quota allows it, the code was sent

Media typeapplication/json
object
status
required
string

Example generated

{
"status": "example"
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}