> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mrassistant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Block Tenant

> Block or unblock a tenant from accessing services.

**Use when:**
- Tenant exceeds quota
- Payment issues
- Terms of service violations
- Manual suspension needed

**Block services:**
- `calls`: Block making/receiving calls
- `agents`: Block creating new agents
- `sip`: Block SIP/phone features
- `recordings`: Block recording access
- `analytics`: Block analytics access



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json post /admin/tenants/{tenant_id}/block
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /admin/tenants/{tenant_id}/block:
    post:
      tags:
        - admin
      summary: Block Tenant
      description: |-
        Block or unblock a tenant from accessing services.

        **Use when:**
        - Tenant exceeds quota
        - Payment issues
        - Terms of service violations
        - Manual suspension needed

        **Block services:**
        - `calls`: Block making/receiving calls
        - `agents`: Block creating new agents
        - `sip`: Block SIP/phone features
        - `recordings`: Block recording access
        - `analytics`: Block analytics access
      operationId: block_tenant_admin_tenants__tenant_id__block_post
      parameters:
        - name: tenant_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Tenant Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BlockTenantRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BlockTenantRequest:
      properties:
        blocked:
          type: boolean
          title: Blocked
          description: True to block, False to unblock
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: Reason for blocking
        block_services:
          items:
            type: string
          type: array
          title: Block Services
          description: 'Services to block: calls, agents, sip, recordings, analytics'
          default:
            - calls
            - agents
      type: object
      required:
        - blocked
      title: BlockTenantRequest
      description: Request to block/unblock a tenant.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````