Onboard a client and entitle applications
A client is a tenant: a business whose users, events and deliveries the platform keeps apart from every other client’s. An application is a system that publishes or consumes events. A client only sees the applications it has been entitled to. This guide walks through setting both up in the console, under Platform → Clients and Platform → Applications. For the model behind it, read Tenancy and Applications.
Everything here is platform-administrator work: the Clients and Applications pages and all their actions are anchor-tier, and each action needs the permission named in the steps.
1. Create the client
Section titled “1. Create the client”- Open Platform → Clients (
/ui/clients; needsplatform:admin:client:view). - Choose Create Client (
platform:admin:client:create). - Enter a Name and an Identifier. The identifier is the short, stable slug that other
features use to name the client (
acme): in pool codes, in theX-FlowCatalyst-Clientheader, on theclientIdof API calls that accept either form. Pick it once; treat it as permanent.
A new client starts ACTIVE. Open it from the list (View details) to see the Client Details,
Applications and Login Branding sections.
Client status
Section titled “Client status”The drawer’s Actions section moves the client between states. Each has its own permission, so a role can be allowed to suspend without being allowed to deactivate.
| Action | Permission | Effect |
|---|---|---|
| Suspend | platform:admin:client:suspend |
Records the reason “Manual suspension”. A temporary hold. |
| Deactivate | platform:admin:client:deactivate |
Records “Manual deactivation”. The client is kept, not deleted. |
| Activate | platform:admin:client:activate |
Returns the client to ACTIVE. |
The drawer shows the Status Reason next to the status. Deactivating a client is not a delete: its history stays and it can be activated again.
2. Entitle the client to applications
Section titled “2. Entitle the client to applications”In the client’s drawer, the Applications section lists the applications the client may use. Tick
the applications in the pick list and press Save; Save stays disabled until the choice changes. The
call behind it is PUT /api/clients/{id}/applications and needs platform:admin:client:update. Without
that permission the section is read-only.
Entitlement does three things:
- It decides which applications a client-tier user or service account of this client can be given access to.
- It bounds the roles a client administrator can assign: only roles of entitled applications are offered (see Users, roles and delegation).
- For an application’s service account, it supplies the clients it reaches when the account has no client list of its own (see Manage configuration and reveal secrets).
Removing an application from the list does not delete anything the client already created. It stops the client’s principals from being granted that application afterwards.
3. Register the application
Section titled “3. Register the application”Applications normally appear when an application’s code registers itself (see Register an application). You create one by hand in the console when you want the record before any code runs, or for an integration that has no SDK.
- Open Platform → Applications (
/ui/applications;platform:admin:application:view). - Choose Create Application (
platform:admin:application:create). - Fill in the form:
| Field | Notes |
|---|---|
| Code | The permanent slug. It prefixes the application’s event types (orders:), roles (orders:admin) and permissions. |
| Name, Description | Display text. |
| Type | Application (a system with users) or Integration (a connector or machine-only system). |
| Default Base URL | Used as a default when subscriptions and links are built for the application. |
| Icon URL, Website, Logo | Optional branding. |
The list filters by type and status and can be searched and sorted by code, name, type, status and creation time.
Deactivating and deleting
Section titled “Deactivating and deleting”Deactivate (needs platform:admin:application:update) and Activate switch an application on or
off. Delete (platform:admin:application:delete) is disabled with the reason “Deactivate the
application first.” while the application is active; the API refuses it too (APPLICATION_ACTIVE).
Deleting an application also deletes its platform configuration values and access grants (see
Manage configuration and reveal secrets).
4. Provision credentials
Section titled “4. Provision credentials”The application drawer has two provisioning sections. Both are anchor-only and both show their secrets once.
Service account
Section titled “Service account”Service Account → Provision creates the machine identity the application’s code uses to call the
platform: an OAuth client id and secret, plus the webhook credentials. It needs the anchor scope and
the platform:iam:service-account:create and platform:admin:application:update permissions. The
account is confined to this application (see Principals).
On a local fcdev, fcdev init does this for you and writes the client id, client secret, signing
secret and webhook bearer token to the project’s .env; see
register an application.
Login client
Section titled “Login client”Login Client → Provision Login Client creates the OAuth client the application uses to send people to the platform’s sign-in page. Choose a Client Type:
| Type | Use it for |
|---|---|
PUBLIC |
A single-page or native app. No secret; PKCE is required. |
CONFIDENTIAL |
A server-rendered app. It has a client secret. |
Enter the Redirect URIs, one per line. Blank lines and repeats are dropped; at least one is required. See OIDC login for how the application uses the client.
The credentials dialog
Section titled “The credentials dialog”Provisioning answers with a dialog showing the client id and secret. It cannot be dismissed except with I’ve saved the credentials: Escape reopens it. The secret is never in a URL, a flash message, a later page or the drawer. If you lose it, rotate or regenerate it; you cannot read it back.
5. Check the result
Section titled “5. Check the result”- Documentation in the application drawer lists the documentation pages the application has synced (visible with permission to read platform documentation).
- Create a test user under the client and confirm they see only the entitled applications. See Users, roles and delegation.
- To repeat this setup in another environment without retyping, see Copy definitions between environments. Applications and service accounts both support it.
Via the API
Section titled “Via the API”The console calls the same endpoints you can script: POST /api/clients, PUT /api/clients/{id}/applications,
POST /api/applications, POST /api/applications/{id}/provision-service-account and
POST /api/applications/{id}/provision-login-client. The permissions are the ones above. See the
HTTP API reference.