MCP is live.Set upAsk the community
OmniDimension
Reseller clients

Block or restore a client

Block a client, or restore one you blocked. Nothing is deleted, so the client's agents, numbers, campaigns and history stay as they are and a restore brings the client back as it was.

Reseller accounts only. Request access.

POST/reseller/users/access
Body
4 fields
·

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

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

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

curl -X POST 'https://backend.omnidim.io/api/v1/reseller/users/access' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "blocked": true,
  "organization_id": 5678,
  "detach_numbers": true
}'
Example response
{
  "success": true,
  "blocked": true,
  "user_ids": [
    1234,
    1235
  ],
  "detached_numbers": {
    "91": {
      "agent_id": 412,
      "sms_enabled": false
    }
  },
  "message": "Client access blocked."
}

Authorization

BearerAuth
headerAuthorizationBearer <token>

Bearer token authentication. Obtain your API key from the OmniDimension dashboard.

Request Body

application/json
blocked*boolean

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

user_id?integer

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

organization_id?integer

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

detach_numbers?boolean

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

Defaultfalse

Response body

application/json

Response Body

Access changed.

application/json
success?boolean
blocked?boolean

The state you asked for.

user_ids?array<integer>

The users whose access changed. Users that were left as they were are not listed.

detached_numbers?

Numbers detached from their agents, keyed by number id. Empty unless detach_numbers was true. Use it to attach the numbers again.

message?string