Endpoint
Request body
hive_agent is the Hive Agent ID from the dashboard. The API key must belong to the same workspace as the Hive Agent. Only customer-created Hive Agents in your workspace can be invoked through this endpoint.
objective should be specific enough for the planner to create useful work nodes.
sources is optional but recommended when the run needs grounded context. Pass website URLs, asset IDs, knowledge base IDs, or knowledge base item IDs that already exist in the workspace.
Use GET /v1/public/workspaces/{workspace_id}/knowledge_bases to list knowledge bases, GET /v1/public/workspaces/{workspace_id}/knowledge_bases/{knowledge_base_id}/items to list items, and GET /v1/public/workspaces/{workspace_id}/assets to list assets. Upload a file with POST /v1/public/workspaces/{workspace_id}/assets before passing its asset.id in sources.asset_ids.
metadata is optional caller metadata for your own correlation, such as a customer ID or job ID.
async.callback_url is required. Fetch Hive sends the terminal callback to this HTTPS URL after the run completes, fails, or is cancelled. async.enabled must be true.
Response
Fetch Hive returns202 Accepted when the run is queued for execution.
request_id if you need to find the run later in logs. Store webhook_secret so your callback receiver can verify X-Fetch-Hive-Signature. The initial status is usually pending; the runtime updates status as source preparation, planning, execution, verification, and composition continue.
cURL example
Callback payload
Fetch Hive sends a signed JSON payload toasync.callback_url when the run reaches a terminal status. The event_type is one of hive_agent.completed, hive_agent.failed, or hive_agent.cancelled.
X-Fetch-Hive-Signature, X-Fetch-Hive-Timestamp, and X-Fetch-Hive-Webhook-Id. See Callback Delivery and Webhook Triggers for verification guidance.

