---
title: "End a session"
method: DELETE
path: "/api/v1alpha1/assistant/trademe/conversations/{conversation_id}/rpc"
tags: ["v1alpha1"]
---

# End a session

`DELETE /api/v1alpha1/assistant/trademe/conversations/{conversation_id}/rpc`

## Request

- Base URL: `https://api.trademeai.co.nz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.trademeai.co.nz/api/v1alpha1/assistant/trademe/conversations/{conversation_id}/rpc`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/trademeai/apis/trade-me-ai-platform/docs/api/v1alpha1/assistant/trademe/conversations/:conversation_id/rpc/delete.ts> (a function with typed inputs; its response is checked against the schema)

Ends the session named by the `Anvil-Session-Id` header and discards its buffered events. A stream request that reuses the id afterwards answers 404.

## Path parameters

- `conversation_id` string, required

## Headers

- `Anvil-Session-Id` string, required
- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-07-31** `daa4f3a9034b`: 1 info
  - the endpoint scheme security `AnvilBearerToken` was added to the API

[Operation history](https://skmtc.dev/trademeai/apis/trade-me-ai-platform/changes/api/v1alpha1/assistant/trademe/conversations/:conversation_id/rpc/delete.md)

---

[API](https://skmtc.dev/trademeai/apis/trade-me-ai-platform.md) - [All operations](https://skmtc.dev/trademeai/apis/trade-me-ai-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/trademeai/apis/trade-me-ai-platform/revisions/1164c8a5c534?raw)
