EnerBrain Agency· Documentation
Adapters › Agent Adapters

HTTP Adapter

HTTP webhook adapter

The http adapter sends a webhook request to an external agent service. The agent runs externally and EnerBrain Agency just triggers it.

When to Use

When Not to Use

Configuration

Field Type Required Description
url string Yes Webhook URL to POST to
headers object No Additional HTTP headers
timeoutSec number No Request timeout

How It Works

  1. EnerBrain Agency sends a POST request to the configured URL
  2. The request body includes the execution context (agent ID, task info, wake reason)
  3. The external agent processes the request and calls back to the EnerBrain Agency API
  4. Response from the webhook is captured as the run result

Request Body

The webhook receives a JSON payload with:

{
  "runId": "...",
  "agentId": "...",
  "companyId": "...",
  "context": {
    "taskId": "...",
    "wakeReason": "...",
    "commentId": "..."
  }
}

The external agent uses PAPERCLIP_API_URL and an API key to call back to EnerBrain Agency.