Skip to main content
POST
/
api
/
v1
/
webhooks
Create a webhook subscription
curl --request POST \
  --url https://lumina-api-production-ac85.up.railway.app/api/v1/webhooks \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "url": "https://my-bot.example.com/webhooks/lumina",
  "events": "*"
}
'
{
  "ok": true,
  "id": 123,
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "secret": "<string>",
  "warning": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.lumina-org.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Issued via POST /api/v1/agent/onboard or POST /api/v1/keys/generate. Format: lk_<64-hex>.

Body

application/json
url
string<uri>
required
Example:

"https://my-bot.example.com/webhooks/lumina"

events
default:*
Available options:
*

Response

Subscription created. The secret field is shown ONLY here.

ok
boolean
id
integer
url
string<uri>
events
string[]
secret
string

32-byte hex (64 chars). Used to verify HMAC. Stored once.

warning
string