# Stop a Real-time STT agent (/en/api-reference/api-ref/speech-to-text/leave)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

Stops a Real-time STT task and leaves the channel.

- OpenAPI: /openapi/speech-to-text/v7.en.yaml
- Operation ID: leave
- Method: POST
- Path: /api/speech-to-text/v1/projects/{appid}/agents/{agentId}/leave

## Servers

- https://api.agora.io

## Parameters

- `appid` (path, required) - The App ID of the project.
- `agentId` (path, required) - The unique identifier of the agent you received in the response body of the `join` method.

## Request body

No request body.

## Responses

### 200

OK

No schema.
### default

Error response.

No schema.
