---
schema_version: "1"
id: 08bb550fb8148f9cfcd6ab85e5bfcc3b24884f6e0fb6b5b5861b7fc16a38ba79
title: Close Conversation
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/agentic-memory-context/references/agentic-memory-context-ref/agentic-memory-api-close-conversation.md
canonical_url: https://developer.salesforce.com/docs/data/agentic-memory-context/references/agentic-memory-context-api-ref/agentic-memory-api-close-conversation.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f2a19eb42776738684a67be0e58023305aa9bdb1a74f86d7f731e48b24bbe87a
products:
  - Agentic Memory & Context
  - Data 360 Developer Documentation
---
# Close Conversation

Signal that the entire conversation is complete across all sessions. Closing a conversation also closes any remaining open sessions.

**URI:** `/api/v1/agentic/conversations/{conversationId}/close`

**HTTP Method:** `POST`

**Authentication:** Bearer JWT

## Path Parameters

| Parameter | Required | Description |
|-----------|----------|-------------|
| conversationId | Yes | Conversation identifier. |

## Request Headers

| Header | Required | Description |
|--------|----------|-------------|
| Authorization | Yes | Bearer JWT token. |
| agent_id | Yes | Registered agent API name. |

## Request Body

No request body required.

## Response Body Schema

| Field | Type | Description |
|-------|------|-------------|
| statusCode | String | Operation status. Value: `closed`. |
| conversationId | String | The closed conversation identifier. |

### Example Response

**Status:** `202 Accepted`

```json
{
  "statusCode": "closed",
  "conversationId": "<conversationId>"
}
```

## Error Codes

| Status Code | Description |
|-------------|-------------|
| 401 | Unauthorized. Invalid or missing JWT token. |
| 404 | Not Found. Conversation does not exist. |
| 500 | Internal Server Error. |
