API strategy
Platform integration
How to build a partner API: a 7-step guide covering contracts, delegated auth, endpoint scoping, rate limits, onboarding, and versioning for SaaS teams.

A partner API is the surface you expose to a defined set of external companies — resellers, embedded software vendors, systems integrators, marketplaces — so they can act on your platform on behalf of shared customers. It's not your public API, and it's not an internal service. The contract, auth model, rate limits, and lifecycle all differ.
By the end of this guide, you'll have a working blueprint for scoping, building, and rolling out a partner API that can carry real production traffic. Prerequisites: an existing product with some internal APIs, a way to issue credentials, and at least one named launch partner. Time required: 8–12 weeks for a first cut, longer if you're carving capabilities out of a monolith.
A partner API fails when it starts as an endpoint list. Start with the contract: who the partners are, what they can do on behalf of a customer, what they can't, and what the commercial relationship looks like. This shapes every technical decision downstream.
Write down four things:
Don't skip this. Every ambiguity here becomes an auth ticket in month six.
These are different products even when they share code. A public API is open to any developer who signs up. A partner API is gated, contractual, and usually exposes capabilities the public API doesn't.
If you already have a public API, resist the urge to just add scopes and call it a partner API. Partners need capabilities customers shouldn't have — provisioning tenants, reading billing, managing users across accounts — and mixing those into a public surface is how you leak sensitive endpoints.
The hard part of a partner API is auth, not endpoints. A partner acts on behalf of a customer, and that customer's users have their own permissions inside the partner's product. You need three layers:
OAuth 2.1 with the authorisation code flow handles layers one and two cleanly. Layer three is where teams improvise, and it's where audits fail. Decide up front: does the partner act as a service account inside the tenant, or on behalf of a specific user? For anything touching customer data, act as the user. Service accounts kill the audit trail.
For a full walkthrough, see OAuth for AI agents: a practical setup guide for delegated access — the delegated access pattern is the same whether the caller is a partner service or an agent.
A common mistake: expose internal microservices one-to-one and call the collection a partner API. Partners don't want your service topology. They want to do jobs.
Map each partner tier to 5–15 concrete jobs. Examples:
Each job becomes one endpoint or a small tight cluster. If a partner needs to call four endpoints in sequence to do one job, the API is wrong — either compose it server-side or redesign the job.
This is also where you decide what to expose from the small fraction of product capability your existing APIs cover versus what needs new surface. Be honest with the launch partner about which jobs are day-one and which are next quarter.
Partner traffic patterns are burstier than public API traffic. A single partner running a nightly sync for 500 shared customers hits your API harder in ten minutes than your entire public API sees in a day.
Implement two layers:
Return the conventional headers on every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset — or the emerging IETF RateLimit and RateLimit-Policy fields from the httpapi working group's draft. Partners will build backoff against these. If you don't send them, partners guess, and their retries make your incident worse.
Deeper treatment in API rate limiting best practices for SaaS in the agent era.
API partner onboarding is where most partner programmes silently die. The contract gets signed, credentials go out by email, and six weeks later the partner still hasn't made a successful call.
Build these in order:
If you can't demo a partner going from contract-signed to first successful call in a single afternoon, come back to step six before adding more endpoints.
Partners have production systems built on your API. A breaking change without coordination costs them money and burns the relationship.
Set the policy explicitly:
Accept header. Pick one and stick with it.Sunset and Deprecation HTTP headers on every response from a deprecated version.See API versioning strategy for SaaS platforms in the agent era for the mechanics.
The patterns that break partner APIs are consistent across teams:
The partner API you ship in six months is easier to maintain than the one you ship in six weeks. Design the contract, the auth model, and the onboarding path before the endpoint list gets long.
Stay up to date on the ever changing agentic landscape.