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

# Add communication opt-outs

> Adds identifiers to the Do Not Contact list. You can add up to 500 identifiers at once and optionally pause active prospects for matching prospects.

<Warning>
  You can add up to 500 identifiers in a single request.
</Warning>


## OpenAPI

````yaml POST /dnc/communication-opt-outs
openapi: 3.1.0
info:
  title: Alta API
  description: >-
    The Alta public API allows you to programmatically access and manage your
    campaigns, prospects, companies, persons, email messages, LinkedIn messages,
    calls, reps, tags, and trigger assistant calls.
  version: 1.0.0
servers:
  - url: https://api.altahq.com/v1
    description: Production
security:
  - bearerAuth: []
paths:
  /dnc/communication-opt-outs:
    post:
      tags:
        - Do Not Contact
      summary: Add communication opt-outs
      description: >-
        Adds identifiers to the Do Not Contact list. You can add up to 500
        identifiers at once and optionally pause active prospects for matching
        prospects.
      operationId: addCommunicationOptOuts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddCommunicationOptOutsRequest'
      responses:
        '200':
          description: Identifiers added to the DNC list successfully
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    AddCommunicationOptOutsRequest:
      type: object
      required:
        - identifiers
      properties:
        identifiers:
          type: array
          maxItems: 500
          description: Array of identifiers to add to the DNC list.
          items:
            type: object
            required:
              - identifier
              - identifierType
            properties:
              identifier:
                type: string
                description: The identifier value (e.g. email address, phone number).
              identifierType:
                type: string
                enum:
                  - email
                  - linkedin
                  - phone
                  - sms
                  - whatsapp
                  - web_chat
                description: The type of the identifier.
              name:
                type: string
                description: Optional display name for this entry.
        pauseActiveProspects:
          type: boolean
          default: true
          description: >-
            Whether to pause active prospects for matching prospects. Defaults
            to `true`.
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Error type.
        message:
          type: string
          description: Human-readable error message.
  responses:
    BadRequest:
      description: The request body is invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: ValidationError
            message: Invalid request body
    Unauthorized:
      description: Authentication failed - invalid or missing API token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
            message: Invalid API token
    RateLimited:
      description: >-
        Too many requests - you've exceeded the rate limit of 100 requests per
        minute.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: TooManyRequests
            message: Rate limit exceeded. Please retry after 60 seconds.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token authentication. Generate a token from the Alta dashboard and
        pass it as a Bearer token in the Authorization header.

````