MCP is live.Set upAsk the community
OmniDimension
Reseller clients

Block or restore a client

Block a client, or restore one you blocked.

Reseller plan only. Buy the Reseller plan to get access.

Nothing is deleted. The client's agents, numbers, campaigns and history stay, and a restore brings the client back as it was.

Send exactly one of user_id (one user) or organization_id (every user in a client organization). Both must be your direct clients.

Block (blocked: true): the client is signed out and its API keys stop working at once. Users already blocked by their own organization admin, or whose account expired, are left as they are. To block the owner of a client organization, send organization_id so the whole organization is blocked.

Restore (blocked: false): lifts only the blocks you made, and clears an expiry date that passed while the client was blocked. Restoring a user you did not block returns 409.

detach_numbers (only with organization_id and blocked: true) also detaches the organization's phone numbers from their agents, so nothing answers on them. The response lists them in detached_numbers, so you can attach them again.

Who may call: a reseller key. Any other key gets 403.

Errors: 400 invalid_request when blocked or detach_numbers is not a JSON boolean, user_id and organization_id are both sent or both missing, an id is not an integer, or detach_numbers is used without organization_id or with blocked: false. 401 for a missing or invalid key. 403 forbidden when the key is not a reseller's, or when you block a client organization's owner by user_id. 404 not_found when the user or organization is not your client. A client that belongs to someone else gives the same answer as one that does not exist. 409 conflict when you restore a user you did not block.

Body

blockedbooleanrequired

true blocks, false restores. Must be a JSON boolean.

organization_idinteger

The client organization whose users are all blocked or restored. Send this or user_id, not both.

detach_numbersboolean

Also detach the organization's numbers from their agents. Only with organization_id and blocked: true.

Default false

user_idintegerresellers only

The client user to block or restore. Send this or organization_id, not both.

Was this page helpful?