Register bare account
POST
/api/v1/auth/register
const url = 'https://example.com/api/v1/auth/register';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"accepted_legal":[{"kind":"terms","version":1}],"email":"hello@example.com","full_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 https://example.com/api/v1/auth/register \ --header 'Content-Type: application/json' \ --data '{ "accepted_legal": [ { "kind": "terms", "version": 1 } ], "email": "hello@example.com", "full_name": "example", "password": "example" }'Create an account without an organization.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
BareRegisterRequest
A brand-new account with no organization and no invitation token – pending role assignment (an org grants Planner later, or the user redeems a token later). Mirrors RedeemAccountCreate/ProgramManagerCreate’s field shape/validators exactly.
object
accepted_legal
Accepted Legal
Array<object>
LegalAcceptanceItemOne version of one document the user accepts (signup, or after a substantial change). Must be the version currently published.
object
kind
required
LegalDocumentKind
The legal documents a deployment’s operator publishes for its users (Platform), accepted together at signup.
string
version
required
Version
integer
email
required
Email
string format: email
full_name
required
Full Name
string
password
required
Password
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
LoginResponse
object
Example
{ "mfa_methods": [], "mfa_preferred": "totp"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}