Skip to content

OpenAI Assistants API: sunset 26 August 2026

Source: OpenAI deprecations. Last verified 6 October 2026. Dates come from the provider's page; if it disagrees with this page, the provider is right.

APIProviderAnnouncedSunsetNotice
Assistants APIOpenAI26 Aug 202526 Aug 202612 months

OpenAI announced the deprecation of the Assistants API on 26 August 2025 and set the sunset for 26 August 2026. That date has passed. OpenAI's deprecations page lists the recommended replacement and migration material; follow it rather than any summary, including this one.

A year is generous compared with some OpenAI model retirements: GPT-4.5-preview had about three months' notice, and o1-preview and o1-mini had three to six months. OpenAI states that impacted customers are notified by email and in its documentation.

Why leftovers survive a sunset

Most teams migrated their main path well before the deadline. The code that survives is the code nobody looked at:

  • Background jobs that create or poll threads on a schedule, and fail quietly into a log nobody reads.
  • Admin or internal tools built as a quick prototype on the Assistants API and never touched again.
  • Fallback paths kept “just in case” when the new implementation shipped.
  • Setup scripts that create assistants or upload files when a new environment is provisioned. They run rarely, so they break late.
  • Stored IDs for assistants or threads in databases or config, which the new code no longer reads but nothing has cleaned up.

Find the remaining calls

The SDK namespaces and REST paths for this API use the word “assistants”, and related objects use “threads” and “runs”. A broad first pass:

rg -n -i "assistants" --glob '!node_modules' --glob '!vendor' --glob '!dist'

Expect false positives: “assistant” is also a message role in chat requests. Narrow the search by looking for the plural, for paths that include it, and for code that also mentions threads or runs:

rg -l -i "assistants" | xargs rg -n -i "threads|runs"

Check the exact endpoint and SDK method names against OpenAI's deprecations page and the API reference for the SDK version you use. Then search your logs or error tracker for failures from the remaining call sites since 26 August 2026: a job that has been failing since the sunset is the clearest sign of a leftover.

Clean-up checklist

  1. Remove or migrate each call site found above, starting with scheduled jobs.
  2. Delete fallback branches that point to the old API.
  3. Remove stored assistant and thread IDs that nothing reads any more.
  4. Remove environment variables and secrets that only the old path used.
  5. Add a check so new code can't reintroduce calls (a CI grep, or a deprecation scanner).

The same approach works for model IDs: see how to find deprecated model IDs in a codebase.

Find retiring model IDs in your repositories

Install the GitHub App on your account and choose repositories. The first scan runs straight away and posts what it matched as an issue, with the file, line, shutdown date and source.