Request a 6-digit sign-in code by email (sign-up and sign-in)
POST
/v1/auth/code
const url = 'https://api.replifier.com/v1/auth/code';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","locale":"es-MX"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string format: email
locale
string
Responses
Section titled “Responses”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" }}