Skip to main content
POST
/
publish-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.publish('agent_xxx', { version: 15 });
{
  "status": "error",
  "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"

Body

application/json
version
integer
required
Required range: x >= 0
Example:

15

version_description
string
Example:

"Hotfix for transfer timeout"

Response

Agent version published successfully.