Developers
Open app
Sign-in

Exchange the code for a session

POST/auth/verify
Public: no session neededLimit: 30 / 10 min per network; 10 / 10 min per inbox; 3 wrong tries kill a code

Request

curl -X POST 'https://api.slay.money/api/predict/auth/verify' \
  -H 'Content-Type: application/json' \
  -d '{"identifier":"ayush","otp":"482913"}'

Body

identifierstringrequired
otpstringrequired
Pattern ^\d{6}$

Responses

200Signed in.
tokenstringrequired
Predict session token: only this API accepts it. 30 days, renewed while in use. Pattern ^sp_[A-Za-z0-9_-]{43}$
200 response
{
  "token": "sp_Qk2…"
}
400Wrong or expired code, or a bad identifier.
400 response
{
  "error": "That code is wrong or expired. Check it, or send a new one."
}
403The account is suspended.
403 response
{
  "error": "This account has been suspended for violating Slay's terms.",
  "code": "ACCOUNT_BANNED"
}
429Rate limit reached. Wait for the window to pass.
429 response
{
  "error": "Too many attempts. Wait a few minutes and try again."
}
500Signed in, but no session came back. Retry.
500 response
{
  "error": "Signed in, but no session came back. Try again."
}