API Clients
The API Clients page (menu: Administration > API Clients) is where a tenant creates credentials for partner systems that need to call the application's APIs directly, without a person signing in. Each API client is a confidential OAuth 2.0 client that obtains access tokens with the client credentials grant. Behind every client the system creates a non-interactive service user; the roles assigned to the client decide which data the partner system can reach.
API clients belong to a tenant. The page and its permissions are available only inside a tenant, not on the host.
Purposes of API Clients
- Letting ERP, BI or other partner systems read and write application data through the API securely.
- Giving each partner its own credentials that can be deactivated, rotated or deleted independently.
- Limiting a partner's access with roles, an expiration date and an IP allow-list.
- Monitoring when each client last used its credentials.
API Client Operations
The API client listing page provides standard functions such as searching, filtering, sorting and customizing column visibility. These functionalities are detailed under General System Usage.
API Client List
- Name and Client ID: The client name with its client ID below it (client IDs start with
svc-). The client ID can be copied with Copy client ID. - Is Active: Whether the client can obtain tokens.
- Description: The description of the client.
- Last Used: When the client last obtained a token, or Never used.
- Expiration Time: The date after which no new tokens can be obtained, No expiration, or Expired.
- Allowed IP Addresses: None (all addresses allowed) or Yes (n) with the number of allowed entries.
- Secret Rotated At: When the client secret was last rotated.
Filters: Name, Client ID, Is Active, Expiration Time, Last Used. When there are no clients, the page shows "There are no API clients yet. Create a client so your partners can connect to the Suite APIs securely.".
Row actions:
- Edit: Opens the Edit API Client page.
- Rotate Secret: Generates a new client secret. The current secret and every access token the client is using stop working immediately; the partner's integration stops until the new secret is entered.
- Deactivate / Activate: Deactivating blocks new tokens and makes existing tokens stop working immediately. Activating lets the client obtain tokens again with its current secret.
- Delete: Permanently deletes the client, its OpenIddict registration and its service user. Existing tokens stop working immediately. The confirmation requires typing the client name. This cannot be undone.
API Client Definition Page
The New API Client and Edit API Client pages contain:
- Name: The name of the client. Required, at most 128 characters, unique within the tenant.
- Description: Optional, at most 512 characters.
- Roles: The roles of the client's service user; they define what the partner can access. The admin role cannot be assigned. If no role is selected, the page warns "No role selected; this client cannot access any data.".
- Expiration Time: Optional. Leave empty for no expiration. No new tokens can be obtained after this date. A past date cannot be selected.
- Allowed IP Addresses: Optional. One IP address or CIDR range per line (for example
203.0.113.7or10.0.0.0/8). Leave empty to allow all addresses. At most 2000 characters. The restriction is applied to the token request and to every API request made with the token.
Client Credentials Window
After a client is created, and after every Rotate Secret, the API client credentials (or New client secret) window shows:
- Client ID
- Client Secret (masked, can be shown and copied)
- Token URL
- Scope (always
Suite)
The client secret is shown only once. It cannot be viewed again after the window is closed; if it is lost, the secret must be rotated. The window can be closed only after checking I have stored the secret in a safe place. Download as .env saves the values as a file.
Connect with Postman
The page includes a Connect with Postman guide:
- Get an access token: Send a POST request to the token URL with an
x-www-form-urlencodedbody containinggrant_type=client_credentials,client_id,client_secretandscope=Suite. The returnedaccess_tokenis valid for 30 minutes (expires_in: 1800). - Call the API: Send requests to the tenant's API address with the token as a Bearer Token.
No username or password is needed. A token sent to another tenant's address is rejected (403).
Authorization and Access Control
Topics related to authorization and access control are detailed under User Management and Authorization.
- API Clients: Required to see the menu and the list.
- API Clients: Create: Creating new clients.
- API Clients: Update: Editing clients, rotating secrets, activating and deactivating.
- API Clients: Delete: Deleting clients.
The service user created for a client cannot be managed from the Users page: "This user belongs to an API client and can only be managed from the API Clients page.".
Warnings and Error Messages
- This field is required: The name is empty.
- An API client named '
{0}' already exists.: Client names must be unique. - The maximum number of API clients (
{0}) has been reached.: A tenant can have a limited number of clients (10 by default). - '
{0}' is not a valid IP address or CIDR range.: An entry in Allowed IP Addresses is invalid. - The '
{0}' role cannot be given to an API client.: The admin role was selected. - Up to
{0}characters allowed.: A field exceeds its maximum length. - A past date cannot be selected.: The expiration time is in the past.
- Record not found; the list has been refreshed.: The client was deleted elsewhere.
User Tips and Best Practices
- One client per partner: Create a separate client for each partner system so that access can be revoked individually.
- Least privilege: Create dedicated roles with only the permissions the partner needs.
- Restrict IPs: Enter the partner's fixed IP addresses whenever possible.
- Set an expiration: Use an expiration time for temporary integrations.
- Store secrets safely: Keep the secret in a password vault; rotate it if it may have been exposed.
- Watch Last Used: Deactivate or delete clients that are no longer used.
Frequently Asked Questions
I lost the client secret. Can I see it again?
No. Use Rotate Secret to generate a new one and give it to the partner. The old secret stops working immediately.
What is the difference between Deactivate and Delete?
Deactivate is reversible: the client keeps its settings and can be activated again. Delete permanently removes the client and its service user.
How long is an access token valid?
30 minutes. The partner system requests a new token with its client ID and secret when the token expires.
Why can the partner not access the API?
Check that the client is active and not expired, that the request comes from an allowed IP address, that the token is sent to the tenant's own address (another tenant's address returns 403), and that the client's roles grant the required permissions.