Skip to main content
POST
Criar conta (cenário C - nova empresa)

Authorizations

Authorization
string
header
required

OAuth2 Authorization Code flow

Body

application/json
email
string
required
Example:

"user@base39.com.br"

name
string
Example:

"Bruno Faria"

orgName
string
Example:

"Base39"

document
string

Organization CNPJ used to create or resolve the organization

microsoftTenantId
string
Example:

"11111111-1111-1111-1111-111111111111"

authMethod
enum<string>
Available options:
email_password,
email_otp,
google,
microsoft,
passkey,
saml

Response

201 - application/json

Conta criada

scenario
enum<string>
required
Available options:
auto_joined,
pending_approval,
new_org,
existing
status
enum<string>
required
Available options:
active,
waiting_approval,
disabled
orgId
string | null
required
orgName
string | null
required
allowedAuthMethods
enum<string>[]
required
Available options:
email_password,
email_otp,
google,
microsoft,
passkey,
saml
requiresDocumentForAutoJoin
boolean