Before you start
You need:- An API token from a user with the Admin role. Of the built-in roles, only Admin can connect
apps. Authentication covers creating a token. The examples below
read it from the
LUMOS_API_TOKENenvironment variable. - The base URL
https://api.lumos.com. Every path below starts with/v1.
Endpoint map
1. Find the integration and what it needs
Search the catalog for the integration’sapp_class_id. query matches both the app_class_id
and the display name:
auth_schema describes the credentials to send in auth, and
settings_schema describes the non-secret configuration to send in settings:
auth_schema means.
2. Connect the app
Sendapp_class_id, auth, and settings to Create App,
shaped as the connection schema describes:
201 with the app. Save its id, because every later call uses it. For an
integration that needs browser consent, send auth: {}, then finish connecting the app in the Lumos
UI. Create a custom app or connect an integration
lists the integrations the API can’t connect.
3. Start the first sync
A newly connected app’s first sync waits for an admin to review its identity matching rules. To start it without the review, sendskip_first_sync_review: true to
Trigger App Sync. To review the rules first, start the
sync from the Lumos UI instead.
202 with an operation to poll.
The first sync explains when to send the flag again,
and Triggering Syncs Deep Dive covers later
syncs.
4. Rotate credentials
To change an app’s credentials, such as rotating an API key, send them to Update App:auth, settings, and version together, so send auth whenever you send either
of the others, and include every setting the app needs. Sending credentials reconnects the app and
starts a sync. If a sync started in the last few minutes, the call returns 409 with code set to
app.sync_in_progress, and Retry-After gives the wait in seconds.
Update metadata or credentials covers
the rest.
Credential updates and disconnects work only on apps connected through the API. An app connected in
the Lumos UI returns 409.
5. List what you’ve connected
To reconcile your configuration with Lumos, list the apps connected through the API that are still connected:6. Disconnect
Disconnect App removes the app’s stored credentials:200 with the app’s id, its app_class_id, and disconnected: true. To reconnect the
app later, send credentials to Update App. To remove the app from Lumos instead, delete it.
Creating, updating, disconnecting, and deleting apps
explains the difference.
Handling errors
Every error uses the same envelope. Branch oncode, not on detail.
Errors lists the status codes and the codes each one can carry.