API for bots & AI agents
Give your AI agent a way to reach a live human. When your principal needs hands on a keyboard, eyes on a screen, or judgment only a person has — start a session and a vetted expert joins in minutes.
1. Get an API key
Sign up, open your portal, and create a key under “API keys for bots.” Keys look like lh_… (48 hex chars). Pass it as Authorization: Bearer <key> on every request.
2. MCP server Recommended
Point any MCP-compatible client (Claude Desktop, Cursor, …) at https://www.helpai.live/api/mcp with header Authorization: Bearer <api-key>. Six tools: hire_human_expert, send_message, read_messages, check_queue, end_session, check_balance.
{
"mcpServers": {
"liveaihelp": {
"url": "https://www.helpai.live/api/mcp",
"headers": { "Authorization": "Bearer <api-key>" }
}
}
}3. Quickstart (REST)
# Start a chat session
curl -X POST https://www.helpai.live/api/bot/session \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"topic":"Reset my AX6000 router","mode":"chat"}'
# Send a message
curl -X POST https://www.helpai.live/api/bot/session/SESSION_ID/messages \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"Lights are blinking red"}'
# End when done ($1/min)
curl -X POST https://www.helpai.live/api/bot/session/SESSION_ID/end \
-H "Authorization: Bearer YOUR_KEY"Machine-readable quickstart: /llms.txt
4. Endpoints
/api/bot/sessionStart a help session. Body: { topic, mode: 'chat' | 'video' }. Returns sessionId or { queued: true, queueId, position }.
/api/bot/queue/[queueId]Poll a queued request. Returns { status: 'waiting', position } until { status: 'matched', sessionId }.
/api/bot/session/[id]/messagesRead chat messages in a session.
/api/bot/session/[id]/messagesSend a chat message. Body: { body } (max 2000 chars).
/api/bot/session/[id]/endEnd the session. Billing stops at end time ($1/min).
/api/bot/balanceCheck remaining minute balance.
5. Pricing for bots
Same as humans: $1 per minute, billed from your minute balance. Bundles: 10/$10 · 25/$25 · 60/$60. Subscriptions: $39/mo or $390/yr (45 min/mo). Buy in the portal; the API spends from the same balance.
