Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

Sign up

Creates an account and logs it in. A deployment that is invitation only needs the invite code. No credential is needed.

POST/_luna/auth/signup
Request body
requiredapplication/json
emailstringrequired
passwordstringrequired

At least 10 characters.

namestring
invitestring | null

The code from an invitation link.

Responses
200

The new account and its session.

tokenstringrequired

The session token (ls_…). Send it as the bearer token.

accountAccountBriefrequired

An account as its owner sees it.

Show properties
idstringrequired
emailstringrequired
namestringrequired
default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Bodyapplication/json
Request
curl -X POST 'https://luna.example.com/_luna/auth/signup' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "string",
  "password": "string",
  "name": "string",
  "invite": "string"
}'
Response
{
  "token": "string",
  "account": {
    "id": "string",
    "email": "string",
    "name": "string"
  }
}

Was this page helpful?