Skip to main content
DELETE
/
delete-agent-version
/
{agent_id}
JavaScript
import Retell from 'retell-sdk';

const client = new Retell({
  apiKey: process.env['RETELL_API_KEY'], // This is the default and can be omitted
});

await client.agent.deleteVersion('agent_xxx', { version: 1 });
{
  "message": "Invalid request format, please check API reference."
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent_id
string
required

Unique id of the agent.

Minimum string length: 1
Example:

"agent_xxx"

Query Parameters

version
integer
required

Version to delete.

Required range: x >= 0
Example:

1

Response

Version deleted successfully.