Skip to content
Browse documentation

Reference

For AI agents

Tooling for AI agents: machine-readable docs, llms.txt, payload-to-task templates, and guides for Grok Bot, Slack, and Linear workflows.

Coding agents and automation should read the machine-readable summary instead of scraping the HTML docs. It lists base URLs, authentication headers, route paths, and error codes in plain text.

  1. Fetch /llms.txt, then read the REST API section.
  2. Create a dedicated API key per agent in Settings → API keys, and load it from an environment variable.
  3. Create an endpoint, queue a test event, then poll deliveries until they succeed or fail.
Terminal window
curl -X POST "https://api.hooks.events/v1/endpoints" \
-H "Authorization: Bearer $HOOKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "agent-test",
"provider": "generic",
"verificationMode": "hmac",
"destinations": [{ "url": "https://example.com/hooks" }]
}'
# Queue a test event, then poll deliveries
curl -X POST "https://api.hooks.events/v1/endpoints/$ENDPOINT_ID/test-events" \
-H "Authorization: Bearer $HOOKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"eventType":"agent.check"}'

Agents that speak the Model Context Protocol can skip the REST calls. Connect to https://api.hooks.events/mcp over Streamable HTTP with the same Bearer API key:

Terminal window
claude mcp add --transport http hooks https://api.hooks.events/mcp \
--header "Authorization: Bearer $HOOKS_API_KEY"

Read tools cover events, search, deliveries, issues, endpoints and metrics. Write tools (retry delivery, replay event, create/update endpoint) stay hidden unless the key has the mcp:write scope. See MCP server for the tool table and Cursor config.

  • Never print API keys, signing secrets, or raw Authorization headers in logs, commits, or chat.
  • Prefer test events over replaying production events.
  • Treat the ingestion URL as a secret: anyone with it can create events.
  • Respect 429 responses and the Retry-After header instead of retrying immediately.