Create an account
const url = 'http://localhost:8080/api/auth/signup';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"example","invite_token":"example","name":"example","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/api/auth/signup \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "invite_token": "example", "name": "example", "password": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”POST /api/auth/signup.
object
Email address.
Invitation token. When set, sign-up joins that org and the address is already verified.
Display name. Absent when the user does not set one.
Password.
Example generated
{ "email": "example", "invite_token": "example", "name": "example", "password": "example"}Responses
Section titled “Responses”The new account, or a verification requirement.
POST /api/auth/signup returns 201.
me is present when a session was started.
object
The new user and their orgs, when a session was started.
object
Orgs the user belongs to, with their org role.
One org membership of the signed-in user.
Spec 04 org_members.
object
The demo org (demo.org, D187). Its role is viewer for a caller without a row.
Org id.
Display name.
Org role. A project override of none hides that project and is never returned.
URL slug.
The signed-in user.
object
Email address.
The address has been verified.
A password is set. SSO-only accounts are false.
User id.
Instance administrator, allowed to manage instance settings.
Display name. Omitted when the user has not set one.
The account cannot sign in until the email is verified.
Example
{ "me": { "orgs": [ { "role": "owner" } ] }}The request is malformed or a filter is invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The request conflicts with the current state.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}