Auth

Email a six-digit sign-in code

A new code supersedes any outstanding one. Codes expire after 10 minutes and allow five guesses. The first verified code creates the account. While sign-up runs a waitlist, an address with no account that hasn't been let in yet gets no code: it's added to the waitlist and answered SIGNUP_WAITLISTED, identically whether or not it was already waiting. Show the message as confirmation, not as a failure.

post/auth/codes

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/auth/codes
  • Auth: none required

Headers

X-Client-Platformstring

The native client's platform, e.g. ios. Server-side and non-native callers omit it.

X-Client-Versionstring

The native client's own semver version. With X-Client-Platform, a version below that platform's minimum is refused with CLIENT_UPGRADE_REQUIRED (426).

Request body

emailstring required

Response

No content.

Changes

No recorded changes to this operation across all 1 revision of this API.