After changing the base URL and API key, a new question works but continuing an old conversation fails. Uploaded files still appear in the interface, yet the model cannot find them. The missing dependency is often who stores the history and remote resources.
Before switching an AI API relay, inventory application-owned messages, state held by the previous service and file or resource references. This guide explains how to organize that inventory, cut over and verify the result. It is application-level migration guidance, not a claim that String AI can import any platform's chat history automatically.
Identify the layer being changed
A chat application may save complete messages in its own database and send the necessary context on each request. Another may depend on a remote conversation or previous response identifier. Their interfaces can look similar while their migration requirements differ.
OpenAI's conversation-state documentation describes manually providing history and chaining responses with previous_response_id. Visible chat history therefore does not, by itself, establish that a new endpoint can access the state used by the old one.
Map the actual request path: where messages are read, which backend endpoint is called, where files are uploaded and who generates result links. A compatibility label does not answer these questions. The site's API compatibility checklist covers related interface checks.
Divide the inventory into four groups
Application-owned messages and settings. Identify storage, export method, role order, attachments and user permissions. Exported text may omit original files, tool results or model settings.
Remote conversations and response IDs. Record which service, account or project created them and how later requests refer to them. Treat an ID as a reference within its service, not a portable credential, unless the target explicitly supports and has passed a verified reuse path.
Original files and file IDs. Track the source bytes, version, access scope and returned identifier separately. Identical filenames do not prove identical content, and possessing an ID does not prove that the original can be downloaded.
Derived resources. Inventory search indexes, vector stores, summaries, generated files and temporary download URLs separately. Copying source files does not automatically recreate indexes, and a chat export may not include them.
This is a planning framework, not a requirement to copy everything. Decide what the business needs, what processing is authorized and which records should remain read-only archives.
Preserved text still needs a continuation test
Imagine a support application that saved user and assistant text but retained only tool names, not results. Replaying the text may omit the order state or execution outcome used in the original answer. This is a hypothetical example.
Check message roles, ordering, tool-call/result pairing and how system or developer guidance is supplied. Do not elevate old assistant text into new system instructions. Display text in an export is not necessarily a complete request representation.
For a long history, an application can retain the original as a read-only record while starting a new conversation with a checked summary. Include decisions, unresolved work and required references. A summary can lose detail and should not be described as an equivalent copy of the original. See the guide to conversation state and compaction for related context.
Support for a similarly named field does not establish that an old remote ID will resolve. If the path is uncertain, start with controlled necessary context rather than silently discarding history while displaying “Migration successful.”
Recover originals before rebuilding file references
OpenAI's file-input guide shows uploading a file and referencing its file_id. Anthropic's Files API documentation describes workspace-scoped file references and distinguishes downloadable file types. These are service-specific rules, not a universal exchange format.
Confirm that you hold the original and have permission to upload it to the target. If only an old ID remains, check the source service's retrieval options first. Do not assume every uploaded object can be recovered through a download endpoint.
A useful application mapping includes a business file ID, original location, content version or checksum, old reference, new reference and access scope. A checksum helps detect byte changes; it does not prove authorization or trustworthy content.
After uploading, verify that the target model can use a known fact in the test file. Receiving an identifier is only an upload check. Scanned documents, tables and images require acceptance criteria appropriate to the task, not merely a successful HTTP response.
Handle unfinished work separately
An image, video, batch job or tool operation with external effects should not be resubmitted automatically because the endpoint changed. Record its status and ownership. Decide whether to wait for the old job, cancel and recreate it, or retain the original path to retrieve its result.
An operation's execution state is different from a chat message. If a tool created a ticket but the reply was lost, replaying the operation during migration could create another ticket. The site's idempotent tool-calling guide discusses uncertain outcomes.
Inspect temporary output URLs as another dependency. When retention is required and authorized, save downloadable results under the applicable rules and record their source. A URL that works today is not a durable archive guarantee.
Test isolated examples before moving traffic
Use synthetic or authorized nonsensitive data to cover the following cases:
- Start a text conversation and refer to information from its first turn in a follow-up.
- Reconstruct context from application-owned history and verify role order.
- Exercise a known unsupported old reference and confirm the application reports failure honestly.
- Upload a test file; check its contents, references and current-user access.
- Complete a tool round trip without external side effects and verify call/result pairing.
- Check truncation or summarization for long histories and the explanation shown to users.
- Verify unfinished jobs and generated-file retrieval without repeating actions.
- Rehearse rollback: can requests on the original route access the history and files they actually depend on?
Keep timestamps, model IDs, endpoint paths and sanitized errors. Do not put full API keys in the migration log. The relay-pricing guide can help structure the test budget.
Plan old-data cleanup after acceptance
A staged cutover can route new conversations to the new endpoint while sessions dependent on old remote state finish or migrate under an explicit plan. Make routing understandable; do not bounce one conversation between incompatible state systems.
Once continuation, files, permissions and output retention pass, handle old resources under the established retention policy. Do not delete the only original merely to make the migration look complete, or retain duplicate copies indefinitely. Export, deletion and account closure are different operations.
For String AI, use the current integration documentation and the interfaces actually available to your account. A working text call does not establish support for every conversation, file or index endpoint. Verify undocumented capabilities instead of treating an upstream feature as a relay's commitment.
Frequently asked questions
Does changing an API key move chat history automatically?
No migration follows merely from changing a key. Identify whether the application or remote service stores the history and which resources continuation requires.
Is a text-only chat export sufficient?
It depends on the task. Text may help rebuild context, while attachments, tool results, permissions and remote references require separate checks.
Can an old file ID be sent directly to a new relay?
Do not assume it will work. Migrate originals and rebuild references through supported target mechanisms, then verify retrieval and authorization.
Editorial note: AI assisted drafting. Technical sources were checked on December 2, 2026. The procedure is application-design guidance; no customer data migration or paid API testing was performed.