API

The API lets other systems enroll users in products and membership clubs, create or update contacts, and read the account's tags.

Activate it under Settings, Apps, API. Activation creates one token per account. The token is shown only then, and again if you generate a new one.

The token decides which account the call belongs to. Do not send an instructorId.

Base URL

Every path below is added after this address.

https://integrations.lumant.ai

Authentication

Send the token in the Authorization header as a Bearer token.

A missing token returns 401 with Missing bearer token. An unknown or deactivated token returns 401 with Invalid bearer token.

Authorization: Bearer lmapi_...

POST

Create enrollment

Creates the user when they do not exist, and grants access to the products and membership clubs whose internal name matches a SKU.

Fields

  • email string required

    The user's email. Stored in lowercase.

  • firstName string optional

    First name.

  • lastName string optional

    Last name.

  • skus string[] required

    Internal names of products and membership clubs on the account. At least one SKU must match. SKUs that do not match are skipped.

  • The response is 201. productIds are the matched products, and membershipClubIds are the matched membership clubs.
  • If no SKU matches, the response is 400 with Invalid SKU.

Example

POST https://integrations.lumant.ai/api/v1/products/enrollments

{
  "email": "anna@example.com",
  "firstName": "Anna",
  "lastName": "Nielsen",
  "skus": ["course-sku", "club-sku"]
}

GET

List tags

Returns every tag on the account. Use an id from this list in tagIds when creating a contact.

Response

  • tags { id: string, name: string }[] required

    The account's tags, sorted by name. id is the value to send in tagIds. name is the tag name.

  • The response is 200. tags contains every tag on the account, sorted by name. An account with no tags returns an empty array.
  • There is no request body.

Example

GET https://integrations.lumant.ai/api/v1/tags

POST

Create contact

Creates the contact when the email does not exist on the account, and updates it otherwise.

Fields

  • email string required

    The contact's email. Stored in lowercase.

  • firstName string optional

    First name. Required when name is omitted.

  • lastName string optional

    Last name.

  • name string optional

    Full name. Required when firstName is omitted.

  • contactListReference string optional

    Reference of a contact list that belongs to the account. A list from another account is rejected.

  • isSubscribed boolean optional

    Whether the contact is subscribed to the list. Without contactListReference, true uses the account's default list.

  • tagIds string[] optional

    Ids from List tags. Tags already on the contact stay. Omit tagIds to leave tags unchanged. An empty array adds nothing. A tag from another account, or an unknown id, is rejected.

  • The response is 200. created is true when this call created the contact. reference is the contact's reference.
  • When tagIds is sent, the response includes those ids. Adding a tag can start automations that listen for that tag.

Example

POST https://integrations.lumant.ai/api/v1/contacts

{
  "email": "anna@example.com",
  "firstName": "Anna",
  "lastName": "Nielsen",
  "contactListReference": "list-reference",
  "isSubscribed": true,
  "tagIds": ["665f1c2e8b3a4d0012ab34d1"]
}

Webhook

Signing requests

Every outbound webhook is signed with the signing secret from the endpoint. Verify the signature before you trust the request.

Lumant sends each event as a POST request with a JSON body. The signature is an HMAC SHA256 of the raw body, sent in the X-Lumant-Signature header as sha256=<hex>.

Compare that value with a signature you compute yourself. If they match, the request came from Lumant and the body was not changed.

Keep the signing secret on your server, for example in an environment variable. It is shown only when the endpoint is created. If it is lost or shared, create a new endpoint and delete the old one.

Respond with a 2xx status as soon as the signature is valid, and do the rest of the work afterwards. Lumant waits at most 30 seconds and does not retry.

The signature does not include a timestamp. Store each event id, which starts with evt_, and skip an event you have already processed.

Every event body uses the same top-level fields. The data object is documented on each event.

Headers

  • X-Lumant-Signature string required

    sha256=<hex>. The hex is the HMAC SHA256 of the raw body.

  • X-Lumant-Event string required

    The event type, for example contact.created.

  • X-Lumant-Api-Version string required

    The endpoint's API version, for example 2026-06-25.

  • Content-Type string required

    Always application/json.

  • Read the body exactly as it arrived, before parsing JSON. Re-serializing parsed JSON can change whitespace and key order, and then the signature will not match.
  • Remove the sha256= prefix, then compare the two signatures in constant time. In Node.js, use crypto.timingSafeEqual. Reject a missing or different signature with 401.
  • The example uses Express and reads the secret from LUMANT_WEBHOOK_SECRET.

Prompt for another language

Write a webhook endpoint in <language/framework> that receives POST requests from Lumant.

Requirements:
1. Read the raw request body as bytes before any JSON parsing.
2. Read the X-Lumant-Signature header. Its format is sha256=<hex>.
3. Compute HMAC SHA256 of the raw body using the signing secret from the environment variable LUMANT_WEBHOOK_SECRET, encoded as hex.
4. Compare the two signatures with a constant time comparison.
5. Respond 401 if the header is missing or the signatures do not match.
6. Otherwise parse the body as JSON, skip events whose id has already been processed, and respond 200 within 30 seconds.

Event

booking.scheduled

Sent once when a booking is fully scheduled: the location and calendar are set, and the confirmation emails have been sent.

You receive the event only when it is selected on the endpoint. A paid booking also sends payment.completed for that payment.

Times are ISO 8601 (UTC). Amounts are whole currency units, so 125 means 125 DKK. Fields apply to API version 2026-06-25.

data

  • booking_id string required

    The booking id in Lumant.

  • reference string required

    The booking reference.

  • start_time string required

    When the booking starts, in ISO 8601 (UTC).

  • end_time string required

    When the booking ends, in ISO 8601 (UTC).

  • contact object required

    The person who booked. first_name, last_name, and email are string or null. reference is the contact reference. is_subscribed is true when the contact is subscribed to your emails.

  • payment object | null required

    Null when the booking is free. Otherwise gross_amount includes tax, net_amount excludes tax, and currency is the currency code, for example DKK.

Event

contact.created

Sent once when a new contact is created on the account.

Updating an existing contact does not send another event. You receive the event only when it is selected on the endpoint.

Empty contact fields are null. Fields apply to API version 2026-06-25.

data

  • contact_id string required

    The contact id in Lumant.

  • reference string required

    The contact reference.

  • instructor_id string required

    The account id in Lumant.

  • email string | null required

    Null when the contact has no email.

  • first_name string | null required

    Null when the contact has no first name.

  • last_name string | null required

    Null when the contact has no last name.

  • name string | null required

    The contact's full name, or null.

  • phone string | null required

    Null when the contact has no phone number.

  • is_subscribed boolean required

    True when the contact is subscribed to your emails.

Event

payment.completed

Sent when a payment completes. That includes one-time payments, installments, subscription renewals, and booking payments.

An installment plan sends one event per installment. A subscription sends one event for the first payment and one for each renewal.

The first time an order is paid, Lumant also sends order.created. Later installments and renewals send only payment.completed.

Use charge.type to see which kind of payment it is, and payment_id to group payments from the same order. Amounts are whole currency units. Fields apply to API version 2026-06-25.

data

  • payment_id string required

    The order id in Lumant. Use it to group payments from the same order.

  • reference string required

    The order reference.

  • status string required

    The order status: PAID, INITIATED, or CANCELLED.

  • currency string required

    The currency code, for example DKK.

  • quantity number required

    How many units were bought.

  • charge object required

    The payment that completed. type is ONE_TIME, INSTALLMENT, or SUBSCRIPTION_CYCLE. gross_amount_paid includes tax. net_amount_paid excludes tax. Amounts are whole currency units.

  • product_price object | null required

    The price the customer bought. type is ONE_TIME, SUBSCRIPTION, or FREE. internal_name is the price's internal name.

  • customer object required

    The customer who paid. email, first_name, last_name, and phone are string or null.

Event

order.created

Sent once when an order is first paid. That includes a free checkout and a purchase added by hand.

You receive the event only when it is selected on the endpoint. The same order also sends payment.completed for the opening charge. Later installments and subscription renewals send payment.completed only.

order_id is the same id as payment_id on payment.completed. Amounts are whole currency units. net_amount and gross_amount are the order lines added together. A booking with no lines uses the paid charge instead. Fields apply to API version 2026-06-25.

data

  • order_id string required

    The order id in Lumant. The same id as payment_id on payment.completed.

  • reference string required

    The order reference.

  • status string required

    The order status. This event is sent when the order is PAID.

  • currency string required

    The currency code, for example DKK.

  • quantity number required

    How many units were bought on the primary price.

  • net_amount number required

    The order total excluding tax. The order lines added together, or the paid charge when the order has no lines. Whole currency units.

  • gross_amount number required

    The order total including tax. The order lines added together, or the paid charge when the order has no lines. Whole currency units.

  • product_price object | null required

    The primary price the customer bought. type is ONE_TIME, SUBSCRIPTION, or FREE. internal_name is the price's internal name.

  • line_items array required

    What was bought. type is PRIMARY or ORDER_BUMP. net_amount excludes tax and gross_amount includes tax. product_price uses the same shape as the order's product_price, or is null. Empty when the order has no lines.

  • custom_fields array required

    Answers collected at checkout. Each item has label, value, and type. Empty when the order has none.

  • customer object required

    The customer who bought. email, first_name, last_name, and phone are string or null.

  • booking_id string | null required

    The booking id when the order pays for a booking. Otherwise null.