All API calls are authenticated with a bearer token and targetDocumentation Index
Fetch the complete documentation index at: https://vincent-glitch003-lit-triggers-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
https://triggers.litprotocol.com. Every trigger needs a scoped Chipotle
usage API key permitted to execute the action — mint one in the
Dashboard or via the management API.
If you are an AI agent setting this up on a user’s behalf, a machine-readable
guide lives at
https://triggers.litprotocol.com/SKILL.md.
It covers the browser-based authorization handshake step by step.Authorize
Access is granted from a logged-in browser session. Generate a local random bearer token, build an authorization URL containing only a hash challenge of it, and have the user approve it in the browser:Authorization: Bearer <token>:
Create a webhook trigger
An external service POSTs JSON (or text) to a generated URL; each POST fires a run.POST /webhook/<trigger-id> (public; returns 202 with a run id):
params.event, the exact raw bytes as
params.event_raw, and safe headers as params.headers. Verification headers
(x-hub-signature-256, x-github-event, stripe-signature,
x-slack-signature, …) are passed through so you can verify the sender;
secret-bearing headers (authorization, cookie, x-api-key) are stripped.
Create a schedule trigger
config.cron is a 5-field cron (or 6-field with seconds). Sub-30-second
schedules are rejected — the scheduler scans every 30 seconds.
params flat: { source: "schedule", scheduled_at, cron }.
Create a chain-event trigger
Fires when a log matching the contract + event signature appears on a supported chain:ethereum, base, arbitrum, bsc, polygon. The deployment must
have the chain’s RPC configured.
start_block— integer or hex string to backfill from.topic_filters— up to three entries aftertopic0; each is a 32-byte topic, an array of topics, ornull(wildcard).
event.decoded.arg0, arg1, …)
alongside the raw log, transaction hash, block number, and topics.
Inspect and manage
queued → running → success | failed. Transient (5xx)
failures from the Lit network are retried up to 3 times with backoff; the run’s
response/error captures the action’s output or the failure (including a JS
stack trace when the action throws).
API reference
| Method & path | Purpose |
|---|---|
GET /api/me | Identity check for the bearer token |
POST /api/triggers | Create a trigger |
GET /api/triggers | List triggers |
GET /api/triggers/<id> | Get one trigger |
PATCH /api/triggers/<id> | Update (e.g. enabled) |
DELETE /api/triggers/<id> | Delete a trigger |
GET /api/triggers/<id>/runs | Run history (?limit=&offset=) |
POST /webhook/<id> | Public webhook endpoint (webhook triggers) |