Menu

Create a workspace for one of your tenants

POST/v1/workspaces

Requires an API key with the workspaces:manage scope. About keys and scopes

Partner keys only. Creates a child workspace for one tenant of your product, identified by your own externalId, so you never need to store ours. From then on, any /v1 call with the header Kirora-Workspace: <externalId> acts in that workspace with your key: load its contacts, verify its sending domain, send. The workspace has no members and bills to your account. A repeated externalId is 409 ALREADY_EXISTS. While your own workspace is being deleted this is 403 WORKSPACE_DELETION_PENDING; cancel the deletion to create workspaces again.

Request body

namestringrequired

1–200 characters

externalIdstringrequired

Your own id for the tenant (up to 128 letters, digits, ., :, _, -); unique among your workspaces.

countrystringrequired

Two-letter ISO 3166-1 country code.

timezonestringoptional

IANA timezone, such as Europe/Berlin.

1–64 characters

Returns

Returns 201 Created with a Workspace in data. Otherwise returns an error; Errors lists every code and which to retry.

idstringrequired

uuid

externalIdstringrequired

Your own id for the tenant.

namestringrequired
countrystringrequired

Two-letter ISO 3166-1 country code.

2–2 characters

timezonestringrequired

IANA timezone; decides local-time sends and report days.

statusstringrequired

suspended refuses every send in the workspace until it is resumed; deleting refuses them too, and the workspace is purged unless the deletion is cancelled.

one of active, suspended, deleting

suspendedAtstring | nullrequired

When it was suspended; null if not.

date-time

deletionRequestedAtstring | nullrequired

When deletion was asked for; null if not.

date-time

createdAtstringrequired

date-time