---
title: "Reset a contact's AI context for internal verification"
description: "Requires a fresh verified user session and the existing platform/IP permission gate, without selected-workspace membership. The stored contact must match workspace_id and its first name must be confirmed. Other contact-AI endpoints are outside this authentication correction.\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Contacts

`POST /api/contact-ai/{contactId}/reset-context`

Requires a fresh verified user session and the existing platform/IP permission gate, without selected-workspace membership. The stored contact must match workspace_id and its first name must be confirmed. Other contact-AI endpoints are outside this authentication correction.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `contactId` (`post/api/contact-ai/contactId/reset-context.path.contactId`; string, required)

## Request body

_Required._

- `workspace_id` (`post/api/contact-ai/contactId/reset-context.workspace_id`; string, required)
- `confirm_first_name` (`post/api/contact-ai/contactId/reset-context.confirm_first_name`; string, required)
- `note` (`post/api/contact-ai/contactId/reset-context.note`; string, optional)

## Example request

```json
{
  "workspace_id": "string",
  "confirm_first_name": "string",
  "note": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/contact-ai/<contactId>/reset-context' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "string",
  "confirm_first_name": "string",
  "note": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/contact-ai/<contactId>/reset-context';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({workspace_id: 'string', confirm_first_name: 'string', note: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/contact-ai/<contactId>/reset-context"

payload = {
    "workspace_id": "string",
    "confirm_first_name": "string",
    "note": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Context checkpoint saved with the verified actor audit.

### 400

Missing fields or first-name confirmation mismatch.

### 401

Missing or invalid verified user session.

### 403

Platform/IP access denied or contact-workspace mismatch.

### 404

Contact not found.

### 500

Context storage operation failed.

### 503

Identity verification unavailable.


Source: https://developer.channelautomations.com/api/post-api-contact-ai-contact-id-reset-context/index.md
