Skip to content
The API may change between versions while TTX-Zone is 0.x.

Register bare account

POST
/api/v1/auth/register
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.

accept-language
Any of:
string
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>
<= 4 items
LegalAcceptanceItem

One 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
Allowed values: terms privacy
version
required
Version
integer
>= 1
email
required
Email
string format: email
full_name
required
Full Name
string
>= 1 characters <= 255 characters
password
required
Password
string
>= 8 characters <= 128 characters

Successful Response

Media typeapplication/json
LoginResponse
object
mfa_methods
Mfa Methods
Array<string>
default:
Allowed values: totp email backup_code
mfa_pending_token
Any of:
string
mfa_preferred
Any of:
string
Allowed values: totp email
mfa_required
required
Mfa Required
boolean
user
Any of:
UserRead
object
email
required
Email
string
full_name
required
Full Name
string
id
required
Id
string format: uuid

Example

{
"mfa_methods": [],
"mfa_preferred": "totp"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
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"
}
]
}