Trillet AI logo

Remove AI Agent (Human Takeover)

Remove the AI agent from an active call to allow human takeover. The agent is muted rather than disconnected.

POSThttps://api.trillet.ai/v2/api/active-calls/{roomName}/remove-agent

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

roomNamestringrequired

The LiveKit room name of the active call.

Request Body

participantIdentitystringrequired

Identity of the AI agent participant to remove/mute.

Response Fields

successboolean

Whether the agent was removed successfully.

messagestring

Confirmation message.

roomNamestring

The room name of the call.

mutedTracksarray

Array of track SIDs that were muted.

{
  "success": true,
  "message": "Agent removed from call",
  "roomName": "call-abc123",
  "mutedTracks": ["TR_abc123"]
}