Skip to main content
All API calls are authenticated with a bearer token and target 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:
The raw token never leaves your machine — only its SHA-256 challenge is in the URL. After approval, the token works as Authorization: Bearer <token>:

Create a webhook trigger

An external service POSTs JSON (or text) to a generated URL; each POST fires a run.
Fire it at POST /webhook/<trigger-id> (public; returns 202 with a run id):
The action receives the parsed body as 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.
Schedule runs pass 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.
Optional config:
  • start_block — integer or hex string to backfill from.
  • topic_filters — up to three entries after topic0; each is a 32-byte topic, an array of topics, or null (wildcard).
Chain-event runs include ABI-decoded args (event.decoded.arg0, arg1, …) alongside the raw log, transaction hash, block number, and topics.

Inspect and manage

A run progresses queuedrunningsuccess | 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