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

# Push Contacts

> Create or update contacts by phone number

Sends one contact or a list. A contact whose phone number already exists in the workspace is updated; otherwise it's created. This is the easiest way to keep the Orova AI Platform in step with your CRM.

## Request

```bash theme={null}
curl -X POST "https://platform.orova.ai/api/contacts/push?workspaceId=WORKSPACE_ID" \
  -H "x-api-key: osk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    { "contactName": "John Smith", "phoneNumber": "+12025551234", "accountNumber": "ACC-001" },
    { "contactName": "Jane Doe", "phoneNumber": "+442071234567", "city": "London" }
  ]'
```

Needs the `api_write` scope. Sending more than one contact at once is an import: it needs a plan that includes contact import. One contact at a time works on every plan.

## Body

One object, or an array of objects, with the fields from [Create Contact](https://docs.orova.ai/api-reference/contacts/create.md) (`workspaceId` is optional here). Any other field is saved as a custom field and can be used in prompts as `{{fieldName}}`.

## Response

One contact: the saved contact. A list: a summary.

```json theme={null}
{
  "total": 2,
  "created": 2,
  "results": [
    { "success": true, "_id": "6650f3e4a1b2c3d4e5f6071a", "contactName": "John Smith", "phoneNumber": "+12025551234" },
    { "success": true, "_id": "6650f3e4a1b2c3d4e5f6071b", "contactName": "Jane Doe", "phoneNumber": "+442071234567" }
  ]
}
```

Lists of 50 or more come back as counts: `total`, `created`, `updated`, `errors`.


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