Developers
Open app
Get started

Quickstart

Sign a user in with a code to their email, then read their account.

  1. POST /auth/start with { "identifier": "ayush" } (a Slay ID or an email). The code goes to the email on the account; the response shows it masked.
  2. POST /auth/verify with the identifier and the 6-digit code. You get { "token" }.
  3. Send Authorization: Bearer <token> on every call. GET /me returns the account, Slay ID, wallet and Points.
  4. A new user has no Slay ID yet (profile: null): POST /profile with the handle they pick.
  5. Open the user's Magic wallet in the browser, then POST /wallets/magic with a Magic DID token to map it to the Slay ID.