Skip to navigation

Create Reseller Workspace

Create a workspace for one of your customers, optionally with a tier, a phone number and team invites.

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
business_namestringRequired1-100 characters
verticalenum or nullOptional

The business’s vertical, used with complete_onboarding. Without it, onboarding picks the vertical as usual.

charge_customerbooleanOptionalDefaults to false

Bill the workspace’s own customer instead of the reseller: it checks out and sees its billing itself, and the reseller earns a commission. Only for a reseller on standard billing.

subscriptionobject or nullOptional
Paid tier to subscribe to. Omitted leaves the workspace with no subscription.
phone_numberstring or nullOptional
A free number from the reseller's phone pool, reserved for the workspace until onboarding binds it to the receptionist.
memberslist of objectsOptionalDefaults to []

People to invite once the workspace exists, capped by the tier’s team size. Best-effort: each outcome is in member_results.

complete_onboardingbooleanOptionalDefaults to false

Finish setup right away, as POST /v1/reception/reseller/workspaces/{workspace_id}/complete-onboarding does. Best-effort: onboarding_completed_at_unix stays null on failure, and that call can be retried.

metadatamap from strings to stringsOptionalDefaults to {}

Your own key-value pairs for the workspace, such as your customer or contract id. Up to 20 keys of up to 40 characters, without . or $, and values of up to 500 characters. Not shown to the workspace’s members.

idempotency_keystring or nullOptional<=255 characters

Client-generated key that makes a retry safe. The same key and body within 24 hours returns the first result without running again. While that first request is still running, a retry gets 409 idempotency_key_in_progress; a different body with the same key gets 400 idempotency_key_reused. A request that fails is not saved, so it can be retried with the same key.

Response

Successful Response
workspace_idstring
business_namestring
billing_tierstring or null
receptionist_countinteger
calls_last_30_daysinteger
created_at_unixinteger
subscriptionobject or nullOptional

The reseller-managed subscription, when this workspace has one. None means the reseller sells nothing here: no tier is assigned yet, or the workspace pays for its own subscription (see charge_customer).

charge_customerbooleanOptionalDefaults to false
The workspace pays for its own subscription, so its tier can't be assigned or changed here.
has_payment_issuebooleanOptionalDefaults to false
A charge for this workspace is unpaid. Assigning or changing a tier is refused until it clears, so surface it rather than letting it fail.
onboarding_completed_at_unixinteger or nullOptional
When onboarding finished. Until then the onboarding wizard may replace or remove the workspace's business data.
metadatamap from strings to stringsOptionalDefaults to {}

Your own key-value pairs for the workspace.

member_resultslist of objectsOptionalDefaults to []

Errors

422
Unprocessable Entity Error