Inbound hooks

An inbound hook is a URL that starts a run of one automation when anything POSTs to it. It needs no header, so it works from places that cannot set one: GitHub, a cron, a Zap, a shortcut. Make one under Settings → Inbound hooks, or with POST /api/v1/hooks. The URL is shown once and holds the secret, so treat it like a password.

https://dispatchlet.com/api/v1/hooks/dlh_…

What to send

Nothing, or an empty JSON object: a plain run, as if you pressed Run now. A story: a JSON object with a title, and optionally a url (http or https) and notes. The research step opens the URL if given, treats it as a story to cover whatever its date, and writes it in your playbook’s voice. If the automation already covered it, it is skipped as a duplicate and the log says so, so a hook that fires twice does not post twice. Add "dry": true, or ?dry=1 to the URL, to see what it would post without sending anything to Buffer. Use the URL form for GitHub, whose body you cannot change.

curl -X POST https://dispatchlet.com/api/v1/hooks/dlh_… \
  -H "Content-Type: application/json" \
  -d '{"title": "Dispatchlet 1.2 is out", "url": "https://github.com/barrymichaeldoyle/dispatchlet/releases/tag/v1.2.0", "notes": "Webhooks and an MCP server"}'

{ "run": { "id": "…", "url": "https://dispatchlet.com/app/a/…/runs/…" } }

The response is 202 with the run; the run page link shows it live. 409 means a run is already going, the automation is paused, or its playbook is not ready; 402 that the free allowance is spent; 400 that the body is wrong. A hook takes ten requests a minute, and 429 says to wait.

GitHub releases

In a repository, Settings → Webhooks → Add webhook: the hook URL as Payload URL, content type application/json, no secret needed, and under “Let me select individual events” tick only Releases. Each published release then starts a run whose first story is the release: its repository and name, link and notes. Pre-releases and drafts are ignored. The GitHub “ping” when you save the webhook is answered without starting a run.

A cron

Dispatchlet already runs daily or weekly on its own schedule. A hook is for the times in between: a GitHub Actions job after a deploy, a Zap when a row lands in a sheet, a Shortcut on your phone.

# .github/workflows/announce.yml
on:
  release:
    types: [published]
jobs:
  announce:
    runs-on: ubuntu-latest
    steps:
      - run: >
          curl -fsS -X POST "${{ secrets.DISPATCHLET_HOOK_URL }}"
          -H "Content-Type: application/json"
          -d '{"title": "${{ github.event.release.name }}", "url": "${{ github.event.release.html_url }}"}'