Partners
Delete a tenant's workspace
DELETE/v1/workspaces/{externalId}
Requires an API key with the workspaces:manage scope. About keys and scopes
Partner keys only. Sending stops at once (403 WORKSPACE_DELETION_PENDING, queued messages skipped) and the status becomes deleting. After the grace period, 14 days from deletionRequestedAt by default, the workspace and everything in it (contacts, history, files, sending domains) is deleted for good. Cancel before then with POST /v1/workspaces/{externalId}/cancel-deletion. Asking twice keeps the first time.
Path parameters
externalIdstringrequired
Returns
Returns 200 OK with a Workspace in data. Otherwise returns an error; Errors lists every code and which to retry.
idstringrequireduuid
externalIdstringrequiredYour own id for the tenant.
namestringrequiredcountrystringrequiredTwo-letter ISO 3166-1 country code.
2–2 characters
timezonestringrequiredIANA timezone; decides local-time sends and report days.
statusstringrequiredsuspendedrefuses every send in the workspace until it is resumed;deletingrefuses them too, and the workspace is purged unless the deletion is cancelled.one of
active,suspended,deletingsuspendedAtstring | nullrequiredWhen it was suspended; null if not.
date-time
deletionRequestedAtstring | nullrequiredWhen deletion was asked for; null if not.
date-time
createdAtstringrequireddate-time