Retell AI API
analysis_user_sentiment_prompt body parameter removal on PATCH /update-chat-agent/{id}
Stopped workingSubscribe to Retell AI APIShare
On June 15, 2026, the Retell AI API removed the analysis_user_sentiment_prompt body parameter. Requests to PATCH /update-chat-agent/{id} that include this parameter fail since that day. The parameter was taken out as part of removing three prompt fields from the API.
Calls it hits
PATCH /update-chat-agent/{id}body parameter analysis_user_sentiment_prompt
What to use instead of these calls
Add a system preset item to post_chat_analysis_data with type system-presets, name user_sentiment, and description set to your prompt instead.
In Retell AI API's words
1. The three prompt fields above will be removed from the API.
Facts
- API
- Retell AI API
api.retellai.com - Kind
- Parameter removal
- Takes effect
- June 15, 2026
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against Retell AI API's own pages
Questions
When does this change take effect?
Calls to PATCH /update-chat-agent/{id}, body parameter analysis_user_sentiment_prompt on Retell AI API stopped working on June 15, 2026.
What happens to calls after June 15, 2026?
They have failed since June 15, 2026.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from Retell AI API 10
-
PATCH /update-agent/{id}Parameter removal Stopped working -
PATCH /update-chat-agent/{id}Parameter removal Stopped working -
POST /create-agentParameter removal Stopped working -
POST /create-chat-agentParameter removal Stopped working -
PATCH /update-agent/{id}Parameter removal Stopped working -
PATCH /update-chat-agent/{id}Parameter removal Stopped working -
POST /create-agentParameter removal Stopped working -
POST /create-chat-agentParameter removal Stopped working -
PATCH /update-agent/{id}Parameter removal Stopped working -
POST /create-agentParameter removal Stopped working
You fixed this one by hand.
Okapi opens the pull request with the fix before the next breaking change reaches your code.