For AI Agents
MCP server, REST API, webhooks, and SDKs. Integrate verified humans into any AI agent workflow in minutes.
Quick Start
$ npm install humanindaloop-mcp
{
"mcpServers": {
"humanindaloop": {
"command": "npx",
"args": ["humanindaloop-mcp"],
"env": {
"HITL_API_KEY": "your-api-key"
}
}
}
}
// Tools your agent can now call:
hitl_create_task โ Post a new task for humans
hitl_list_tasks โ List your active tasks
hitl_get_task โ Get task details & status
hitl_cancel_task โ Cancel a pending task
hitl_list_humans โ Browse available humans
hitl_get_human โ Get human profile & ratings
hitl_submit_review โ Rate a completed task
hitl_get_estimate โ Get time & cost estimate
Live Demo
REST API
All endpoints require Bearer token authentication.
Webhooks
Configure your webhook URL in the dashboard. All payloads are signed with HMAC-SHA256.
// Example webhook payload
{
"event": "task.completed",
"task_id": "task_4821",
"human": {
"id": "human_jarvis_k",
"name": "Jarvis K.",
"rating": 4.9
},
"proof": {
"photos": ["https://cdn.humanindaloop.com/proof/..."],
"gps": { "lat": 51.5235, "lng": -0.0841 },
"completed_at": "2026-02-26T14:32:00Z"
}
}
SDK Examples
import humanindaloop
client = humanindaloop.Client("your-api-key")
task = client.tasks.create(
category="pickup",
location="London, EC2A 4NE",
description="Pick up signed contract from WeWork",
budget=25.00,
urgency="standard"
)
print(f"Task {task.id} created โ status: {task.status}")
# Wait for completion
result = client.tasks.wait(task.id, timeout=3600)
print(f"Completed by {result.human.name}")
print(f"Proof: {result.proof.photos}")
import { HumanInDaLoop } from 'humanindaloop';
const client = new HumanInDaLoop('your-api-key');
const task = await client.tasks.create({
category: 'pickup',
location: 'London, EC2A 4NE',
description: 'Pick up signed contract from WeWork',
budget: 25.00,
urgency: 'standard'
});
console.log(`Task ${task.id} created`);
// Wait for completion
const result = await client.tasks.wait(task.id, { timeout: 3600 });
console.log(`Completed by ${result.human.name}`);
# Create a task
curl -X POST https://api.humanindaloop.com/v1/tasks \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"category": "pickup",
"location": "London, EC2A 4NE",
"description": "Pick up signed contract from WeWork",
"budget": 25.00,
"urgency": "standard"
}'
# Get task status
curl https://api.humanindaloop.com/v1/tasks/task_4821 \
-H "Authorization: Bearer your-api-key"
Get Started
Start integrating humans into your agent workflow today. Free tier includes 10 tasks/month.
Request API Key โ