API referenceAuth
Sign in with an email code (CLI)
POST
Like /email/verify, but for the CLI: returns a CLI session token instead of setting a cookie. Signing in for the first time creates the account. Start with /email/start.
application/json- body
email*stringFormat
emailLength
length <= 254code*stringMatch
^\d{6}$OK
application/json- response
token*stringCLI session token (lbs_…), sent as a Bearer token
user*curl -X POST "https://example.com/v1/auth/email/token" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "code": "string" }'{ "token": "string", "user": { "id": "string", "email": "string", "name": "string", "avatarUrl": "string" }}