If your product texts on behalf of its customers, you have an authentication question that a single-company sender never faces. Whose credential makes the call? Does each customer connect their own texting account to your product, the way they'd connect a calendar? Or does your platform hold one credential and keep the customers apart in your own code?

Both patterns exist, and the right one depends on who owns the number, the registration and the bill. This post walks through the options and then says plainly what Ready's REST API uses today. We make Ready, so we'll stay with what our API does and point you to the docs for details we haven't published in a post.

The three patterns

PatternWho holds the credentialWho owns the accountGood fit
Platform key, one sub-account per customerYour platformYou own the parent, each customer has a sub-accountVertical SaaS and CRMs that bundle texting
Customer-owned key, pasted inThe customer, stored by youThe customerTools where each customer already has a texting provider
OAuth connectionA token the customer grantsThe customerMarketplace-style apps that users connect

None of these is wrong. They answer a different question: is texting a feature you sell, or a connection your users bring?

Platform key plus sub-accounts

Here you sign up once, and each of your customers becomes a sub-account with its own numbers and its own carrier registration. Your server calls the API with your key and picks the customer's sub-account on each send. The customer never sees a credential and never signs into a second product.

What this buys you:

  • A clean onboarding. No consent screen, no paste-a-key step. You create the sub-account when the customer turns texting on. The POST /v1/sub-accounts and GET /v1/sub-accounts calls are in the sub-accounts docs.
  • One place to rotate. Rotating a single platform key covers every customer, rather than asking each of them.
  • A bill that matches your pricing. Usage is metered per sub-account, so you can price texting inside your own plans. See metering SMS usage per customer.

What it costs you: the platform key is a powerful secret. Whoever holds it can reach every customer's texting, so the isolation between customers lives partly in your code. Resolve the customer's sub-account before every send and fail closed if it's missing. The multi-tenant SMS architecture post lays out that structure, and sub-account per customer vs a shared sender compares when each one fits.

Customer-owned keys

In this pattern each customer has their own account and gives you a key. It suits a platform whose users already have a provider relationship, or an enterprise customer who refuses to let a vendor own their numbers.

The tradeoffs are mostly operational. You now store many secrets, one per customer, and each one needs the same care as a platform key: encrypted at rest, kept out of logs, never shown back in full in a settings page. Rotation becomes a conversation with every customer instead of a deploy. A leaked key affects one customer, which is the upside, but you'll rarely find out first. Our key security and rotation playbook applies to every one of those secrets, and storing keys in a secrets manager covers where to put them.

What OAuth actually adds

OAuth is a way for a customer to grant your app limited access without handing over a long-lived secret. It earns its keep when three things are true:

  1. The customer already has an account with the texting product and you shouldn't see its password or key.
  2. You want the customer to be able to revoke your access from their side.
  3. You want scoped access, not full-account power.

If you're building a marketplace listing in someone else's product, OAuth is usually the expected door. It costs real work, though: a consent screen, token storage, refresh handling and a way to deal with a token that's been revoked mid-send. If texting is a feature inside your own product, those things buy you little, because the customer isn't granting you anything. You are the account holder.

What Ready uses where

Be careful to match the pattern to the surface.

  • REST API. Calls authenticate with a key in the X-API-Key header against https://api.tryready.com. For a platform, that's the platform-key pattern with a sub-account per customer. We haven't documented a per-customer OAuth consent flow for the REST API, so don't design one in. If you need to limit what a key can do, check the docs for how keys are issued and revoked rather than assuming.
  • MCP server for AI agents. The remote server at https://api.tryready.com/mcp accepts OAuth 2.0 with PKCE and dynamic client registration, or an API key as a Bearer token. Details are in the MCP docs, and the MCP post covers the use cases.
  • GoHighLevel. The native integration connects through OAuth, mapped per sub-account, so an agency keeps each client's data isolated.

So the answer depends on the door. A platform building texting into its own product uses the key, and an AI agent or a GoHighLevel user connects through OAuth.

Designing the credential layer in your product

Whichever pattern you pick, these rules hold.

  • One server-side home. The call to the texting API happens from your backend only. A browser or mobile app asks your backend to send.
  • A tenant resolver. A single function turns "this request from this user" into "this customer's sub-account". Every send goes through it, and a missing answer is a refusal.
  • Separate keys per environment. Production, staging and development each get their own, so a leaked staging key can't send live traffic.
  • A runbook for the leak. Write who creates the new key, who deploys it and who reads recent messages with GET /v1/messages to look for sends nobody made. Do it before you need it.
  • Idempotency on every send. Use an Idempotency-Key header, one UUID per message and reused on every retry. A rotation that causes a few 401 retries then can't double-text a customer's contact. See idempotency and duplicate texts.

Sends also carry consent_attested, your promise that the recipient agreed to texts. That's the sender's statement, so only set it when your own records back it. The authentication and webhook signing guide covers verifying inbound webhooks, which is the other half of keeping a platform's credentials and callbacks trustworthy.

How to choose

Ask three questions in order. Does the customer own the numbers and the registration, or do you? If you do, use the platform key and sub-accounts. Does the customer already have a texting account they want to keep? Then take their key, or find a connection that supports OAuth. Are you listing in someone else's marketplace? Then build the OAuth flow they expect.

For most vertical SaaS products the first answer is the one that fits. Start with a platform key, a sub-account per customer and a tenant resolver you trust. If you want to try it against a test key, sign up and follow the API quickstart.