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

# Add Contact to DNC List

> Adds one or more email addresses to an organisation's DNC list.

### Path Parameters

- `organisation_id` (`int`): Organisation ID to which DNC contacts are added.

### Request Body

```jsonc
{
  "emails": ["alice@example.com", "bob@example.com"]
}
```

### Headers

- `X-API-Key`: API key granting access to the organisation's DNC list.

### Response

- Returns a JSON message indicating how many contacts were inserted, e.g.
  ```jsonc
  { "message": "2 contact(s) successfully added to the DNC list." }
  ```

### Errors

- `400 Bad Request`: Payload fails validation (e.g. invalid email address).
- `403 Forbidden`: Authenticated user lacks CRUD rights for the organisation.



## OpenAPI

````yaml POST /api/v1/contacts/dnc/add
openapi: 3.1.0
info:
  title: ChaseLabs API
  version: 0.1.0
servers:
  - url: https://services.meetchase.ai
security: []
paths:
  /api/v1/contacts/dnc/add:
    post:
      tags:
        - Public API Routes
        - Contact Routes
        - DNC Routes
      summary: Add Dnc Contacts Api
      description: >-
        Adds one or more email addresses to an organisation's DNC list.


        ### Path Parameters


        - `organisation_id` (`int`): Organisation ID to which DNC contacts are
        added.


        ### Request Body


        ```jsonc

        {
          "emails": ["alice@example.com", "bob@example.com"]
        }

        ```


        ### Headers


        - `X-API-Key`: API key granting access to the organisation's DNC list.


        ### Response


        - Returns a JSON message indicating how many contacts were inserted,
        e.g.
          ```jsonc
          { "message": "2 contact(s) successfully added to the DNC list." }
          ```

        ### Errors


        - `400 Bad Request`: Payload fails validation (e.g. invalid email
        address).

        - `403 Forbidden`: Authenticated user lacks CRUD rights for the
        organisation.
      operationId: add_dnc_contacts_api_api_v1_contacts_dnc_add_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailArray'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - API Key: []
components:
  schemas:
    EmailArray:
      properties:
        emails:
          items:
            type: string
            format: email
          type: array
          maxItems: 1000
          minItems: 1
          title: Emails
      type: object
      required:
        - emails
      title: EmailArray
      examples:
        - emails:
            - alice@example.com
            - bob@example.com
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    API Key:
      type: apiKey
      description: Key used to authenticate user API requests.
      in: header
      name: X-API-Key

````