API clients for automated imports (Administrators)
An API client is a machine identity: a system that pushes data into Certavue on a schedule without anyone signing in. Typical uses are a nightly HR sync or a monthly people export from a directory. A client is not a person. It has a client id and a secret, a set of scopes that limit what it may do, and every change it makes is recorded against the client's name in the affected records' History and in Settings, Activity.
You manage clients under Settings, Integrations, API clients. To import by hand instead, see Importing data.
Registering a client
- Choose Add client. Give it a name your IT team will recognise, such as "HR nightly sync".
- Tick the scopes it needs:
read: read sources, linked records, import formats and run results.write: create, change and remove linked-record references.imports:run: upload files and run imports against saved formats.
- Optionally pick the source it speaks for. This narrows its setup bundle to that source's import formats.
- Choose Create client. The secret is shown once. Copy it into a secrets manager before dismissing the message; Certavue only stores a hash and cannot show it again.
The setup bundle
Setup downloads a JSON file with everything the person wiring up the push needs: the token URL, the client id, the scopes, the saved import formats (with links to each format's schema and blank template), the three API calls of an import, and sample curl and PowerShell commands. The secret is never in the bundle.
How a push works
- Get a token.
POST /api/integrations/tokenwithgrant_type=client_credentials,client_idandclient_secretreturns a bearer token valid for one hour. - Upload the file.
POST /api/imports/analyseasmultipart/form-datawith the file and thedefinitionIdof the saved format. The response includes arunId. - Plan.
POST /api/imports/runs/{runId}/dry-runwith the format's mapping (fetch it withGET /api/imports/definitions/{id}). The response has the counts;GET /api/imports/runs/{runId}/rows?outcome=Errorlists any problem rows. - Apply.
POST /api/imports/runs/{runId}/commit. Small files finish immediately. Larger ones return statusCommitting; pollGET /api/imports/runs/{runId}untilCompletedorFailed.
The token is sent as Authorization: Bearer <token> on every call. A client can only call the endpoints its scopes allow; anything else answers 403.
Rotating and revoking
- Rotate secret issues a new secret and invalidates the old one immediately. Tokens already issued keep working until they expire, within the hour. Use it on a schedule or whenever a secret may have leaked.
- Revoke disables the client on its very next request. A revoked client cannot be reinstated; register a new one.
- Edit changes the name, scopes or source without touching the secret.
Where the changes show up
A client's imports appear under Recent runs on the Integrations page marked with the API channel. Each person it created, updated, expired or reinstated shows the change in their History card as made by the client. Settings, Activity filtered to the API channel, or to a run id, shows everything a client did.