If you are searching for how to use the OpenAI Assistants API, the most important fact comes first: OpenAI shut it down on 26 August 2026. The deprecation was announced a year earlier, and the old endpoints now return errors instead of responses. Any application or integration that still depended on assistants, threads, and runs stopped working on that date. The replacement is the Responses API, together with the Conversations API for long-lived state. This guide explains what was removed, what survives, how the old concepts map onto the new ones, and a practical step-by-step path to migrate.
What Was Shut Down and What Still Works
The shutdown covers the assistant, thread, message, run, and run-step endpoints, including anything that still sent the assistants beta header. Assistant configurations and thread history can no longer be read through the API, so if you never exported them, they are effectively gone. If your app has been failing since the end of August with not-found errors on those paths, this is the cause.
Not everything attached to an assistants integration disappeared. Your uploaded files and vector stores remain available and can be used with file search in the Responses API. The Chat Completions API was not part of this shutdown. The Realtime API is also unaffected. That means the migration is mostly about rebuilding the conversation loop, not about re-uploading your knowledge base.
Figure 1 — Assistants API concepts and their replacements
The Mental Model Shift
With the Assistants API, you created a persistent assistant object holding instructions and tools, started a thread, added messages, created a run, and then polled until the run finished or asked for tool output. Several objects and several calls produced one answer. The Responses API collapses that into a single request per turn that carries the model, instructions, input, and tools together, and returns the result directly. Conversation state becomes your choice: let OpenAI hold it with the Conversations API, chain turns by referencing the previous response, or store the message history yourself and send it each time.
The deeper change is who runs the loop. Under Assistants, a run could pause in a state that asked for tool output, you submitted the results, and OpenAI resumed the run for you. In the Responses model, when the model requests one of your own functions, your code executes it and sends the output back in a follow-up request. Hosted tools such as file search and the code interpreter run on OpenAI’s side without that extra round trip. Plan for the loop to live in your application code.
Step-by-Step Migration
- Inventory what you have. List every assistant your app used: its model, instructions, tools, attached files, and where its thread IDs are stored. If you still have the instructions in your own repository or configuration, you are in good shape. If they only existed inside the dashboard, reconstruct them from your documentation, logs, or team knowledge, since the API can no longer return them.
- Move instructions into your codebase. Put each system prompt in version control next to the code that uses it. Treat prompts as code, with review and history, instead of a hidden server-side setting.
- Decide how to keep conversation state. For simple chat, chaining each turn to the previous response is the lightest option. For long-lived, multi-device conversations, use the Conversations API. If you already store messages in your own database, you can keep doing that and send the relevant history each turn, which also gives you the most control over cost and privacy.
- Replace run-and-poll with a single request. Wherever you created a message, started a run, and polled, call the Responses API once with the instructions, the new user input, the conversation reference, and the tools. Read the output items from the result.
- Re-attach your tools. Point file search at the vector stores you already have. Enable the code interpreter tool if you used it. For custom functions, keep the same JSON schemas and add the loop that runs them and returns the output.
- Update streaming. If you consumed run events, switch to the Responses streaming events and update the code that renders partial text.
- Test against real conversations. Replay a sample of genuine user questions through the old behaviour you remember and the new code, and compare answers, tool usage, and latency before switching traffic.
File Search and Vector Stores
For most retrieval-based assistants, this is the easiest part. Your vector stores are separate resources that survived the shutdown, so the new request simply references them through the file search tool. Verify that the same documents are attached, run a handful of questions you know the answers to, and check whether citations in the output look right. Be aware that retrieval behaviour can differ slightly between the old and new paths, so judge quality on your own questions instead of assuming equivalence. Also remember that hosted tool calls such as file search can carry their own charges on top of token costs, so review the pricing page.
Rebuilding the Function-Calling Loop
If your assistant called your own functions, rewrite that logic as an explicit loop. Send the request with your function definitions. If the response contains function call items, execute each one in your code, collect the outputs, and send a new request that includes those outputs tied to their call IDs. Repeat until the response contains a final message and no further calls. Add a maximum iteration count so that a confused model cannot loop forever, validate arguments before running anything with side effects, and log each step. This loop is more code than before, but it gives you full visibility into what the model asked for and what your system did.
Recovering from Lost Thread History
Teams that stored only thread IDs and relied on OpenAI to hold the messages are in the hardest position, because that history can no longer be retrieved through the API. Check whether you have application logs, database copies, analytics exports, or customer-facing transcripts that contain the conversations. If you do, you can seed new conversations from them. If you do not, tell affected users honestly that earlier chat history is unavailable, and start fresh. For the future, store your own copy of every message so that your product never depends on a provider’s retention of your users’ data.
A Caution About Server-Side Prompt Objects
OpenAI’s migration material has pointed assistants toward reusable prompt objects, which store instructions on the platform. At least one migration guide reports that those reusable prompt objects are themselves scheduled to be retired on 30 November 2026. Verify the current status on OpenAI’s deprecations page before you build on them. The safest approach is the one already recommended above: keep instructions in your own repository and send them with each request, which cannot be taken away by a platform change.
Common Migration Mistakes
- Treating it as a rename. The loop ownership changes, so a find-and-replace of endpoint names will not work.
- Forgetting to cap tool loops. Always set a maximum number of iterations.
- Sending the whole history forever. Long conversations grow in cost, so trim or summarise old turns.
- Skipping evaluation. Compare answers on real questions before switching all traffic.
- Leaving instructions only in a dashboard. Keep them in version control.
Frequently Asked Questions
- Can I still use the Assistants API?
- No. OpenAI removed it on 26 August 2026, and requests to its endpoints no longer work. Migrate to the Responses API.
- Do I need to re-upload my files?
- Usually not. Existing files and vector stores remain available and can be used with the file search tool in the Responses API. Confirm they are still attached and returning good results.
- Is Chat Completions affected?
- No. Chat Completions continues to work. It is a reasonable choice for stateless, single-turn tasks, while the Responses API is the recommended base for new agent-style applications.
- Will migrating change my costs?
- Token rates are the same across these APIs, but the cost profile can shift. Hosted tool calls may be charged separately, and conversation history you resend adds input tokens, so measure on real traffic.
Last updated: November 2026. Dates and deprecation details can change, so confirm them on OpenAI’s deprecations page and migration guide.
Rolling Out the New Implementation Safely
Because the old API is already gone, many teams are migrating under pressure, but a careful rollout still pays off. Put the new code path behind a feature flag so you can switch it on for a small share of traffic, watch error rates, latency, and user feedback, and widen the rollout only when the numbers look healthy. Log every request with its response ID, the model used, token counts, and any tool calls, so that when a user reports a bad answer you can trace exactly what happened. Keep a simple rollback plan, such as routing to a plain Chat Completions fallback that answers without tools, so that a bug in the new loop never leaves users with nothing. Finally, write down the new architecture, including where instructions live, how state is stored, and how tools are executed, so the next engineer does not have to rediscover it. A short design note now is far cheaper than another emergency when the next platform change arrives.