Business data in AI APIs: training, retention and safe settings
Can you send customer emails, orders or internal documents to an AI API without anyone training a model on them? For business data in AI APIs from OpenAI and Anthropic, inputs and outputs are not used for training by default. That does not mean they are never stored. Data can remain in temporary abuse monitoring logs, stored conversations, files or vector stores, and some of it stays there until you delete it yourself.
This article is for business owners and managers who are introducing AI automation and need to decide which data they let into it. It explains what the providers actually state in their documentation, how the standard mode differs from zero data retention (ZDR), what to configure in your own integration and what to remember about the data processing agreement. It is not legal advice; for sensitive data, also consult your lawyer or data protection officer.
What happens to the data you send to an AI API
It helps to split the question into three separate parts: model training, temporary safety logs and data that the application stores on purpose. Each has different rules and different settings.
Model training
OpenAI states in its documentation that since 1 March 2023, data sent to the API is not used to train or improve its models unless you explicitly opt in to share data (OpenAI: Data controls). Anthropic states that by default it does not use inputs and outputs from its commercial products, including the API, for training. The exception is feedback you explicitly submit, for example via the thumbs up or thumbs down button (Anthropic: Is my data used for model training?).
The key word is “commercial”. Employees’ personal free or paid accounts are governed by different terms than the API and business plans. Anthropic draws this distinction explicitly in both cited articles.
Temporary abuse monitoring logs
By default, OpenAI generates abuse monitoring logs for the API, which may contain prompts and responses, and keeps them for up to 30 days unless the law or protection of the service requires longer retention. Anthropic states that it automatically deletes API inputs and outputs within 30 days of receipt or generation. The exceptions are services with longer retention under your control (such as the Files API), a ZDR agreement, enforcement of its usage policy and legal obligations (Anthropic: How long do you store my organization’s data?). If automated systems flag content as a policy violation, Anthropic may retain inputs and outputs for up to 2 years and classification scores for up to 7 years.
Stored application state: conversations, files and vector stores
The most overlooked part is the data that API features store in order to work. According to OpenAI’s table, the Responses API stores response state for at least 30 days by default or when store=true. Conversations, files, vector stores and batch jobs remain stored until you delete them. Assistants API objects that you do not delete are retained indefinitely. Files can be deleted automatically with the expires_after parameter (OpenAI: Data controls).
So if you build a company assistant on top of uploaded contracts, those contracts stay with the provider until you implement your own deletion. That is not the provider’s fault but a property of the feature, which you have to manage deliberately.
Comparison: what OpenAI and Anthropic state
The table summarises the documentation as of the verification date. Terms change, so always open the current sources listed at the end of this article before deciding.
| Question | OpenAI API | Anthropic API |
|---|---|---|
| Training on your data | No, unless you opt in | Not by default; submitted feedback is the exception |
| Standard retention of inputs and outputs | Abuse monitoring logs for up to 30 days | Automatic deletion within 30 days, with the stated exceptions |
| Stored objects | Conversations, files, vector stores and batches until deleted | Files API and stateful features according to your deletion |
| Zero data retention | After prior approval, configured at organisation and project level | On request via the sales team, separately for each organisation |
| Data processing agreement (DPA) | Available for the API and business plans via a form | Data Processing Addendum referenced in the Privacy Center |
Zero data retention is not a switch available to everyone. OpenAI states that both ZDR and Modified Abuse Monitoring require prior approval and additional requirements, and once approved they are configured under Settings → Organization → Data controls for the organisation as well as for individual projects. With ZDR, the store parameter is always treated as false. Features marked as not eligible for ZDR may still store application state, however. In addition, images and files are scanned for CSAM and, if flagged, retained for manual review even when ZDR is enabled.
Anthropic states that ZDR is enabled separately for each organisation and does not automatically extend to other organisations under the same account. Organisations with ZDR cannot call the API directly from a browser; requests must go through your back end. ZDR does not cover, for example, the Console and playground, the Team and Enterprise plan interfaces or third-party integrations. Some models require 30-day retention and are not available under ZDR without express authorisation (Anthropic: API and data retention).
A practical example: AI triage of product complaints
Illustrative example: an online shop wants AI to read complaints from a form, assign a category and draft a reply. A complaint contains a name, email address, order number, description of the defect and sometimes a photo.
The first version sent the full text, including contact details, to the API and uploaded photos as files that were never deleted. The revised version replaces the name and email address with internal placeholders inside its own back end, sends only the problem description and product category, sends the photo only for categories where it is genuinely needed, and sets automatic file deletion. The reply containing personal data is assembled by your own system only after the model returns its result. The AI gets what it needs to decide, not the whole customer record.
Implementation in six steps
1. Map the data flows
For each automation, write down which fields go to the API, through which endpoint or feature, who the provider is and whether the data is personal data, a trade secret or public information. Without this list you have nothing to configure or check.
2. Check the contractual and operational framework
If you send personal data, the API provider acts as your processor. Anthropic states this explicitly for the Claude API and also points out that when its models are used through Amazon Bedrock or Google Cloud in Google-managed mode, the cloud provider is the processor. OpenAI states that it executes a DPA with business customers and for the API (OpenAI: Enterprise privacy). Sign the agreement before live data enters the system.
3. Minimise data before sending
The cheapest protection is not to send what the model does not need. Remove or replace identifiers, shorten conversation history, do not send entire attachments when an extract is enough, and separate the data needed for the decision from the data needed for the final reply.
4. Choose features based on retention
If you do not need state on the provider’s side, turn off response storage and keep the history in your own database. For files, conversations and vector stores, plan deletion right at the design stage. Remember that data sent to a remote MCP server or another third-party service is governed by that service’s rules, not the model provider’s.
5. Separate environments and projects
Testing with live data through the playground or console is a frequent gap, because these interfaces may have a different retention mode. Create separate projects or organisations for development and production, use anonymised data in tests and restrict who has access to the production project.
6. Document and review regularly
Add to your records of processing and to your customer information who the AI provider is and for what purpose the data is processed. Once a quarter, compare your settings with the provider’s current documentation and verify that automatic deletion actually runs.
Trade-offs: data protection versus convenience
A stricter retention mode comes at a price. ZDR requires approval and is not available for some features or models. Storing history in your own database means more development, but you gain control over both retention periods and deletion. Minimisation can reduce answer quality if you remove context the model genuinely needs, so test it on real types of requests.
For most small and medium-sized companies, a sensible baseline is the standard business API mode with a DPA, consistent minimisation and your own deletion of stored objects. ZDR is worth considering where you process special categories of data or where contracts with your clients require it.
Common mistakes
- Employees paste customer data into personal AI accounts instead of a business solution with an agreement.
- The company assumes that “no training” means “no retention”.
- Uploaded files, vector stores and conversations are never deleted.
- The entire CRM record is sent to the API even though the model needs two fields.
- Development and testing run on live data in the same project as production.
- Third-party integrations, such as MCP servers, are not assessed separately.
Pre-launch checklist
- I have a list of the fields each automation sends and their classification.
- A data processing agreement with the provider is in place.
- I use the business API or a business plan, not personal accounts.
- Identifiers are removed or replaced before sending.
- Response storage is turned off where I do not need it.
- Files and stored objects have automatic deletion configured.
- Development and production projects are separated and access is restricted.
- Sending feedback to the provider is controlled or disabled.
- Records of processing and customer information are up to date.
Frequently asked questions
Do OpenAI or Anthropic train models on data from my API usage?
According to their documentation, not by default. OpenAI uses API data for training only after an explicit opt-in. Anthropic may use content for which you explicitly submit feedback.
How long does the provider keep my prompts?
Typically up to 30 days for abuse monitoring or until automatic deletion. Stored objects such as files, conversations or vector stores remain until deleted, and content flagged as a policy violation may be retained longer.
Do I need zero data retention?
Not always. For ordinary business data, a business mode with a DPA, minimisation and your own deletion is usually sufficient. Consider ZDR for sensitive data or contractual requirements from clients, and expect an approval process and feature limitations.
Can employees use personal AI accounts for company work?
We do not recommend it for customer or internal data. Personal accounts have different terms than the API and business plans, and the company has neither administration over them nor a data processing agreement.
How we can help
At Webiant, we design and build custom AI agents and process automation so that only the necessary data goes to the model and stored objects are deleted according to your rules. When connecting a CRM, online shop or accounting system, we also handle API integrations with minimisation on your own back end; you can find more practical guides on our blog. If you want to review an existing AI automation or prepare a new one, get in touch.