---
title: "POST /publish-chat-agent/{agent_id}"
method: POST
path: "/publish-chat-agent/{agent_id}"
---

# POST /publish-chat-agent/{agent_id}

`POST /publish-chat-agent/{agent_id}`

Publish the latest version of the chat agent and create a new draft chat agent with newer version.

## Path parameters

- `agent_id` string, required

## Response `200`

Chat agent successfully published

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Content
- `500` — Internal Server Error

## Changes

- **2026-03-09** `8fbf8c54a142` — 1 breaking
  - for the `path` request parameter `agent_id`, the minLength was increased from `0` to `1`

[Change history](https://skmtc.dev/retellai/apis/retell-sdk/changes/publish-chat-agent/:agent_id/post.md)

---

[API](https://skmtc.dev/retellai/apis/retell-sdk.md) · [All operations](https://skmtc.dev/retellai/apis/retell-sdk/llms.txt) · [OpenAPI document](https://skmtc.dev/retellai/apis/retell-sdk/revisions/1b4a9d84942a?raw)
