Integrations

n8n

Build a no-code Thunderbit workflow with HTTP Request + Webhook nodes

n8n is the open-source automation runner most developers reach for. Two built-in nodes are all you need: HTTP Request to submit a job, Webhook to catch the callback.

Single URL — /distill

  1. Add an HTTP Request node
  2. Method: POST · URL: https://openapi.thunderbit.com/openapi/v1/distill
  3. Authentication: Header Auth → Authorization: Bearer YOUR_API_KEY
  4. Body (JSON):
{
  "url": "{{ $json.url }}",
  "renderMode": "basic"
}
  1. The next node receives {{ $json.data.markdown }}. Pipe into Notion, Slack, OpenAI, etc.

Batch — /batch/distill + Webhook callback

Async jobs are the right pattern past 5-10 URLs. Two workflows:

Workflow A: Submitter

  • HTTP Request → POST /openapi/v1/batch/distill
  • Body:
{
  "urls": {{ $json.urls }},
  "callback": {
    "url":    "https://your-n8n.example.com/webhook/thunderbit",
    "secret": "whsec_..."
  }
}

Workflow B: Receiver

  • Webhook node, path thunderbit
  • Verify X-Thunderbit-Signature header against your secret (Function node, HMAC-SHA256)
  • Iterate {{ $json.results }} → write each markdown to your sink

Tips

  • Use n8n's Wait node + a polling HTTP Request to /batch/{jobId} if you can't expose a public webhook
  • Set the HTTP Request node's Continue On Fail so a single 4xx doesn't kill the workflow