PATCH
/
end-chat
/
{chat_id}
import Retell from 'retell-sdk';

const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
});

async function main() {
  await client.chat.end('16b980523634a6dc504898cda492e939');
}

main();
This response does not have an example.

Authorizations

Authorization
string
header
required

Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"

Path Parameters

chat_id
string
required

Unique id of the chat to be ended

Example:

"16b980523634a6dc504898cda492e939"

Response

204

No Content