Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Apps and API keys

Which credential an app, an integration or a script should use to reach Exponential - OAuth2 for apps whose users sign in, personal API keys with scopes for one user's programs, expservices tokens for remote services…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/businesses/mobile-and-headless/apps-and-api-keys.md

On this page

Apps and API keys

This page is for managers and administrators who must decide how programs are allowed to talk to Exponential: a mobile app, a partner's system, an import script, an agency's tool. It explains the three credentials the platform offers, how each is controlled, what is recorded, and a set of house rules. The technical page is OAuth and API keys.

oAuth admin: the applications with access
oAuth admin: the applications with access

Contents

  1. Three credentials, chosen by who the program acts for
  2. OAuth2 for apps whose users sign in
  3. Personal API keys
  4. expservices tokens
  5. Control, limits and the audit trail
  6. House rules for a business

Three credentials, chosen by who the program acts for

From OAuth and API keys:

The programUse
Acts for many users who sign in themselves (a mobile app)OAuth2
Is one user's own scriptA personal API key
Drives administration services (apps, portals, shells)An expservices token

None of them is a password: an API key "cannot sign in to the site or the administration" (Personal API keys).

OAuth2 for apps whose users sign in

  1. An administrator registers the app under Setup > oAuth admin: identifier, secret, redirect address.
  2. The app sends the user to the site's authorize page; the user signs in and allows the app. The user needs the policy oauth/authorize, which can be limited by siteaccess.
  3. The app exchanges a code for a token, and refreshes it when it expires (one hour by default).

Source: 3.1 OAuth2 tokens. Important for a business: "The client secret belongs on a server. An app that cannot keep a secret (a mobile or browser app) is a public client: it is stored without a secret, sends none and must use PKCE with S256" (OAuth2 for third-party applications). Removing an app in the administration also removes its authorizations and tokens (7. The administration).

Personal API keys

New in 6.0.15 (Personal API keys):

  • A user with the policy apikey/create makes a key under My account > API access, names it, ticks the scopes it needs and picks a lifetime. The key is shown once.
  • Requests with the key run as its owner, limited to the key's scopes, "and never beyond the owner's own policies".
  • Only a salted hash of the secret is stored; "nobody can show a key again, not even an administrator".
  • Keys end when revoked, when they expire, or when the owner is disabled or removed. Revoking "takes effect at the next request on every server".

Scopes stand for policies of the owner: read, publish (create), edit and remove as shipped. A key for a read-only integration gets only the read scope (6. Scopes).

expservices tokens

The remote services have their own personal tokens, created per user, with a lifetime of 1 to 365 days (90 by default). Requests sign in as the token's user for that request only, with the same policies; "a token cannot create tokens" (Remote services: personal API tokens). See Remote services.

Control, limits and the audit trail

ControlDefaultSource
Keys per user108. Auditing and limits
Longest key lifetime365 dayssame
Requests per key and minute120, counted in APCu; without APCu not enforced, and the API keys page says sosame
Overview of every keySetup > oAuth admin > API keys: active, expiring within seven days, never used, expired, revoked; search, filter, revoke one or many with a confirmation7. The administration
Audit eventsevery key made, revoked, first used and refused, with the reason (for example revoked, expired, scope, rate limited); never the secret8. Auditing and limits
expservices tokenstoken made, revoked and failed events in the audit trailRemote services

For a business this answers the auditor's questions "who could reach our content by program, and what did they do?" from the audit trail.

House rules for a business

Adapted from the good practice of the technical page:

  • To do: One credential per program, so one can be revoked alone.
  • To do: A dedicated user for each integration, not the administrator, with the smallest role that works.
  • To do: The smallest scope: read only unless the program must write.
  • To do: Secrets in environment variables or a secret store, never in a repository, a URL or a log. (A key sent in the address is refused before any lookup.)
  • To do: Short lifetimes and rotation; put expiry dates in the operations calendar.
  • To do: A monthly look at the API keys page for keys never used, keys about to expire and refusals.
  • To do: Offboarding: when a partner contract or an employee leaves, their keys and tokens are revoked the same day.
  • To do: HTTPS only for every API request.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x