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

# Bulk add contacts

> Add multiple contacts to a contact list in a single JSON payload

Inserts an array of contacts into a contact list. Duplicates within the list are automatically skipped.

### Path parameters

<ParamField path="listId" type="string" required>
  The unique UUID of the contact list.
</ParamField>

### Body parameters

<ParamField body="contacts" type="object[]" required>
  Array of contact objects to import (minimum 1, maximum 5,000).

  <Expandable title="Contact Object">
    <ParamField body="phoneNumber" type="string" required>
      E.164 phone number (e.g. `+919876543210`).
    </ParamField>

    <ParamField body="name" type="string">
      Contact name.
    </ParamField>

    <ParamField body="email" type="string">
      Contact email.
    </ParamField>

    <ParamField body="metadata" type="object">
      Custom variables.
    </ParamField>
  </Expandable>
</ParamField>

<CodeGroup>
  ```bash curl theme={null}
  curl -X POST https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/bulk \
    -H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "contacts": [
        {
          "phoneNumber": "+919876543210",
          "name": "Asha Patel",
          "email": "asha@example.com"
        },
        {
          "phoneNumber": "+919876543211",
          "name": "Rohan Sharma",
          "email": "rohan@example.com"
        }
      ]
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/bulk",
      headers={
          "Authorization": f"Bearer {API_KEY}",
          "Content-Type": "application/json",
      },
      json={
          "contacts": [
              {
                  "phoneNumber": "+919876543210",
                  "name": "Asha Patel",
                  "email": "asha@example.com",
              },
              {
                  "phoneNumber": "+919876543211",
                  "name": "Rohan Sharma",
                  "email": "rohan@example.com",
              },
          ]
      },
  )
  print(response.json())
  ```

  ```javascript Node theme={null}
  const response = await fetch(
    "https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/bulk",
    {
      method: "POST",
      headers: {
        Authorization: `Bearer ${API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        contacts: [
          {
            phoneNumber: "+919876543210",
            name: "Asha Patel",
            email: "asha@example.com",
          },
          {
            phoneNumber: "+919876543211",
            name: "Rohan Sharma",
            email: "rohan@example.com",
          },
        ],
      }),
    },
  );
  const data = await response.json();
  console.log(data);
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "imported": 2
}
```
