Platform partners
A platform partner is a product that sits above the lenders it serves, such as a CRM or a marketing platform. It calls TrueTone for many loan officers at once, from its own server, without ever holding a loan officer’s own key.
Everything on the rest of these developer pages still applies. A partner call reaches the same endpoints, gets the same answers and spends credits the same way as a loan officer’s own key. This page covers only what is different.
What it is
| A loan officer’s key | A partner credential | |
|---|---|---|
| Prefix | ttk_ | ttp_ |
| Who it belongs to | One loan officer | The partner |
| Who it acts for | Its owner, always | The loan officer named on each call |
| Who issues it | The loan officer, in their dashboard | TrueTone, during partner onboarding |
| Limits | The key’s rate tiers | The same tiers per loan officer, plus the partner’s own per-minute and monthly ceilings |
A partner can act only for active loan officers (Seats) in enterprise companies it serves. It can never act for an org admin, a Compliance Admin, a compliance-only reviewer or TrueTone staff, and it can never reach a company or a person another partner linked.
Getting credentials
Partner credentials are not self-serve. TrueTone sets each partner up during onboarding:
TrueTone creates the partner
We record your company, a technical contact, and your two ceilings (see Limits below).
TrueTone issues your credential
You get a ttp_ secret once, through a secure channel. TrueTone keeps only a hash of it and its first 12 characters, so a lost secret cannot be recovered, only replaced. Each credential carries the Capability Groups agreed for your integration. The Organization group is never available to a partner, and Scheduling (posting to a loan officer’s social accounts) is granted only when you ask for it.
TrueTone links who you serve
Each company you serve is linked under your own id for it, such as your account or location id. Each loan officer is linked under your own id for them. That id is the value you send in TrueTone-Act-As. A browser launch also links a loan officer the first time they open TrueTone from your product.
Ask your TrueTone contact to rotate a credential (you get a new secret, and the old one keeps working for 24 hours so you can swap it without downtime) or to revoke one (it stops on your next call). Rotate on a schedule, and right away if a secret may have leaked.
Making a call
Send your secret as a bearer token, and name the loan officer the call is for:
POST /api/v1/outside-check HTTP/1.1
Host: hub.truetone.ai
Authorization: Bearer ttp_your_secret_here
TrueTone-Act-As: crm-user-48213
Content-Type: application/jsonAuthorizationcarries your partner secret, never a loan officer’sttk_key.TrueTone-Act-Asis required on every call, up to 256 characters. It is your id for the person, exactly as it was linked. TrueTone ids are never accepted here.
The call then runs as that loan officer. It uses their TrueTone Profile and voice, their company’s rules, and their credits. GET /api/v1/health is the cheapest way to confirm the secret works: it answers with your credential’s id as keyId and the Capability Groups it carries.
Keep the secret on your server. It speaks for every loan officer you serve, so it must never reach a browser, a mobile app, a webhook URL or a log line.
What the loan officer sees
A partner acts for the loan officer, and TrueTone records that it was the partner. Every call that creates, changes or can spend something is written down before it runs: your credential, the loan officer, their company, your id for them, the method, the path and the time. A call that cannot be recorded is not run.
- Their credits. Spending shows in the loan officer’s and their company’s credit activity on the API line, the same as their own key’s calls.
- Their work. What you create appears in their account like anything they made through the API. Their own history does not yet name your product on each item.
- Their checks. An Outside Check you run is kept on their records only when you send
save_to_records: true. Otherwise only a usage row is kept, never the words.
Browser launch
Some partners also open TrueTone inside their own product, so a loan officer can work in the editor without signing in again. Your server signs a short-lived launch token for one person and the browser frame opens:
https://hub.truetone.ai/api/auth/embed/launch?token=<launch token>The token is a JWT that:
- is signed with an asymmetric key (RS256, PS256, ES256 or EdDSA) from the key set URL you gave TrueTone, under the issuer you gave TrueTone;
- names
https://hub.truetone.ai/api/auth/embed/launchas its audience; - lives at most 120 seconds and is accepted once (its
jtiis spent on first use); - carries
sub(your id for the person),email,org(your id for their company) and, to match or create an account by email,email_verified: true. Name, title and phone are optional and only fill fields that are empty in TrueTone.
The same rules as API calls apply: only an active Seat in an enterprise company you serve is signed in. Anyone else lands on a page that explains the launch was refused. A company that requires a second factor accepts a launch only when its settings trust your identity provider’s factor and the token’s amr shows one.
Browser launch is set up per partner. Your issuer, your key set URL and the product address that will frame TrueTone are agreed with your TrueTone contact before you test a launch.
Limits
A partner call meets every limit a loan officer’s own key meets, plus two ceilings of the partner’s own:
| Limit | Default | Counts | Answer when reached |
|---|---|---|---|
| Requests a minute | 60 | Every call you make, across every loan officer, counted before the person is looked up | 429 with {"error": "Rate limit exceeded", "message": "This partner is limited to 60 requests a minute."} and Retry-After |
| Credits a month | 2,000 | Credits your calls spent or are holding this calendar month (UTC), across every company you serve | 429 with {"error": "This partner has used its 2000 credits for this month", "code": "partner_budget_reached"} |
| Per loan officer, per endpoint | The rate tiers | Your calls for one loan officer | The standard 429 body and X-RateLimit-* headers |
| The loan officer’s own credits | Their allowance, their company’s balance and spending cap | Any call that spends | The standard 402 or 429 answers on Credits and billing |
Your ceilings are set per partner and can be raised. The monthly ceiling is a safety limit, not a bill: a burst already in flight when it is reached can pass it by at most one minute of calls. A refused call never spends credits.
Credits during the pilot
During the pilot, partners pay nothing. A call spends the credits of the loan officer it acts for, at the same prices as the same action in the app, under their allowance and their company’s spending cap. Reads are free, and so is the Outside Check within the loan officer’s free checks.
Errors
On top of the standard refusals, a partner can get:
| Status | Body | When it happens | What to do |
|---|---|---|---|
401 | {"error": "Invalid API key"} | The secret is unknown, revoked, past its rotation window, or the partner is disabled. All deliberately identical | Check the header, then ask your TrueTone contact |
400 | {"error": "Name the person this call acts for in the TrueTone-Act-As header", "code": "act_as_missing"} | The header is missing, empty or over 256 characters | Send your id for the loan officer |
403 | {"error": "This partner may not act as that person", "code": "act_as_refused"} | The id is not linked to you, or that person or company can’t be acted for right now. The reason is never given, so the answer reveals nothing about accounts you don’t serve | Check the id; ask your TrueTone contact to link the person or their company |
403 | {"error": "This API key does not grant the <name> capability", "requiredCapability": "<id>"} | Your credential does not carry the endpoint’s Capability Group | Ask for a credential that carries it |
429 | See Limits | A partner ceiling or a per-person tier was reached | Wait for Retry-After, or for the month to roll |
503 | {"error": "The action could not be recorded, so it was not run"} | TrueTone could not write the record of the call | Retry with backoff. Nothing ran and nothing was spent |
Related
- Check and fix a draft for a loan officer, a first worked example
- Authentication for loan officers’ own keys
- Capability Groups
- Errors