# Contacts API

Source: https://aicallstudio.com/docs/api/contacts. Authentication, scopes, limits, errors and webhooks: https://aicallstudio.com/docs/api

### List contacts

`GET /api/contacts` (scope `contacts:read`)

List your contacts, a page at a time.

Every filter is optional, and they combine. A page holds at most 200 contacts: read `total`, then ask for the next `page` until you have them all. Deleted contacts are never listed.

**Parameters**

| Parameter | Type | What it is |
| --- | --- | --- |
| `page` | integer, at least 1, in the query | Default: 1. |
| `page_size` | integer, 1 to 200, in the query | Default: 50. |
| `search` | string, or null, in the query | Words found anywhere in the name, email or number, in any order. A number matches in any format. |
| `status` | string, or null, in the query | The contact's status, such as new. |
| `classification` | string, or null, in the query | Lead classification: hot, warm or cold. |
| `source` | string, or null, in the query | Where the contact came from, exactly as the contact's source field says. |
| `disposition` | string, or null, in the query | The contact's latest outcome key. |
| `min_score` | integer, or null, in the query | Has a call scored at least this (0 to 100). |
| `max_score` | integer, or null, in the query | Has a call scored at most this (0 to 100). |
| `min_duration` | integer, or null, in the query | Has a call at least this many seconds long. |
| `max_duration` | integer, or null, in the query | Has a call at most this many seconds long. |
| `campaign_id` | string (uuid), or null, in the query | Has a call placed by this campaign. |
| `lead_set` | string, or null, in the query | The lead set the contact was imported into. |
| `dnd` | boolean, or null, in the query | true: only Do-Not-Call contacts; false: only callable ones. |
| `needs` | one of: callback, stale_high, or null, in the query | callback: a call back is owed; stale_high: hot, callable, and not rung in the last 7 days. |
| `added_from` | string (date-time), or null, in the query | Added at or after this time (ISO 8601). |
| `added_to` | string (date-time), or null, in the query | Added at or before this time (ISO 8601). |
| `added_days` | integer, 1 to 366, or null, in the query | Added in the last N days |
| `agent_id` | string (uuid), or null, in the query | Has a call answered by this AI agent. |
| `team_id` | string (uuid), or null, in the query | Has a call answered by this AI team. |
| `answered_by` | one of: agent, team, or null, in the query | Has a call answered by any AI agent working alone, or by any AI team. |
| `assigned_to` | string, or null, in the query | Given to: a team member's user id, or `none` |
| `last_message_status` | string, up to 12 characters, or null, in the query | The latest campaign message to the contact has this status (delivered, read, replied, failed...) |
| `sort` | one of: name, source, score, last_called, added, in the query | Default: name. |
| `order` | one of: asc, desc, in the query | Default: asc. |
| `view` | one of: active, held, in the query | held: contacts held over the plan's contact limit. Default: active. |

**Answer (200): these fields**

| Field | Type | What it is |
| --- | --- | --- |
| `total` (required) | integer | Contacts matching the filters, across every page. |
| `page` (required) | integer | — |
| `page_size` (required) | integer | — |
| `sort` (required) | string | — |
| `order` (required) | string | — |
| `items` (required) | list of objects | — |
| `items[].id` (required) | string (uuid) | — |
| `items[].name` (required) | string | — |
| `items[].phone` (required) | string | — |
| `items[].email` (required) | string, or null | — |
| `items[].lead_type` (required) | string, or null | — |
| `items[].status` (required) | string | — |
| `items[].classification` (required) | string, or null | — |
| `items[].disposition` (required) | string, or null | — |
| `items[].dnd_flag` (required) | boolean | — |
| `items[].source` | string, or null | — |
| `items[].language` | string, or null | — |
| `items[].created_at` | string (date-time), or null | — |
| `items[].last_called_at` | string (date-time), or null | — |
| `items[].score` | number, or null | — |
| `items[].assigned_user_id` | string (uuid), or null | — |

**Errors**

| Code | When |
| --- | --- |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `422` | A field is missing or not in the form this endpoint takes. `detail` says which, and why. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl "https://aicallstudio.com/api/contacts?page_size=50" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN"
```

### Create a contact

`POST /api/contacts` (scope `contacts:write`)

Add one contact.

`name` and `phone` are required. One number is one contact: the same number in another format ("98765 43210", "+919876543210") is refused with 409. A number deleted earlier brings that contact back with its history. Adding a contact starts the workspace's New Contact workflows, as adding one by hand does, and those may call or message the person.

**Parameters**

| Parameter | Type | What it is |
| --- | --- | --- |
| `Idempotency-Key` | string, up to 255 characters, in the headers | Any unique text up to 255 characters, such as a UUID, chosen by you for this request. Sent again with the same body within 24 hours, the first answer comes back (with Idempotent-Replayed: true) and nothing is done twice. The same key with another body is refused with 422. |

**Request body (application/json)**

| Field | Type | What it is |
| --- | --- | --- |
| `name` (required) | string, up to 255 characters | The person's name. |
| `phone` (required) | string, up to 20 characters | 8 to 15 digits, optionally starting with +. Stored in one canonical form. |
| `email` | string, or null | Optional. Must look like name@example.com. |
| `custom_fields` | object | Your own fields for this contact, by field name. A contact type's required fields must be here. |
| `lead_type` | string, or null | The contact type's key, which decides the fields it needs. Blank: general. |
| `source` | string, or null | Where the contact came from, in your words. |
| `dnd_flag` | boolean | true puts the number on Do-Not-Call: it is never rung. Default: false. |
| `status` | string | Default: new. |
| `classification` | string, or null | hot, warm or cold. |
| `disposition` | string, or null | An outcome key defined in your workspace. |
| `language` | string, or null | The language the person prefers, as a code or a name, such as hi-IN or Hindi. |

**Answer (201): these fields**

| Field | Type | What it is |
| --- | --- | --- |
| `id` (required) | string (uuid) | — |
| `org_id` (required) | string (uuid) | — |
| `name` (required) | string | — |
| `phone` (required) | string | — |
| `email` (required) | string, or null | — |
| `custom_fields` (required) | object | — |
| `lead_type` (required) | string, or null | — |
| `source` (required) | string, or null | — |
| `dnd_flag` (required) | boolean | — |
| `status` (required) | string | — |
| `classification` (required) | string, or null | — |
| `disposition` (required) | string, or null | — |
| `language` | string, or null | — |
| `best_time` | object, or null | — |
| `assigned_user_id` | string (uuid), or null | — |
| `wa_marketing_opt_out_at` | string (date-time), or null | — |

**Errors**

| Code | When |
| --- | --- |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. The plan's contact limit is reached. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `409` | A contact already has this number, in any format. |
| `422` | A field is missing or not in the form this endpoint takes. `detail` says which, and why. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl -X POST "https://aicallstudio.com/api/contacts" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"name":"Asha Verma","phone":"+919876543210"}'
```

### Export contacts

`GET /api/contacts/export` (scope `contacts:read`)

Download every contact matching the filters as one file, CSV or Excel.

The same filters as listing contacts, in one file with no paging. Pass `ids` to export just those contacts (at most 1,000), still inside the other filters.

**Parameters**

| Parameter | Type | What it is |
| --- | --- | --- |
| `format` | string, in the query | csv or xlsx. Default: csv. |
| `search` | string, or null, in the query | Words found anywhere in the name, email or number, in any order. A number matches in any format. |
| `status` | string, or null, in the query | The contact's status, such as new. |
| `classification` | string, or null, in the query | Lead classification: hot, warm or cold. |
| `source` | string, or null, in the query | Where the contact came from, exactly as the contact's source field says. |
| `disposition` | string, or null, in the query | The contact's latest outcome key. |
| `min_score` | integer, or null, in the query | Has a call scored at least this (0 to 100). |
| `max_score` | integer, or null, in the query | Has a call scored at most this (0 to 100). |
| `min_duration` | integer, or null, in the query | Has a call at least this many seconds long. |
| `max_duration` | integer, or null, in the query | Has a call at most this many seconds long. |
| `campaign_id` | string (uuid), or null, in the query | Has a call placed by this campaign. |
| `lead_set` | string, or null, in the query | The lead set the contact was imported into. |
| `dnd` | boolean, or null, in the query | true: only Do-Not-Call contacts; false: only callable ones. |
| `needs` | one of: callback, stale_high, or null, in the query | callback: a call back is owed; stale_high: hot, callable, and not rung in the last 7 days. |
| `added_from` | string (date-time), or null, in the query | Added at or after this time (ISO 8601). |
| `added_to` | string (date-time), or null, in the query | Added at or before this time (ISO 8601). |
| `added_days` | integer, 1 to 366, or null, in the query | Added in the last N days |
| `agent_id` | string (uuid), or null, in the query | Has a call answered by this AI agent. |
| `team_id` | string (uuid), or null, in the query | Has a call answered by this AI team. |
| `answered_by` | one of: agent, team, or null, in the query | Has a call answered by any AI agent working alone, or by any AI team. |
| `assigned_to` | string, or null, in the query | Given to: a team member's user id, or `none` |
| `last_message_status` | string, up to 12 characters, or null, in the query | The latest campaign message to the contact has this status (delivered, read, replied, failed...) |
| `ids` | string, or null, in the query | Comma-separated contact ids: export just this selection |

Answer: 200. The file, as an attachment: CSV by default, an Excel workbook with format=xlsx.

**Errors**

| Code | When |
| --- | --- |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `422` | A field is missing or not in the form this endpoint takes. `detail` says which, and why. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl "https://aicallstudio.com/api/contacts/export?format=csv" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -o contacts.csv
```

### Import contacts from a file

`POST /api/sources/import/csv` (scope `contacts:write`)

Import contacts from a spreadsheet: one contact per row.

Send the file as multipart/form-data. Rows without a name or a dialable phone number are skipped and listed in `errors`. A number already in the workspace updates that contact, or is skipped with dedupe=skip. New contacts over the plan's contact limit are saved but held, and counted in `held`. New contacts start the New Contact workflows, which may call or message them. One import runs in a workspace at a time, and an address may start at most 3 a minute.

**Parameters**

| Parameter | Type | What it is |
| --- | --- | --- |
| `Idempotency-Key` | string, up to 255 characters, in the headers | Any unique text up to 255 characters, such as a UUID, chosen by you for this request. Sent again with the same body within 24 hours, the first answer comes back (with Idempotent-Replayed: true) and nothing is done twice. The same key with another body is refused with 422. |

**Request body (multipart/form-data)**

| Field | Type | What it is |
| --- | --- | --- |
| `file` (required) | file | A .csv or .xlsx file with a header row. It needs a name and a phone column. At most 50 MB. |
| `lead_set` | string, or null | A lead set to put every imported contact in. |
| `clean_names` | boolean | true tidies each name: title case, honorifics and extra spaces removed. Default: false. |
| `dedupe` | string | A number that is already a contact: update (the default) refreshes that contact, skip leaves it. Default: update. |
| `lead_type` | string, or null | The contact type every row is imported as. |
| `mapping` | string, or null | JSON: which column fills each field, as {"field name": "Column header"}. |

**Answer (200): these fields**

| Field | Type | What it is |
| --- | --- | --- |
| `source_id` (required) | string (uuid) | The import, as a lead source in your workspace. |
| `created` (required) | integer | New contacts added. |
| `updated` (required) | integer | Existing contacts refreshed from the file. |
| `skipped` (required) | integer | Rows not imported: rows with a problem (see errors), and existing contacts with dedupe=skip. |
| `held` | integer | New contacts over the plan's contact limit: saved, and held until the plan has room. Default: 0. |
| `errors` (required) | list of string | Why each skipped row was skipped, by row number. |

**Errors**

| Code | When |
| --- | --- |
| `400` | The file is not .csv or .xlsx, is empty, cannot be read, or has no name or phone column. |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `413` | The file is over 50 MB. |
| `422` | A field is missing or not in the form this endpoint takes. `detail` says which, and why. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl -X POST "https://aicallstudio.com/api/sources/import/csv" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F "file=@contacts.csv"
```

### Add or update a contact

`POST /api/v1/contacts` (scope `contacts:write`)

Add a contact, or update the one that already has this number. Never makes a duplicate.

The number is the key: the same number in any format ("98765 43210", "+919876543210") is the same contact. A known number is updated with the fields you send, and your own fields are merged in; a new number needs a `name` and is added, which starts your New Contact workflows, as adding one by hand does (those may call or message the person). `created` says which.

**Parameters**

| Parameter | Type | What it is |
| --- | --- | --- |
| `Idempotency-Key` | string, up to 255 characters, in the headers | Any unique text up to 255 characters, such as a UUID, chosen by you for this request. Sent again with the same body within 24 hours, the first answer comes back (with Idempotent-Replayed: true) and nothing is done twice. The same key with another body is refused with 422. |

**Request body (application/json)**

| Field | Type | What it is |
| --- | --- | --- |
| `phone` (required) | string, up to 20 characters | 8 to 15 digits, optionally starting with +. The same number in any format is the same contact. |
| `name` | string, up to 255 characters, or null | Required for a new number; for a known one it renames it. |
| `email` | string, up to 255 characters, or null | — |
| `custom_fields` | object, or null | Your own fields, by field name. Merged into the contact's: a field you leave out is kept. |
| `lead_type` | string, or null | The contact type's key, which decides the fields it needs. |
| `source` | string, up to 50 characters, or null | Where the contact came from, in your words. |
| `language` | string, or null | The language the person prefers, as a code or a name, such as hi-IN. |

**Answer (200): these fields**

| Field | Type | What it is |
| --- | --- | --- |
| `created` (required) | boolean | true when the number was new and a contact was added. |
| `contact` (required) | object | — |
| `contact.id` (required) | string (uuid) | — |
| `contact.name` (required) | string | — |
| `contact.phone` (required) | string | — |
| `contact.email` | string, or null | — |
| `contact.custom_fields` | object | Your own fields. The platform's own keys (starting with _) are left out. |
| `contact.lead_type` | string, or null | — |
| `contact.source` | string, or null | — |
| `contact.status` | string, or null | — |
| `contact.classification` | string, or null | — |
| `contact.disposition` | string, or null | — |
| `contact.language` | string, or null | — |
| `contact.do_not_call` | boolean | Default: false. |
| `contact.created_at` | string (date-time), or null | — |

**Errors**

| Code | When |
| --- | --- |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. The plan's contact limit is reached. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `422` | A field is missing or not in the form this endpoint takes. `detail` says which, and why. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl -X POST "https://aicallstudio.com/api/v1/contacts" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"phone":"+919876543210","name":"Asha Verma","custom_fields":{"loan_id":"LN-1042"}}'
```

### Update a contact

`PATCH /api/v1/contacts/{contact_id}` (scope `contacts:write`)

Change some of a contact's fields. A field you leave out is kept; your own fields are merged.

**Parameters**

| Parameter | Type | What it is |
| --- | --- | --- |
| `contact_id` (required) | string (uuid), in the path | — |
| `Idempotency-Key` | string, up to 255 characters, in the headers | Any unique text up to 255 characters, such as a UUID, chosen by you for this request. Sent again with the same body within 24 hours, the first answer comes back (with Idempotent-Replayed: true) and nothing is done twice. The same key with another body is refused with 422. |

**Request body (application/json)**

| Field | Type | What it is |
| --- | --- | --- |
| `name` | string, up to 255 characters, or null | — |
| `phone` | string, up to 20 characters, or null | A new number. Refused if another contact has it. |
| `email` | string, up to 255 characters, or null | — |
| `custom_fields` | object, or null | Merged into the contact's: a field you leave out is kept. |
| `lead_type` | string, or null | — |
| `status` | string, or null | — |
| `classification` | string, or null | hot, warm or cold. |
| `disposition` | string, or null | An outcome key defined in your workspace. |
| `language` | string, or null | — |

**Answer (200): these fields**

| Field | Type | What it is |
| --- | --- | --- |
| `id` (required) | string (uuid) | — |
| `name` (required) | string | — |
| `phone` (required) | string | — |
| `email` | string, or null | — |
| `custom_fields` | object | Your own fields. The platform's own keys (starting with _) are left out. |
| `lead_type` | string, or null | — |
| `source` | string, or null | — |
| `status` | string, or null | — |
| `classification` | string, or null | — |
| `disposition` | string, or null | — |
| `language` | string, or null | — |
| `do_not_call` | boolean | Default: false. |
| `created_at` | string (date-time), or null | — |

**Errors**

| Code | When |
| --- | --- |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `404` | No contact of yours has this id. |
| `409` | Another contact already has the new number. |
| `422` | A field is missing or not in the form this endpoint takes. `detail` says which, and why. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl -X PATCH "https://aicallstudio.com/api/v1/contacts/YOUR_CONTACT_ID" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"status":"qualified"}'
```

### Erase a person's data

`POST /api/v1/contacts/{contact_id}/erasure` (scope `contacts:erase`)

Delete one person and their call history, for an erasure request under India's data protection law. It cannot be undone.

The contact and every call with them are deleted now. Their recordings stop being playable at once and are deleted after our review. If the number is on your Do-Not-Call list it stays there, so they are not called again.

**Parameters**

| Parameter | Type | What it is |
| --- | --- | --- |
| `contact_id` (required) | string (uuid), in the path | — |
| `Idempotency-Key` | string, up to 255 characters, in the headers | Any unique text up to 255 characters, such as a UUID, chosen by you for this request. Sent again with the same body within 24 hours, the first answer comes back (with Idempotent-Replayed: true) and nothing is done twice. The same key with another body is refused with 422. |

**Answer (200): these fields**

| Field | Type | What it is |
| --- | --- | --- |
| `status` (required) | string | erased. |
| `contact_id` (required) | string (uuid) | — |
| `calls_removed` (required) | integer | — |
| `recordings_deletion_requested` (required) | integer | Recordings of those calls we were asked to delete. They are deleted after our review and cannot be played meanwhile. |

**Errors**

| Code | When |
| --- | --- |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `404` | No contact of yours has this id. |
| `422` | A field is missing or not in the form this endpoint takes. `detail` says which, and why. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl -X POST "https://aicallstudio.com/api/v1/contacts/YOUR_CONTACT_ID/erasure" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"
```

### Add or update many contacts

`POST /api/v1/contacts/bulk` (scope `contacts:write`)

Add or update up to 100 contacts in one request, each exactly as one would be.

One result per contact, in the order sent. A contact that cannot be saved (a bad number, a missing required field, the plan's limit) is reported with its reason and does not stop the others. The same number twice in one request is one contact.

**Parameters**

| Parameter | Type | What it is |
| --- | --- | --- |
| `Idempotency-Key` | string, up to 255 characters, in the headers | Any unique text up to 255 characters, such as a UUID, chosen by you for this request. Sent again with the same body within 24 hours, the first answer comes back (with Idempotent-Replayed: true) and nothing is done twice. The same key with another body is refused with 422. |

**Request body (application/json)**

| Field | Type | What it is |
| --- | --- | --- |
| `contacts` (required) | list of objects | 1 to 100 contacts. |
| `contacts[].phone` (required) | string, up to 20 characters | 8 to 15 digits, optionally starting with +. The same number in any format is the same contact. |
| `contacts[].name` | string, up to 255 characters, or null | Required for a new number; for a known one it renames it. |
| `contacts[].email` | string, up to 255 characters, or null | — |
| `contacts[].custom_fields` | object, or null | Your own fields, by field name. Merged into the contact's: a field you leave out is kept. |
| `contacts[].lead_type` | string, or null | The contact type's key, which decides the fields it needs. |
| `contacts[].source` | string, up to 50 characters, or null | Where the contact came from, in your words. |
| `contacts[].language` | string, or null | The language the person prefers, as a code or a name, such as hi-IN. |

**Answer (200): these fields**

| Field | Type | What it is |
| --- | --- | --- |
| `created` (required) | integer | — |
| `updated` (required) | integer | — |
| `failed` (required) | integer | — |
| `results` (required) | list of objects | — |
| `results[].index` (required) | integer | The position of this contact in the list you sent, from 0. |
| `results[].created` | boolean | Default: false. |
| `results[].contact_id` | string (uuid), or null | — |
| `results[].error` | string, or null | Why this one was not saved; null when it was. |

**Errors**

| Code | When |
| --- | --- |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `422` | A field is missing or not in the form this endpoint takes. `detail` says which, and why. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl -X POST "https://aicallstudio.com/api/v1/contacts/bulk" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"contacts":[{"phone":"+919876543210","name":"Asha Verma"}]}'
```
