# POST /publish-agent/{} stops working

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

On July 20, 2026, Retell AI removed the POST /publish-agent/{id} endpoint. Requests made to this endpoint fail since that date. The change affects any integration still using the legacy agent publishing path.

## 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-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-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
