Source: https://www.brixit.io/docs/api-contacts-delete

# Delete contact

To delete contact in Brixit, send a POST request to /api/automation/v1/execute with operation set to contacts.delete. Include parameters.id to identify the record.

[Contacts API](https://www.brixit.io/docs/api-contacts) · `contacts.delete`

[URL](https://www.brixit.io/docs/api-contacts-delete#url-and-authentication) · [Fields](https://www.brixit.io/docs/api-contacts-delete#fields) · [Example](https://www.brixit.io/docs/api-contacts-delete#example-request) · [Response](https://www.brixit.io/docs/api-contacts-delete#response) · [Try it](https://www.brixit.io/docs/api-contacts-delete#try-it)

## URL and authentication

`POST https://YOUR-BACKEND/api/automation/v1/execute`

Send `Authorization: Bearer <connection key>`, `Accept: application/json` and
`Content-Type: application/json`. [Create a connection](https://www.brixit.io/docs/api#get-connected).

This operation requires **delete access** and CRM permission `delete_contacts`.
The gateway invokes `DELETE /api/v1/app/lead-contacts/{id}` internally.
Use the POST URL above with your automation key, including for read and delete operations.

## Request parameters

| Key | Type | Requirement |
| --- | --- | --- |
| `operation` | string | Required; exactly `contacts.delete` |
| `parameters.id` | integer | Required; positive record ID from your CRM |
| `data` | object | Optional; see fields below |
| `idempotency_key` | string | Required; 8–100 characters. Unique per action; keep unchanged for identical retries. |

## Fields

Fields below belong inside `data`. Dot paths describe nested objects; `*` means each
array item. `nullable` permits null and `sometimes` validates a supplied field.
`in:` lists allowed values; `min:` and `max:` limit the value, length or item count.
`exists:` and `exists_in_company:` require a valid record ID. Conditional rules
such as `required_if` and `required_with` refer to other fields in the same payload.
Use YYYY-MM-DD for date-only values and timestamps with timezone offsets for follow-ups.

No data fields are required. Send `{}` for `data`, or omit it.

## Example request

Replace the example IDs and values with records in your installation. Supply any
additional custom fields required by your company.

```json
{
  "operation": "contacts.delete",
  "parameters": {
    "id": 1
  },
  "data": {},
  "idempotency_key": "example-event-12345"
}
```

## Response

Returns a success acknowledgement. No deleted record is returned. Check the HTTP status before treating deletion as successful.

The gateway preserves the underlying HTTP status and JSON body. Successful requests return **HTTP 200**. A response may also include localized message fields.

Illustrative response excerpt (additional fields may be returned):

```json
{
  "status": "success",
  "data": []
}
```

## Errors

| HTTP status | Meaning |
| --- | --- |
| 400 | A CRM business rule rejected the action. |
| 401 | Missing, invalid, expired or revoked connection key. |
| 403 | Connection access or CRM permissions do not allow this action. |
| 404 | Operation or record unavailable. |
| 409 | This idempotency key was already used with a different request. |
| 413 | Request or result exceeds its size limit; reduce payload or page size. |
| 422 | Missing or invalid fields, or a CRM business rule rejected the operation. |
| 429 | Rate limit exceeded; wait before retrying. |
| 500 | The server could not complete the operation. |

Validation failures may return `message` / `errors`, or an `error` string with
an optional `fields` array. The tester shows the actual HTTP status and full body.
[Read about limits and retries](https://www.brixit.io/docs/api#errors-and-limits).

## Try it

[Open the interactive API tester](https://www.brixit.io/docs/api-contacts-delete#try-it)
