Architecture
Truto is middleware. Your app talks to one URL — api.truto.one — with one bearer token, and Truto holds every vendor credential and forwards each call to the right vendor.
flowchart LR
yourApp["Your app"] -->|"TRUTO_API_TOKEN"| trutoApi["Truto API<br/>api.truto.one"]
trutoApi -->|"vendor credentials"| vendor["Vendor API"]
Two consequences fall out of that:
- Truto handles vendor credentials for you. Your customer connects through Truto Link — whether that's an OAuth handoff, an API key prompt, or whatever flow the integration needs. Truto stores the credentials securely, refreshes OAuth tokens when the vendor supports refresh, and uses the right credential when forwarding calls to the vendor. Your app keeps using the same
TRUTO_API_TOKEN. - Pass-through by default. Each Unified, Proxy and Custom API call goes to the vendor live, and Truto doesn't keep the records it returns. Truto keeps response data in three cases: SuperQuery reads (
truto_super_query) come from a Truto-managed store that your sync jobs fill, write responses you send with anIdempotency-Keyare kept for 24 hours, and when a vendor answers403, up to 2,048 bytes of its body stay on the integrated account aslast_forbidden_error.raw_response_excerpt(see Errors). The trade-offs that follow — rate limits, latency, filter availability — are written up in Realtime data model.
The named entities
These are the nouns you'll see in the API, the SDKs, and app.truto.one. Each one links to the page that owns it.
| Entity | What it is |
|---|---|
| Team | Your Truto account. Owns environments, billing, and members. Manage at Settings → Team members. |
| Environment | A logical group of installed integrations, integrated accounts, API tokens, and webhooks. Production, staging, and development are usually separate environments. |
| Integration | A vendor connector — hubspot, salesforce, gmail. Installed once per environment from the catalog. |
| Integrated account | One end-customer's connection to one integration in one environment. Has an integrated_account_id and belongs to a tenant. Every data-plane call carries ?integrated_account_id=.... |
| Tenant | An environment-scoped external identity — your end-customer, workspace, or organisation — that owns one or more integrated accounts. You choose the id (any string up to 255 characters that fits your data model: team:<team_id>, user:<user_id>, acme-corp, whatever) and Truto keeps the same id across every account that tenant connects. Manage tenants explicitly via POST /tenant or truto tenants ..., or let Truto auto-materialise them on first connection. |
| Unified API | A category-level shape (CRM, ATS, ticketing) that the same call works with across vendors, one integrated account per call. Sits at /unified/{model}/{resource}. |
| Proxy and Custom APIs | The escape hatches. /proxy/{resource} calls a resource defined on the integration and returns the raw vendor shape. /custom/{path} calls any vendor endpoint path you give it, with the integrated account's credentials. Use them when the unified shape doesn't carry a field you need. |
| Link token | Credential your backend mints and your frontend hands to Truto Link. Valid for 7 days, and used up once a connection completes with it. Created at POST /link-token. |
| API token | Server-side bearer for api.truto.one. Scoped to one environment. Never ship this to the browser. |
| Webhooks | Outbound events Truto sends your backend — connection lifecycle (integrated_account:active, :authentication_error), sync runs, and webhook events from the underlying product when Truto receives and forwards them to your app. |
What you see, what your customer sees
Two surfaces sit outside the diagram:
- You see the Truto dashboard — install integrations, install Unified APIs, mint API tokens, register webhooks, inspect integrated accounts. Most of what you do there is also an HTTP route; API tokens, team members, SSO, SCIM and billing are managed only in the dashboard. See API reference.
- Your customers see Truto Link — the Connect UI, the connections widget, RapidForms and file pickers from
@truto/truto-link-sdk, or the hosted page atapp.truto.one/connect-account. These are the only Truto screens your end customers see.
Next
Read Getting started for the runnable version of the request flow above — install an integration, mint a link token, open Truto Link, and make the first Unified API call. Read Why Truto if you're still deciding whether the pass-through model is the right fit.