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

# Block a number

> Adds a number to the Do Not Call list. Adding one that's already there updates it.

Key permission: **Read history and place calls**.



## OpenAPI

````yaml /api-reference/openapi.json post /dnc
openapi: 3.1.0
info:
  title: Lawtte API
  version: 1.0.0
  description: >-
    Read your receptionist's calls, place AI calls, manage saved outbound agents
    and the Do Not Call list. The same rules as the Lawtte connector apply to
    every call.
servers:
  - url: https://www.lawtte.ai/api/v1
security:
  - connectorKey: []
paths:
  /dnc:
    post:
      tags:
        - Do Not Call
      summary: Block a number
      description: >-
        Adds a number to the Do Not Call list. Adding one that's already there
        updates it.


        Key permission: **Read history and place calls**.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - phone
              properties:
                phone:
                  type: string
                  minLength: 7
                  maxLength: 32
                name:
                  type: string
                  maxLength: 120
                reason:
                  type: string
                  maxLength: 500
              example:
                phone: '+12125550100'
                reason: Asked by email not to be called
      responses:
        '201':
          description: The entry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DncEntry'
        '400':
          description: Not a valid US phone number, or an invalid body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, wrong, revoked or expired key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key doesn't have the permission this endpoint needs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 120 requests in a minute for this key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: A problem on Lawtte's side. Nothing was changed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DncEntry:
      type: object
      properties:
        phone:
          type: string
          example: '+12125550100'
        name:
          type:
            - string
            - 'null'
        reason:
          type:
            - string
            - 'null'
        source:
          type: string
          description: >-
            How it was added, e.g. `dashboard`, `api`, or automatically from a
            call.
        added_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - unauthorized
                - insufficient_scope
                - invalid_request
                - not_found
                - rejected
                - rate_limited
                - unavailable
                - internal_error
            message:
              type: string
  securitySchemes:
    connectorKey:
      type: http
      scheme: bearer
      description: >-
        A connector key from **Settings → AI connectors → Connector keys**:
        `Authorization: Bearer lawtte_sk_…`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.