Skip to main content
POST
Create client

Autorizações

X-Api-Key
string
header
obrigatório

Corpo

application/json

Body for creating a new client workspace under the hub.

creditsOverride
integer<int32>

Optional credits override. When not set, uses the plan's creditsIncluded value.

Exemplo:

5000

inviteToTrial
boolean

Invite as a trial client — ignores planPublicId and uses the hub's configured trial plan (requires trial enabled in hub config). Defaults to false.

Exemplo:

false

periodEndOverride
string<date-time>

Optional period-end override. When not set, computed from plan recurrence.

Exemplo:

"2026-12-31T23:59:59Z"

planPublicId
string<uuid>

Optional. Subscription plan public ID. If omitted, the client is created without a plan. Ignored when inviteToTrial=true.

Exemplo:

"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21"

sendInvitations
boolean

Send invitation emails to the listed users immediately. Defaults to false.

Exemplo:

true

users
object[]

Users to provision in the client workspace (at least one).

Minimum array length: 1
workspaceName
string

Display name of the client workspace.

Required string length: 1 - 150
Exemplo:

"Acme Corp"

Resposta

Created

createdAt
string<date-time>
creditsBalance
number
creditsUsedThisPeriod
number
currentPeriodEnd
string<date-time>
currentPeriodStart
string<date-time>
extraCreditsBalance
number
nextCreditRenewalAt
string<date-time>
pendingInvitations
object[]
pendingPlan
object
plan
object
publicId
string<uuid>
seatsLimit
integer<int32>
subscriptionStatus
enum<string>
Opções disponíveis:
active,
past_due,
canceled,
trialing,
pending_onboarding,
suspended
unlimitedCredits
boolean
users
object[]
usersCount
integer<int32>
workspaceName
string