---
title: AI can write an integration in an hour. Here is the hard part that's left (2026)
slug: ai-wrote-the-integration-whats-left
date: 2026-11-30
author: The Truto Team
categories: ["AI & Agents", Guides]
excerpt: "Eight jobs stay after a coding agent writes the integration: what breaks in each, how often, and who runs it."
tldr: "Running it. Per-customer OAuth and token refresh, rate limits and retries, webhooks, API changes, custom fields, and audit for AI agents. That work never ends, so it costs more than the code. Truto runs all of it for every connected account; your code calls one API."
canonical: https://truto.one/blog/ai-wrote-the-integration-whats-left/
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# AI can write an integration in an hour. Here is the hard part that's left (2026)


## Key takeaways

- Google gives apps in testing status refresh tokens that expire after 7 days, and revokes a token that is unused for six months.
- HubSpot allows a public app 110 requests every 10 seconds for each account that installs it.
- Salesforce retired API versions 21.0 to 30.0 in Summer '25. Calls to a retired version fail.
- Two customers on the same CRM rarely have the same fields. A mapping written against one test account misses the rest.
- An AI agent acts with the customer's login. It needs chosen tools, an end date and a log of each request.

## 1. OAuth apps and app reviews

**What breaks.** Before one customer can connect, most apps make you register an OAuth app with them. Some apps also review you. Google requires a CASA security assessment for restricted scopes, such as Gmail and Drive, and you repeat it every 12 months. Until the review passes, your customers cannot connect, or they see a warning screen.

**How often.** Once for each app, then again at each re-review. The work grows with each app you add.

**What Truto does.** Truto ships a working OAuth app with many catalog integrations, so customers can connect on day one. [Truto's Google app is CASA Tier 2 verified](https://truto.one/google), so you can offer Gmail, Calendar and Drive with no Google assessment of your own. When you want your own name on the sign-in screen, you bring your own OAuth app.

## 2. Token storage and refresh

**What breaks.** Access tokens expire. Your code must refresh each one before it expires, for every customer. If two workers refresh the same token at the same time, one of them can invalidate the other's token, and the customer is signed out. Customers also revoke access, change passwords or leave the company, and the next call fails with `invalid_grant`.

**How often.** Every day, for every connected account. Google issues refresh tokens that [expire after 7 days to apps in testing status](https://developers.google.com/identity/protocols/oauth2#expiration). Google also revokes a refresh token that is not used for six months, and allows 100 refresh tokens for each Google account and client.

**What Truto does.** Truto encrypts every token at rest with AES-256. Truto refreshes a token 60 to 180 seconds before it expires. Two requests at the same moment cause one refresh, under a lock, and a 30-second watchdog clears a stuck refresh. When a customer removes access, Truto marks the account `needs_reauth` and sends your product an `integrated_account:authentication_error` event.

Read more: [handling OAuth token refresh failures in production](https://truto.one/blog/handling-oauth-token-refresh-failures-in-production-for-third-party-integrations/).

## 3. Rate limits and retries

**What breaks.** Every app says "slow down" in its own way. Some apps send a `429` with a `Retry-After` header. Others send a `200` or a `403` with the limit in the body. A sync that ignores the limit gets blocked, and a retry loop with no backoff makes the block longer.

**How often.** On every large sync and every busy customer. [HubSpot limits a public app to 110 requests every 10 seconds](https://developers.hubspot.com/docs/developer-tooling/platform/usage-guidelines) for each account that installs it. Each app has its own numbers.

**What Truto does.** Truto turns each app's limit signal into a standard `429` with `ratelimit-*` headers, and with `Retry-After` when the app gives the wait time. That includes limits that the app sends inside a `200` or a `403`. A Truto sync run waits, then continues.

Read more: [rate limits and retries across third-party APIs](https://truto.one/blog/best-practices-for-handling-api-rate-limits-and-retries-across-multiple-third-party-apis/).

## 4. Pagination

**What breaks.** A long list comes back in pages, and each app pages in its own style: cursors, page numbers, offsets, links in headers. A parser that works for one app misses records in the next. You find out when a customer asks why their data is incomplete.

**How often.** Once for each app, and again when an app changes its paging.

**What Truto does.** Truto reads six pagination styles and returns one `next_cursor` to your code.

Read more: [normalizing pagination and errors across 50 integrations](https://truto.one/blog/how-to-normalize-api-pagination-and-error-handling-across-50-integrations/).

## 5. Webhooks

**What breaks.** To hear about changes, you keep a public endpoint up for each app. Each app signs its webhooks in its own way, and an endpoint that does not check the signature accepts fake events. When your endpoint is down, events are lost.

**How often.** Continuously. Every app that sends events adds one more signature scheme and one more failure mode.

**What Truto does.** Truto checks incoming webhooks with each app's method: HMAC, basic, bearer or JWT. Truto then sends your product signed `record:*` events, and tries each delivery 5 times in 5 minutes. Truto keeps webhook events for up to 30 days.

Read more: [designing reliable webhooks](https://truto.one/blog/designing-reliable-webhooks-lessons-from-production/).

## 6. API changes

**What breaks.** Apps rename fields, retire endpoints and turn off old API versions. Your code still calls the old version, and the calls start to fail. In-house, you find out from errors, fix the code and release your product again.

**How often.** Every year, for every app you support. [Salesforce retired API versions 21.0 to 30.0 in Summer '25](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/api_rest_eol.htm). A call to a retired REST version gets `410 GONE`.

**What Truto does.** Truto builds the catalog integrations and keeps them up to date. An integration on Truto is a definition that every account reads, not code in your product. So one fix reaches every customer, and your team does not release anything.

Read more: [handling API breaking changes across SaaS integrations](https://truto.one/blog/how-to-handle-api-breaking-changes-across-multiple-saas-integrations/).

## 7. Custom fields for each customer

**What breaks.** Two customers on the same CRM have different fields. One stores the deal region in a custom field, and the other uses a custom object. Code written against one test account maps the standard fields only. In-house, you fork the mapping for each customer.

**How often.** With every enterprise customer. The larger the customer, the more custom fields.

**What Truto does.** Truto lets you override the mapping for each connected account, with no fork of your code. You can also call the app's own API through Truto for anything the mapping does not cover.

Read more: [custom fields and custom objects in Salesforce](https://truto.one/blog/how-to-handle-custom-fields-and-custom-objects-in-salesforce-via-api/) and [how unified APIs handle custom fields](https://truto.one/blog/how-do-unified-apis-handle-custom-fields-2026-architecture-guide/).

## 8. Access control and audit for AI agents

**What breaks.** When an AI agent uses the integration, it acts with the customer's login. An agent with full access can change or delete records that it should only read. Security teams ask what the agent did, and you need a log for each request to answer.

**How often.** On every agent rollout, and on every security review.

**What Truto does.** Each connected account gets its own [MCP server](https://truto.one/mcp), with its own tools. You start read-only, then turn on changes one customer at a time. You pick which tools the agent gets, and the date its access ends. Truto keeps a log of each request for 7 to 90 days, by plan.

## Summary: what AI writes, and what is left

| Job | What breaks | What Truto does |
|---|---|---|
| OAuth apps and reviews | Customers cannot connect until each app approves you | Ships a working OAuth app with many catalog integrations; Google app is CASA Tier 2 verified |
| Token refresh | Tokens expire or race, and customers are signed out | AES-256 at rest; refresh 60 to 180 s before expiry, one per account under a lock |
| Rate limits | Syncs get blocked; retries make it worse | Standard `429` with `Retry-After`; sync runs wait and continue |
| Pagination | Records go missing | Six styles become one `next_cursor` |
| Webhooks | Fake or lost events | Checks each app's signature; sends signed events, 5 attempts in 5 minutes |
| API changes | Calls fail on retired versions | Keeps catalog integrations up to date; one fix reaches every customer, no release |
| Custom fields | Mapping misses each customer's fields | Override the mapping per account |
| AI agent access | Agents do more than they should, with no record | One MCP server per account, chosen tools, an end date, request logs |

## Which vendors handle the hard part

The vendors that answer this question fall into four types. Each type covers a different part of the list above.

- **Unified API platforms** give one API for a category of apps, such as CRM or HRIS, and run the logins behind it: [Truto](https://truto.one), [Merge](https://www.merge.dev), [Apideck](https://www.apideck.com) and [Unified.to](https://unified.to).
- **Auth and integration infrastructure** runs the logins and the plumbing, and you write the integration logic: [Nango](https://www.nango.dev) and [Ampersand](https://www.withampersand.com).
- **Tool platforms for AI agents** give agents ready-made tools with each user's login: [Composio](https://composio.dev) and [Arcade](https://www.arcade.dev).
- **Embedded iPaaS** gives a workflow builder inside your product: [Prismatic](https://prismatic.io), [Tray.ai](https://tray.ai), [Workato](https://www.workato.com) and [Paragon](https://www.useparagon.com).

Truto covers all eight jobs on this page, for every connected account. Your code can call the unified API, the app's own API through Truto, or an MCP server. Your coding agent can build a missing integration with the [Truto CLI](https://truto.one/cli), and Truto runs it from the first call. For a feature-by-feature view of these vendors, read the [buyer's guide to unified APIs for AI agents](https://truto.one/blog/best-unified-api-for-ai-agents-2026-buyers-guide-platform-comparison/).

## What to do next

Let your coding agent write the integration. Then decide who runs it. [See the cost of running it yourself, line by line](https://truto.one/build-integrations-with-ai), or [get a free sandbox](https://truto.one/sandbox/) and connect your first account today.
