Developers
Open app
Sign-in

Send a sign-in code

POST/auth/start
Public: no session neededLimit: 20 / 10 min per network; 5 / 10 min and 15 / day per inbox

Sends a 6-digit code (valid 10 minutes) to the email on the account. identifier is an email or a Slay ID (ayush, @ayush). An email-shaped value is always treated as an email. A new email gets an account when the code is verified.

Request

curl -X POST 'https://api.slay.money/api/predict/auth/start' \
  -H 'Content-Type: application/json' \
  -d '{"identifier":"ayush","turnstile":"0.zRk7…"}'

Body

identifierstringrequired
turnstilestring
Cloudflare Turnstile token from Slay Predict's invisible widget, action auth-start. Single-use, 5 minutes. Required whenever the check is on.

Responses

200Code sent.
sentTostring
The email, masked.
viastring
One of email, slayId
200 response
{
  "sentTo": "a•••h@gmail.com",
  "via": "slayId"
}
400Not a valid email or Slay ID, or an account that can't use email codes.
400 response
{
  "error": "Enter a valid email or your Slay ID."
}
403The invisible human check failed or is missing.
403 response
{
  "error": "We couldn't confirm you're a person. Refresh the page and try again.",
  "code": "HUMAN_CHECK"
}
404No account has that Slay ID.
404 response
{
  "error": "No account has the Slay ID @ayushh. Check the spelling, or sign in with your email."
}
429Rate limit reached. Wait for the window to pass.
429 response
{
  "error": "Too many codes requested. Wait a few minutes and try again."
}
503Sign-ups are paused.
503 response
{
  "error": "Slay is under maintenance and temporarily unavailable while we upgrade things.",
  "code": "MAINTENANCE"
}