ZeroClaw’s gateway binds toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/openagen/zeroclaw/llms.txt
Use this file to discover all available pages before exploring further.
127.0.0.1 by default and requires a pairing step before accepting any webhook requests. This prevents unauthenticated access even from other processes on the same machine.
How pairing works
When the gateway starts, it generates a 6-digit one-time pairing code and prints it to stdout. You exchange this code for a bearer token by making a single HTTP request. All subsequent webhook calls use that bearer token.Exchange the code for a bearer token
Send a The response contains your bearer token.
POST request to /pair with the code in the X-Pairing-Code header:The pairing code is one-time use. Once exchanged for a bearer token, it cannot be reused. Restart the gateway to generate a new pairing code.
Configuration
Pairing is enabled by default. The relevant gateway config options are:| Option | Default | Description |
|---|---|---|
require_pairing | true | Require the one-time pairing exchange before accepting webhook requests |
allow_public_bind | false | Allow binding to 0.0.0.0; refused unless a tunnel is active or this is explicitly set to true |
host | 127.0.0.1 | Interface to bind the gateway to |
port | 42617 | Port the gateway listens on |
Idempotent requests
To avoid processing duplicate webhook messages, include anX-Idempotency-Key header with a unique value per request:
Gateway API reference
| Endpoint | Method | Auth | Description |
|---|---|---|---|
/health | GET | None | Health check. Always public; no secrets leaked in the response. |
/pair | POST | X-Pairing-Code header | Exchange the one-time code for a bearer token. |
/webhook | POST | Authorization: Bearer <token> | Send a message to the agent: {"message": "your prompt"}. Accepts optional X-Idempotency-Key header. |
/whatsapp | GET | Query params (hub.mode, hub.verify_token, hub.challenge) | Meta webhook verification endpoint. |
/whatsapp | POST | X-Hub-Signature-256 (when app secret is configured) | Incoming WhatsApp message webhook. |