Skip to main content
POST
/
publish-agent
/
{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('16b980523634a6dc504898cda492e939');
{
  "status": "error",
  "message": "Invalid request format, please check API reference."
}

Documentation Index

Fetch the complete documentation index at: https://docs.retellai.com/llms.txt

Use this file to discover all available pages before exploring further.

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 to be published.

Minimum string length: 1
Example:

"16b980523634a6dc504898cda492e939"

Response

Agent successfully published