Skip to main content
You can connect and manage your integrations from a script, a CI pipeline, or an infrastructure-as-code tool. These are the same connections you’d otherwise set up in the Lumos UI. This page puts the calls in order. The App object and The Integration object cover each one in detail.

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_TOKEN environment variable.
  • The base URL https://api.lumos.com. Every path below starts with /v1.
Some integrations, such as OAuth apps, need browser consent. For those, the API starts the connection, and you finish it in the Lumos UI.

Endpoint map

1. Find the integration and what it needs

Search the catalog for the integration’s app_class_id. query matches both the app_class_id and the display name:
Then read its connection schema. auth_schema describes the credentials to send in auth, and settings_schema describes the non-secret configuration to send in settings:
The keys differ for each integration, so read them from the schema instead of hardcoding them. Connection schema lists what to check before you build the request, such as what an empty auth_schema means.

2. Connect the app

Send app_class_id, auth, and settings to Create App, shaped as the connection schema describes:
Create App returns 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, send skip_first_sync_review: true to Trigger App Sync. To review the rules first, start the sync from the Lumos UI instead.
Trigger App Sync returns 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:
Lumos replaces 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:
Responses never include credentials. Read every page, as Pagination describes.

6. Disconnect

Disconnect App removes the app’s stored credentials:
It returns 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 on code, not on detail. Errors lists the status codes and the codes each one can carry.