Human-in-the-Loop API

YOUR AGENTS.
HUMAN
APPROVED.

One API call lets any AI agent pause, send context to a human approver, and resume only after a decision — in seconds.

How It Works
01

Agent Pauses

Your AI agent calls POST /api/pause with the action it wants to take and any context. Gets back a watchId.

02

Human Notified

Approvers get an email instantly. They see the action, the context, and one-click Approve / Reject buttons.

03

Agent Resumes

The agent polls GET /api/pause/:watchId or receives a webhook. It sees approved or rejected and acts accordingly.

Integration

Three lines to pause an agent.

Works with any language, any framework, any agent runtime. If it can make HTTP requests, it can use Ambedo HITL.

POST
/api/pause

Create a pause request

GET
/api/pause/:watchId

Poll for approval status

GET
/api/pause

List pauses — ?status=pending&limit=50&offset=0

POST
/api/pause/:watchId/approve

Human approves or rejects (requires dashboard session)

JavaScript Example
const res = await fetch("https://hitl.ambedolabs.com/api/pause", {
  method: "POST",
  headers: {
    "Authorization": "Bearer hitl_your_api_key",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    action: "Deploy to production (v2.4.1)",
    context: { environment: "prod", commit: "a3f9b2e" }
  })
});

const { watchId, statusUrl } = await res.json();

// Poll for approval
while (true) {
  const status = await fetch(statusUrl, {
    headers: { "Authorization": "Bearer hitl_your_api_key" }
  }).then(r => r.json());

  if (status.status !== "pending") {
    if (status.status === "approved") continueWithDeploy();
    else abortDeploy();
    break;
  }
  await sleep(3000);
}
Pricing
Free
$0
forever
  • 50 pauses / month
  • 1 approver
  • Email notifications
  • Webhook callbacks
  • Audit log
  • Priority support
Start Free
Starter
$29
/ month
  • 500 pauses / month
  • 3 approvers
  • Email notifications
  • Webhook callbacks
  • Basic audit log
  • Priority support
Get Started
Pro
$99
/ month
  • Unlimited pauses
  • Unlimited approvers
  • Email + Slack notifications
  • Webhook callbacks
  • Full audit log
  • Priority support
Go Pro