Authentication
Authenticating with the Lumen Insight API is super simple. All you need is an API key with sufficient permissions.
Generate an API Key
Section titled “Generate an API Key”API keys can be generated within your systems dashboard.
-
Log in to your Lumen Insight dashboard.
-
Navigate to the
API Keys
page.
If you don’t see this page then you may not have permission. Please contact your administrator to get access. -
Click the
Create API Key
button. -
Choose a memorable name for your API key. This is just for you to identify it with in audit logs.
-
Select the permissions you want to grant this API key.
Please only select the permissions you need. The more permissions you select, the more risk you are taking on. -
Click
Create
and copy the API key to your clipboard.
Using the API Key
Section titled “Using the API Key”Add the API key header to all your requests to the Lumen Insight API. The header should look like this:
X-API-KEY: <your-api-key>
Impersonating Portal Users
Section titled “Impersonating Portal Users”Some API endpoints are designed to be used by visitors through the registration portal.
You can impersonate any user to perform actions on their behalf. This is useful for automating appointment requests or registrations.
Your API key will need the permission: IMPERSONATE_PORTAL_USER
You must also include these headers (in addition to the X-API-KEY
header) to identify the registered user making the request:
X-IMPERSONATED-USER-FIRST-NAME: <first-name>X-IMPERSONATED-USER-LAST-NAME: <last-name>X-IMPERSONATED-USER-EMAIL: <email>