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

# Create Contact

> Create a new contact linked to a customer

## Authorization

**Authorization** `string` *required*

Bearer token. Format: `Bearer qwoty_your_token`

## Request Body

**customer\_id** `string` *required*

UUID of the customer this contact belongs to

**first\_name** `string` *required*

Contact's first name

**last\_name** `string` *required*

Contact's last name

**email** `string` *required*

Contact's email address

**phone** `string`

Phone number

**role** `array` (default: \[])

Assigned roles. Allowed values: `"buyer"`, `"signer"`, `"billing"`,
`"shipping"`, `"legal"`, `"admin"`

**identifiers** `object`

External system identifiers

**Identifiers**

**identifiers.crm** `string`

CRM identifier

**identifiers.erp** `string`

ERP identifier

**identifiers.accounting** `string`

Accounting identifier

## Examples

```bash cURL theme={null}
curl -X POST https://qwoty.app/api/contacts \
  -H "Authorization: Bearer qwoty_your_token" \
  -H "Content-Type: application/json" \
  -d '{
    "customer_id": "550e8400-e29b-41d4-a716-446655440000",
    "first_name": "Jean",
    "last_name": "Dupont",
    "email": "jean.dupont@acme.com",
    "phone": "+33 6 12 34 56 78",
    "role": ["buyer", "signer"]
  }'
```

```javascript JavaScript theme={null}
const response = await fetch('https://qwoty.app/api/contacts', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer qwoty_your_token',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    customer_id: '550e8400-e29b-41d4-a716-446655440000',
    first_name: 'Jean',
    last_name: 'Dupont',
    email: 'jean.dupont@acme.com',
    phone: '+33 6 12 34 56 78',
    role: ['buyer', 'signer'],
  }),
})
const data = await response.json()
```

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

response = requests.post(
    'https://qwoty.app/api/contacts',
    headers={
        'Authorization': 'Bearer qwoty_your_token',
        'Content-Type': 'application/json',
    },
    json={
        'customer_id': '550e8400-e29b-41d4-a716-446655440000',
        'first_name': 'Jean',
        'last_name': 'Dupont',
        'email': 'jean.dupont@acme.com',
        'phone': '+33 6 12 34 56 78',
        'role': ['buyer', 'signer'],
    },
)
data = response.json()
```

## Response

**success** `boolean`

`true` if the contact was created

**data** `object`

The created contact object (same shape as [Get
Contact](https://docs.qwoty.io/api-reference/contacts/get.md))

```json Success Response theme={null}
{
  "success": true,
  "data": {
    "id": "660e8400-e29b-41d4-a716-446655440001",
    "workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
    "customer_id": "550e8400-e29b-41d4-a716-446655440000",
    "first_name": "Jean",
    "last_name": "Dupont",
    "email": "jean.dupont@acme.com",
    "phone": "+33 6 12 34 56 78",
    "role": ["buyer", "signer"],
    "identifiers": {
      "crm": null,
      "erp": null,
      "accounting": null
    },
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-01-15T10:30:00Z"
  }
}
```

```json Validation Error theme={null}
{
  "error": "Validation error",
  "details": [
    { "path": "email", "message": "Invalid email address" },
    { "path": "customer_id", "message": "customer_id must be a valid UUID" }
  ]
}
```


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