# POST /publish-chat-agent/{} stops working

Calls to POST /publish-chat-agent/{id} on Retell AI API stopped working on July 20, 2026.

On July 20, 2026, POST /publish-chat-agent/{id} was retired. Any requests made to POST /publish-chat-agent/{id} fail since that date.

## What to use instead

Call POST /publish-agent-version/{agent_id} instead.

- API: Retell AI API (api.retellai.com)
- Kind: Endpoint removal
- Takes effect: July 20, 2026
- Calls after that day: fail
- Calls it hits: `POST /publish-chat-agent/{id}`
- Source: [Announcement](https://docs.retellai.com/deprecation-notice/2026/07-20_agent_version_endpoints)
- Verified: November 6, 2026, against Retell AI API's own pages
- Page: https://www.okapi.bot/providers/retell-ai-api/breaking-changes/post-publish-chat-agent-stops-working/

## Retell AI API's words

> The following APIs are deprecated as of 07/20/2026. Migrate to the listed replacements.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
