# analysis_successful_prompt on POST /create-agent stops working

Calls to POST /create-agent, body parameter analysis_successful_prompt on Retell AI API stopped working on June 15, 2026.

On June 15, 2026, the Retell AI API removed the analysis_successful_prompt body parameter from the POST /create-agent endpoint. Requests that include this parameter fail since that date. The change took effect following the complete removal of the prompt field from the API.

## What to use instead

To update your requests, add a system preset item to post_call_analysis_data using type system-presets, name call_successful, and description set to your prompt.

- API: Retell AI API (api.retellai.com)
- Kind: Parameter removal
- Takes effect: June 15, 2026
- Calls after that day: fail
- Calls it hits: `POST /create-agent`, `body parameter analysis_successful_prompt`
- Source: [Announcement](https://docs.retellai.com/deprecation-notice/2026/06-15_legacy_list_endpoints)
- Verified: November 6, 2026, against Retell AI API's own pages
- Page: https://www.okapi.bot/providers/retell-ai-api/breaking-changes/analysis-successful-prompt-on-post-create-agent-stops-working/

## Retell AI API's words

> 1. The three prompt fields above will be removed from the API.

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