Quickstart Guide

Get API access, request an access token and create your first payable in the Lumanu sandbox.

🚀 Quickstart Guide

Welcome to the Lumanu Payment API! This guide will walk you through authenticating and making your first API call.

We use the OAuth 2.0 Client Credentials flow to ensure secure communication. This is a two-step process:

  1. Exchange your Client ID and Client Secret for a temporary access_token.
  2. Use that access_token to make requests to the Lumanu API.

Prerequisites

Before you begin, you will need:

  1. Your Client ID and Client Secret: These are your unique credentials for authentication. If you don't have them yet, start with Step 0.
  2. A Workspace ID: You'll need the unique identifier for the workspace you want to create a payout for
  3. A command-line tool like cURL or a graphical API client like Postman.

Step 0: Get access

API access isn't self-serve yet. Lumanu sets up a sandbox for you, you build and test against it, and Lumanu reviews your integration before issuing production keys. To start, fill out the form on Request API Access.

StepWhat you doWhat Lumanu doesTypical time
1Fill out the API access request formSets up a sandbox application and invites you to itAbout three days
2Build and test your integration in the sandboxAnswers questions along the wayUp to you
3Send a walkthrough video, or book a Zoom callReviews 2FA, your audit log and the full flowAbout 24 hours
4Fix anything the review finds and send a new videoReviews againAbout 24 hours
5Switch to your production keysSets up your production applicationUp to 2 days after review

We'll set up a separate API application for you, with its own keys. It'll be ready about three days after you send the form. Once it's ready, we invite you to it in the developer portal and you can invite the rest of your team from there.

Step 1: Get Your Credentials

Lumanu will provide API credentials consisting of a Client ID and Client Secret (see Step 0). Treat your Client Secret like a password and keep it confidential.

During the integration onboarding, Lumanu will create workspaces to test with. You can retrieve the ID for these on the Settings -> Integrations page:

(Note that the Client ID and Client Secret for the Zapier integration is not the same as the API credentials)

Developer Portal

Your client ID, client secret and application ID are in the developer portal under your application. You can access the developer dashboard in production in the same way that you access the sandbox, just via a different domain. Click your application name in the upper left to open its settings, where you can manage your webhooks and invite the rest of your team.

Each application has its own keys. If Lumanu sets up a second application for you, for example one preset to the self-serve onboarding configuration, its client ID, client secret and application ID are separate from your current app's keys.


Step 2: Request an Access Token

Next, you need to exchange your credentials for a temporary access token. This token proves that your application is authorized to make API requests. Access tokens are valid for 24 hours.

Request a token with your client ID and secret. This example then lists the workspaces your application can access, which also gives you the workspace IDs for the next step.

# 1. Get an access token (valid for 24 hours)
curl --request POST \
  --url https://auth-staging.lumanu.com/oauth/token \
  --header 'Content-Type: application/json' \
  --data '{
    "client_id": "{YOUR_CLIENT_ID}",
    "client_secret": "{YOUR_CLIENT_SECRET}",
    "audience": "https://lumanu-demo.hasura.app/v1/graphql",
    "grant_type": "client_credentials"
  }'

# 2. List your workspaces
curl --request GET \
  --url 'https://api.demo.lumanu.link/api/rest/workspace?limit=25' \
  --header 'Authorization: Bearer {ACCESS_TOKEN}'

This request uses the sandbox auth domain and audience. In production, send it to https://auth.lumanu.com/oauth/token with the audience https://lumanu-prod.hasura.app/v1/graphql. See Authentication.

The response will be a JSON object containing your access_token:

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 86400
}

Copy the access_token value from the response for the next step.

Step 3: Make Your First API Request

Now that you have an access token, you can make requests to the API. We will use the POST /payable endpoint to create a payout in a sandbox workspace.

In the Authorization header, use the access_token you received in the previous step. Remember to replace {YOUR_ACCESS_TOKEN} and {YOUR_WORKSPACE_ID}.

curl --request POST \
  --url https://api.demo.lumanu.link/api/rest/payable \
  --header 'Authorization: Bearer {YOUR_ACCESS_TOKEN}' \
  --header 'Content-Type: application/json' \
  --data '{
    "workspace_id": "{YOUR_WORKSPACE_ID}",
    "payee_email": "[email protected]",
    "amount": 100,
    "description": "My first payout via the API"
  }'

Step 4: Understand the Response

If the request is successful, the API will return a JSON object with details about the payout:

{
  "id": "32b1b9dd-2b0f-4cf0-92f7-6416a3be23b9",
  "amount": 100,
  "amount_denomination": "us_cents",
  "description": "My first payout via the API",
  "due_date": null,
  "invoice_number": 206466,
  "vendor_status": "Awaiting signup",
  "vendor_display_name": null,
  "vendor_email": "[email protected]",
  "status": null,
  "workspace_id": "90413206-0be5-48a5-af6c-6d52f3ec69f6",
  "created_at": "2025-09-17T15:57:04.482673+00:00",
  "updated_at": "2025-09-17T15:57:04.482673+00:00",
  "payee_lumanu_id": null,
  "custom_fields": []
}

Key fields:

  • id - This is the identifier in Lumanu of the payout. You can use this in subsequent API calls to retrieve this payout again
  • amount - This is the amount in the workspace's selected currency (specified in amount_denomination)
  • description - This the description of the payout that you specified in the first request. This will be visible to the payee.
  • invoice_number - This is a unique invoice number that will be shown on the PDF for the payout
  • vendor_status - This shows the status of the vendor you are attempting to pay (in this case [email protected]) in the Lumanu system. In this case, we are waiting for them to sign up and onboard to the platform.
  • vendor_display_name - Once the vendor does sign up, this will be populated with a display name you can use in your system for that vendor.
  • status - Payouts can progress through multiple statuses on the way to being disbursed. When they are initially created this will be null. More details about statuses are covered in Core concepts.
  • payee_lumanu_id - The Lumanu ID is a unique alphanumeric string that you can use as an identifier for vendors that is more robust and permanent than email addresses. This will be generated once the vendor goes through the onboarding and verification process in Lumanu.

Congratulations! You've successfully authenticated and made your first call to the Lumanu API.

Next Steps

  • Automate Token Refresh: Remember that access tokens expire. You should build logic into your application to request a new token before the old one expires.
  • Query a Payout: Retrieve the payout you just created with the Get Payable endpoint, using the id from the response.
  • Explore our Guides: Dive deeper into specific use cases, like onboarding new creators or automating your payment workflows.
  • Get help: Stuck, or ready to go live? Email [email protected].

Testing payments in the sandbox

The sandbox doesn't move real money. To fund a workspace, create a deposit with Create Test Deposit, then link it to a funding invoice with Link Funding Payment. You can also just do the first part (create the deposit) and do the rest through the UI.


Getting Production Access

In order to issue a production instance we will need to review a walkthrough of your implementation. You can send us a video showing how everything works from sign-in/up through issuing a payout, or we can schedule a Zoom call if you'd like to do it live. It typically takes us about 24 hours to do the review internally and a max of 2 days to get your production instance set up.

In the review, we check two things:

RequirementWhat we look for
Two-factor authentication (2FA)If your users pay payables from inside your app, each of them needs a second factor on their sign-in to your app.
Audit logYou maintain an audit log of users' actions as they relate to the Lumanu implementation. If a customer ever asked you, "who created this payable?", you should be able to answer that question definitively.

If either is missing, add it and send us another video demonstrating its functionality. Once we review that, we will be clear to issue your production application.

Two-factor authentication requirements

Lumanu's 2FA covers people signing in to Lumanu itself. Approvals made through the API use your application's keys, so we can't see or check 2FA for the person who clicks approve in your platform. That is why your platform needs to enforce it.

Sign-in methodCounts as a second factor?Why
Authenticator app (TOTP)Yes
One-time code sent via SMSYes
PasskeyYes
Email codeNoIt is just single factor, since anyone with inbox access gets in.
Third-party sign-in, such as Google or ShopifyNoIt only counts if the user has 2FA on with that provider, and that's not something you'll be able to enforce or verify.
📘

When 2FA is required

You only need 2FA if your users pay payables from inside your app. If they pay in Lumanu instead, you can go live without it.


Did this page help you?