The developer platform — configuring partner apps and the public API
This is for whoever decides which outside software may reach the company's data. Everything here is always on: there is no module to switch on, and nothing reaches the company until a person here lets it in.
Permissions
| Permission | Seeded roles | What it allows |
|---|---|---|
oauth_app.manage | Admin | Register partner apps this company builds, change their redirect addresses and scopes, issue client secrets, submit them to the directory |
app_install.manage | Admin | Install an app in this company, approve its scopes, uninstall it; approve the first consent for an app |
app_install.read | Admin, Manager | See the app directory and what is installed |
webhook.read | Admin, Manager | See webhooks, and the event catalogue on Settings → Developer |
All three new permissions are blocked inside a support session ("Sign in as"):
a borrowed seat cannot leave a token behind that outlives it. Listing an app
in the directory for every company is platform staff's
(platform_app_listing.review, the Operations and Admin platform roles), never
a customer's administrator.
Settings
| Key | Tier | Default | What it does |
|---|---|---|---|
api.partner_app_requests_per_minute | Setting | 120 | The most requests one installed partner app may make in a minute in this company, across everyone who authorised it. Over it the app is answered 429 with Retry-After. |
api.client_requests_per_minute | Setting | 120 | The same, per API key (unchanged; see API clients). |
Raise the partner limit for an app that syncs in bulk at night; leave it at the default otherwise. Token lifetimes are fixed for every company because partners' libraries are written against them: an access token lasts one hour, a refresh token thirty days and is replaced every time it is used, and a consent code ten minutes.
What a partner app can never be given
Whatever a person holds, no app may be registered for — and so never granted —
permissions that decide who can reach the company: people and sign-ins, roles,
sign-in and security policy, credentials, API keys, other partner apps and
installations, modules, overrides, and where webhooks send events
(webhook.manage). Those stay acts a person does on the screen.
How access is decided, on every request
A partner app's token carries the permissions of the person who allowed it, read again on every request, narrowed to:
- the scopes the token was issued with;
- the scopes the company approved when the app was installed;
- the scopes the app is registered for.
So taking a role from somebody, or narrowing an installation, bites on the app's next request; uninstalling stops every token at once; and a suspended app stops everywhere. A token reaches the company it was issued in and no other.
A parameter the API does not take is refused
Every read (GET) on the API — the public 1.1 surface and the internal
/api/v1 routes the product's own screens use — answers 422 for a query
parameter the route does not take, naming it: ?serach= is "Serach is not
something this request takes. Leave it out." Before, an internal read ignored
it and answered as if it had not been sent, so a misspelt filter returned an
unfiltered list or report. An integration built against the internal routes
that sends a name they never read now gets a clear refusal instead of a wrong
answer: remove the parameter, or use the name the route documents in the API
reference. An as-at date still answers to as_at, as_of, on and to_date.
Nothing to configure; writes are unaffected.
Recommended practice
- Install from Settings → App directory and untick scopes the app does not need; the consent screen then never asks an ordinary user to install it.
- Uninstall with a reason that says what replaced the app. The reason is kept on the installation and in the audit log.
- Prefer a partner app over an API key for anything acting for a person: its audit rows name both the person and the app, and it stops when they leave.
Audit
Recorded in the platform audit log with who and when: an app registered,
changed (before and after), its secret rotated, submitted, listed, sent back or
suspended (with the reviewer's note); an app installed, its scopes widened
(before and after), uninstalled (with the reason); and every consent, with the
scopes granted. What an app then does in the company is in the company's own
audit log as api_client, named oauth_app:<client id>, beside the person.
Interactions with other parts of the product
- API clients — keys for your own systems share the public API and its rate-limit shape. A key never expires; rotate it by revoking and issuing.
- Webhooks — the event catalogue on Settings → Developer lists what a webhook
can receive; the delivered body now carries each event's
version. - Modules — a public route belongs to its app. With Customers off,
/api/v1/public/customersanswers 403 like every Customers route.