Accept email invitation
POST
/api/v1/email-invitations/accept
const url = 'https://example.com/api/v1/email-invitations/accept';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"account":{"accepted_legal":[{"kind":"terms","version":1}],"full_name":"example","password":"example"},"token":"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/email-invitations/accept \ --header 'Content-Type: application/json' \ --data '{ "account": { "accepted_legal": [ { "kind": "terms", "version": 1 } ], "full_name": "example", "password": "example" }, "token": "example" }'Accept an email invitation, creating the account when there is none.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
EmailInvitationAcceptRequest
object
account
Any of:
EmailInvitationAccountCreate
A new account for the invited address (the address comes from the invitation, never from the form).
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
full_name
required
Full Name
string
password
required
Password
string
null
token
required
Token
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
EmailInvitationAcceptResponse
object
created_account
required
Created Account
boolean
organization_id
required
Organization Id
string format: uuid
organization_name
required
Organization Name
string
ttx_id
required
Ttx Id
string format: uuid
ttx_name
required
Ttx Name
string
Example generated
{ "created_account": true, "organization_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "organization_name": "example", "ttx_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "ttx_name": "example"}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" } ]}