{"openapi":"3.1.0","info":{"title":"HUMAN. API","version":"1.0.0","summary":"Real human answers for AI agents.","description":"Pay $0.10 USDC per question via x402 (network eip155:8453). A real human answers asynchronously. Status and answer retrieval are free. Answers are never generated or edited by AI (service commitment).","x-guidance":"Use POST /api/v1/questions with a JSON body {\"question\": \"...\"} to ask a real human one question (English, up to 2000 chars, optional \"context\"). It costs $0.10 USDC via x402; during the launch the first questions are free automatically (one per source). The response includes question_id and access_token (shown once). Answers are asynchronous (hours, up to 72h, refunded if unanswered): poll GET /api/v1/questions/{id}/answer with \"Authorization: Bearer <access_token>\" every few minutes; polling is free. Good questions: tone, trust, taste, judgment calls, \"how would a person read this?\"."},"servers":[{"url":"https://human-api.human-api.workers.dev"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"access_token returned once when the question is paid."}},"schemas":{"QuestionInput":{"type":"object","required":["question"],"additionalProperties":false,"properties":{"question":{"type":"string","minLength":3,"maxLength":2000},"context":{"type":"string","maxLength":4000},"request_id":{"type":"string","maxLength":128,"description":"Idempotency key. Reusing it returns 409 without charging."},"agent_id":{"type":"string","maxLength":128},"callback_url":{"type":"string","format":"uri","description":"Optional public https URL. POSTed {event, question_id, answer_url} when answered. Header x-human-signature = HMAC-SHA256(key = sha256_hex(access_token), body)."}}},"Status":{"type":"string","enum":["payment_required","payment_pending","paid","queued","answered","delivered","rejected","refund_pending","refunded","expired"]},"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}}}}},"paths":{"/api/v1/service":{"get":{"security":[],"operationId":"getService","summary":"Service description, price, availability, wait estimate, policies.","responses":{"200":{"description":"OK"}}}},"/api/v1/health":{"get":{"security":[],"operationId":"health","summary":"Operational status.","responses":{"200":{"description":"OK"}}}},"/api/v1/questions":{"post":{"operationId":"askHuman","summary":"Ask a real human one question (paid, x402). Answer arrives asynchronously.","tags":["Human answers"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.100000"},"protocols":[{"x402":{}}]},"description":"First call without payment returns 402 with the PAYMENT-REQUIRED header (x402 v2). Retry with the PAYMENT-SIGNATURE header. On settlement returns 201 with question_id and access_token (shown once).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionInput"}}}},"responses":{"200":{"description":"Same payment replayed; existing question returned, not charged again."},"201":{"description":"Paid (or free launch question) and queued.","content":{"application/json":{"schema":{"type":"object","required":["question_id","status","access_token","answer_url"],"properties":{"question_id":{"type":"string"},"status":{"type":"string"},"payment_status":{"type":"string"},"transaction":{"type":["string","null"]},"access_token":{"type":"string","description":"Shown once. Bearer token for status and answer."},"queue_position":{"type":"integer"},"estimated_response":{"type":"string"},"status_url":{"type":"string"},"answer_url":{"type":"string"}}}}}},"400":{"description":"Invalid input.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"402":{"description":"Payment Required"},"409":{"description":"request_id already used. Not charged."},"503":{"description":"Paused or at capacity. Not charged."}}}},"/api/v1/questions/{id}":{"get":{"operationId":"getStatus","summary":"Question status (free).","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"404":{"description":"Not found or unauthorized."}}}},"/api/v1/questions/{id}/answer":{"get":{"operationId":"getAnswer","summary":"Human answer (free). 202 if not ready yet.","security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Answer."},"202":{"description":"Not ready; status returned."},"404":{"description":"Not found or unauthorized."}}}}},"x-mcp":{"url":"https://human-api.human-api.workers.dev/mcp","transport":"streamable-http"}}