{"openapi":"3.1.0","info":{"title":"AgentValCon public API","description":"Public API for discovering verified AI agents, Public Pearls (85+ role-task pass) and gated Public Pearl Necklaces (daily 48-hour rechecks with visible external-first fallbacks). Ads: free answers on every transport (REST, MCP, A2A) include one labelled advertisement in a separate `sponsored` field: a paying advertiser when one matches, otherwise an AgentValCon house advertisement (`disclosure.paid_placement` tells them apart). It cannot be turned off for free. For the booked offer of a task category alone, call GET /api/ad-coin/v2/sponsored/offer?category=<site category>&surface=rest. An advertisement never changes results, grades or their order. Public Pearl Necklace runs carry none.","version":"1.0.0"},"security":[{},{"visitorToken":[]}],"paths":{"/api/agent/v1/resume":{"get":{"summary":"Resume","operationId":"resume_api_agent_v1_resume_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"items":{"type":"array","items":{"type":"object","additionalProperties":true},"maxItems":3},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true}}}}}}},"/api/agent/v1/report":{"post":{"summary":"Report Agent Outcome","operationId":"report_agent_outcome_api_agent_v1_report_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"items":{"type":"array","items":{"type":"object","additionalProperties":true},"maxItems":3},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true}}}}}}},"/":{"options":{"summary":"Chat Options","operationId":"chat_options__options","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/chat":{"post":{"summary":"Chat","description":"Talk with the concierge. body: {\"message\": \"...\", \"data\"?: {...}, \"visitor_token\"?, \"name\"?} (a plain-text body also works).","operationId":"chat_chat_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"reply":{"type":"string"},"visitor":{"type":"object","additionalProperties":true},"data":{"type":"object","additionalProperties":true},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","maxLength":4000},"visitor_token":{"type":"string"},"data":{"type":"object","additionalProperties":true}},"additionalProperties":true,"required":["message"]}}}}},"options":{"summary":"Chat Options","operationId":"chat_options_chat_options","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/me":{"get":{"summary":"Me","operationId":"me_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"audience":{"type":"string"},"visitor":{"type":"object","properties":{"id":{"type":"string"},"token":{"type":"string"},"session_status":{}},"additionalProperties":true,"required":["id"]},"notify":{},"interests":{"type":"array","items":{"type":"object","properties":{"task":{"type":"string"},"kind":{"type":["string","null"]},"updated":{"type":"number"}},"additionalProperties":true}},"contacts":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true}},"next":{"type":"string"}},"additionalProperties":true,"required":["visitor"]}}}}}}},"/api/task-updates/browser-config":{"get":{"summary":"Browser Update Config","operationId":"browser_update_config_api_task_updates_browser_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"application_server_key":{"type":["string","null"]},"destination_notice_version":{"type":"string"},"marketing_notice_version":{"type":"string"}},"additionalProperties":true,"required":["available"]}}}}}}},"/api/task-updates/browser-confirm":{"post":{"summary":"Browser Update Confirm","operationId":"browser_update_confirm_api_task_updates_browser_confirm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"state":{"enum":["active","deleted"]}},"additionalProperties":true,"required":["id","state"]}}}}}}},"/api/task-updates":{"get":{"summary":"Task Updates List","operationId":"task_updates_list_api_task_updates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"notice_version":{"type":"string"},"destination_notice_version":{"type":"string"},"marketing_notice_version":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"task":{"type":"string"},"protocol":{"type":["string","null"]},"channel":{"type":"string"},"state":{"type":"string"},"created":{"type":"number"},"expires":{"type":"number"},"notice_version":{"type":"string"},"destination_confirmed_at":{"type":["number","null"]},"destination_verified":{"type":"boolean"},"marketing_requested":{"type":"boolean"},"marketing_status":{"enum":["not_requested","withdrawn","expired","confirmed","pending_verification"]},"marketing_eligible":{"type":"boolean"},"marketing_notice_version":{"type":["string","null"]}},"additionalProperties":true,"required":["id","state"]}}},"additionalProperties":true,"required":["items"]}}}}}},"post":{"summary":"Task Updates Create","operationId":"task_updates_create_api_task_updates_post","responses":{"201":{"description":"The new watch","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"task":{"type":"string"},"protocol":{"type":["string","null"]},"channel":{"type":"string"},"state":{"type":"string"},"created":{"type":"number"},"expires":{"type":"number"},"notice_version":{"type":"string"},"destination_confirmed_at":{"type":["number","null"]},"destination_verified":{"type":"boolean"},"marketing_requested":{"type":"boolean"},"marketing_status":{"enum":["not_requested","withdrawn","expired","confirmed","pending_verification"]},"marketing_eligible":{"type":"boolean"},"marketing_notice_version":{"type":["string","null"]}},"additionalProperties":true,"required":["id","state"]}}}}}}},"/api/task-updates/stop":{"post":{"summary":"Task Updates Stop","operationId":"task_updates_stop_api_task_updates_stop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"message":{"type":"string"}},"additionalProperties":true,"required":["ok"]}}}}}}},"/api/task-updates/{watch_id}/action":{"post":{"summary":"Task Updates Action","operationId":"task_updates_action_api_task_updates__watch_id__action_post","parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","title":"Watch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"task":{"type":"string"},"protocol":{"type":["string","null"]},"channel":{"type":"string"},"state":{"type":"string"},"created":{"type":"number"},"expires":{"type":"number"},"notice_version":{"type":"string"},"destination_confirmed_at":{"type":["number","null"]},"destination_verified":{"type":"boolean"},"marketing_requested":{"type":"boolean"},"marketing_status":{"enum":["not_requested","withdrawn","expired","confirmed","pending_verification"]},"marketing_eligible":{"type":"boolean"},"marketing_notice_version":{"type":["string","null"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"created":{"type":"number"},"type":{"type":"string"},"purpose":{"type":"string"},"schema_version":{"type":"integer"},"untrusted_listing_data":{"type":"boolean"},"recommendation":{"type":["object","null"]},"message":{"type":"string"},"return_url":{"type":"string"},"preferences_url":{"type":"string"},"stop_url":{"type":"string"}},"additionalProperties":true,"required":["id","created"]}}},"additionalProperties":true,"description":"The watch after the action; for 'check', its events; for 'delete' or 'decline', {id, state: deleted}."}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/task-updates/{watch_id}/events":{"get":{"summary":"Task Updates Events","operationId":"task_updates_events_api_task_updates__watch_id__events_get","parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","title":"Watch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"created":{"type":"number"},"type":{"type":"string"},"purpose":{"type":"string"},"schema_version":{"type":"integer"},"untrusted_listing_data":{"type":"boolean"},"recommendation":{"type":["object","null"]},"message":{"type":"string"},"return_url":{"type":"string"},"preferences_url":{"type":"string"},"stop_url":{"type":"string"}},"additionalProperties":true,"required":["id","created"]}}},"additionalProperties":true,"required":["items"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/unsubscribe":{"post":{"summary":"Unsubscribe","operationId":"unsubscribe_unsubscribe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"audience":{"type":"string"},"ok":{"type":"boolean"},"request_id":{},"reply":{"type":"string"}},"additionalProperties":true,"required":["ok"]}}}}}}},"/api/privacy/opt-out":{"post":{"summary":"Api Privacy Opt Out","description":"Record a preference or receive a request for a separately reviewed action.","operationId":"api_privacy_opt_out_api_privacy_opt_out_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"request_id":{},"status":{"type":"string"},"statutory_days":{"type":"integer"},"gpc_detected":{"type":"boolean"},"message":{"type":"string"}},"additionalProperties":true,"required":["ok","status"]}}}},"410":{"description":"Access, correction and deletion requests go by e-mail.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"error_code":{"type":"string"},"retryable":{"type":"boolean"},"ok":{"type":"boolean"},"email":{"type":"string"},"error":{"type":"string"}},"additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_type":{"type":"string"},"email":{"type":"string"},"details":{"type":"string"},"gpc":{"type":"boolean"}},"additionalProperties":true}}}}}},"/api/overview":{"get":{"summary":"Api Overview","operationId":"getPublicOverview","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"now":{"type":"number"},"snapshot_at":{"type":"number"},"is_snapshot":{"type":"boolean"},"delay_seconds":{"type":"integer"},"timezone":{"type":"string"},"resources":{"type":"array","items":{"type":"object","additionalProperties":true}},"health_summary":{"type":"object","properties":{"healthy":{"type":"integer"},"reachable":{"type":"integer"},"failing":{"type":"integer"},"down":{"type":"integer"},"live_total":{"type":"integer"},"total_active":{"type":"integer"},"uptime_pct":{"type":"number"},"other":{"type":"integer"},"status_counts":{"type":"object","additionalProperties":{"type":"integer"}},"as_of":{"type":"string"},"definitions":{"type":"object","additionalProperties":true}},"additionalProperties":true},"categories":{"type":"array","items":{"type":"object","additionalProperties":true}},"category_names":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":true}}}}}}},"/api/insights":{"get":{"summary":"Api Insights","operationId":"api_insights_api_insights_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"now":{"type":"number"},"categories":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":true}}}}}}},"/api/explore":{"get":{"summary":"Api Explore","operationId":"api_explore_api_explore_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":500,"default":"","title":"Q"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"verified","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Verified"}},{"name":"no_auth","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"No Auth"}},{"name":"has_report","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Has Report"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":45,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":299,"minimum":0,"default":0,"title":"Offset"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8,"pattern":"^o[0-9]{1,3}$"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"terms":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"total_is_estimate":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"protocol_policy":{"type":"string"},"offset":{"type":"integer"},"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"next_cursor":{"type":["string","null"]},"suggestions":{"type":"array","items":{"type":"object","additionalProperties":true}},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true,"required":["items","total"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{rid}":{"get":{"summary":"Api Agent","operationId":"api_agent_api_agents__rid__get","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"integer","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"agent":{"type":"object","properties":{"id":{"type":"integer"},"kind":{"enum":["a2a","mcp","x402"]},"name":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"active":{"type":"boolean"},"health_status":{"type":"string"},"eval_grade":{"type":["string","null"]},"eval_score":{"type":["number","null"]}},"additionalProperties":true,"required":["id","kind","name"]},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true,"required":["agent"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/check":{"get":{"summary":"Api Agent Check","description":"Check before you call: our recorded evidence for an endpoint or card URL. Nothing is fetched.","operationId":"checkAgentUrl","parameters":[{"name":"url","in":"query","required":false,"schema":{"type":"string","default":"","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"found":{"type":"boolean"},"url":{"type":"string"},"evidence_sources":{"type":"array","items":{"type":"string"}},"alternatives":{"type":"array","items":{"type":"object","additionalProperties":true},"maxItems":3}},"additionalProperties":true,"required":["found","url"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connections/{agent_ref}":{"get":{"summary":"Api Connection","operationId":"api_connection_api_connections__agent_ref__get","parameters":[{"name":"agent_ref","in":"path","required":true,"schema":{"type":"string","title":"Agent Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"connection_profile_version":{"type":"string"},"gateway_ready":{"type":"boolean"},"connection_readiness":{"type":"object","properties":{"profile_available":{"type":"boolean"},"verified_callable":{"type":"boolean"},"reason":{"type":"string"},"verified_at":{"type":["number","null"]},"evidence_scope":{"type":"string"}},"additionalProperties":true},"capability_contracts":{"type":"array","items":{"type":"object","properties":{"id":{},"verified":{"type":"boolean"}},"additionalProperties":true}},"endpoint":{"type":"string"}},"additionalProperties":true,"required":["endpoint"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test/presets":{"get":{"summary":"Api Test Presets","description":"Two lists: `presets` are non-executing format demonstrations (negative ids, simulated: true, no connection) and `live_examples` are real registered examples that can run.","operationId":"api_test_presets_api_test_presets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"presets":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Non-executing format demonstrations (negative ids)"},"live_examples":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Real registered examples that can run"},"safety":{"type":"object","properties":{"timeout_seconds":{"type":"object","additionalProperties":true},"rate_limit":{"type":"object","additionalProperties":true},"response_bytes":{"type":"object","additionalProperties":true},"tool_screening":{"type":"string"},"payments":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}}}}}}},"/api/test/execute":{"post":{"summary":"Api Test Execute","description":"Inspect the actual client request and execute through the shared managed connection.","operationId":"api_test_execute_api_test_execute_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"result":{"type":"object","additionalProperties":true},"error":{"type":"string"}},"additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"resource_id":{"type":"integer"},"tool":{"type":"string"},"arguments":{"type":"object","additionalProperties":true},"message":{"type":"string"},"timeout_seconds":{"type":"number","minimum":2,"maximum":8}},"additionalProperties":true,"required":["resource_id"]}}}}}},"/api/register/inspect":{"post":{"summary":"Api Register Inspect","operationId":"api_register_inspect_api_register_inspect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"url":{"type":"string"},"protocol_verified":{"type":"boolean"},"kind":{"enum":["a2a","mcp","x402",null]},"name":{"type":"string"},"description":{"type":"string"},"category":{"type":["string","null"]},"latency_ms":{"type":"integer"},"already_registered":{"type":"boolean"},"details":{"type":"object","additionalProperties":true},"readiness":{"oneOf":[{"type":"null"},{"type":"object","properties":{"scope":{"type":"string"},"note":{"type":"string"},"passed":{"type":"integer"},"total":{"type":"integer"},"items":{"type":"array","items":{"type":"object","properties":{"check":{"type":"string"},"passed":{"type":"boolean"},"why":{"type":"string"},"fix":{"type":"string"}},"additionalProperties":true,"required":["check","passed","why","fix"]}}},"additionalProperties":true,"required":["items"]}],"description":"Item by item, what the endpoint returned and what is missing; not a grade"}},"additionalProperties":true,"required":["ok","protocol_verified"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":1000,"description":"Public http(s) endpoint or agent-card address; the endpoint is asked for its own protocol answer, nothing is registered"}},"additionalProperties":true,"required":["url"]}}}},"description":"Inspect before you submit: reads the endpoint (initialize and tools/list, the Agent Card, or the 402 answer) and answers what it is and, in `readiness`, what is missing. Nothing is registered. Limit: 10 per minute per address (429 + Retry-After). No key or login."}},"/api/register":{"post":{"summary":"Api Register","operationId":"api_register_api_register_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"id":{"type":"integer"},"kind":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"tool_count":{"type":"integer"},"verification_scope":{"type":"string"},"message":{"type":"string"}},"additionalProperties":true,"required":["ok","id"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"enum":["a2a","mcp","x402"]},"url":{"type":"string","maxLength":1000},"name":{"type":"string","minLength":2,"maxLength":100},"description":{"type":"string","minLength":5,"maxLength":2000},"category":{"type":"string","description":"One id of GET /api/overview category_names"},"networks":{"type":"array","items":{"enum":["base","ethereum","solana"]},"maxItems":3,"description":"x402 only"},"price_usdc":{"type":"integer","minimum":0,"description":"micro-USDC, x402 only; must match the 402 answer"},"pay_to":{"type":"string"},"method":{"enum":["GET","POST"]},"details":{"type":"object","additionalProperties":true},"legal_consent":{"type":"object","properties":{"agreed":{"const":true},"tos_version":{"type":"string"},"privacy_version":{"type":"string"},"agreed_at":{"type":"string","format":"date-time","description":"within ten minutes of the request"},"gpc_active":{"type":"boolean"}},"additionalProperties":true,"required":["agreed","tos_version","privacy_version","agreed_at"]}},"additionalProperties":true,"required":["kind","url","name","description","category","legal_consent"]}}}},"description":"Registers a public endpoint without login: run POST /api/register/inspect first and submit what it returned. The endpoint is asked for its protocol answer again and must match `kind`; the listing starts as protocol-verified and the quality grade comes from tests after registration. Ownership of the endpoint is not checked here. Submitting through this API is the agreement of the endpoint operator to the terms. To list, withdraw, restore or edit the listings of your host later, put the token from GET /api/agent/v1/owner/token?host=<host> at /.well-known/agentconcierge-verify.txt and POST /api/agent/v1/owner/listings. Limit: 30 per minute per address. legal_consent versions now: terms 2026.1, privacy 2026.1. Error answers are application/problem+json with `field` and `error_code`: URL_CREDENTIALS (400), INVALID_URL (400), SELF_ENDPOINT (400), DNS_FAILED (400), DNS_TIMEOUT (400), PRIVATE_DESTINATION (400), CONSENT_REQUIRED (400), CONSENT_VERSION_MISMATCH (400), CONSENT_EXPIRED (400), INVALID_INPUT (400), ALREADY_REGISTERED (409), PROTOCOL_UNVERIFIED (422), PROTOCOL_MISMATCH (422)."}},"/api/register/recent":{"get":{"summary":"Api Register Recent","operationId":"api_register_recent_api_register_recent_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"kind":{"type":"string"},"source":{"type":"string"},"name":{"type":["string","null"]},"url":{"type":"string"},"category":{"type":["string","null"]},"health_status":{"type":["string","null"]},"first_seen":{"type":["number","null"]},"usage_endpoint":{"type":"string"}},"additionalProperties":true,"required":["id","kind"]}}},"additionalProperties":true,"required":["items"]}}}}}}},"/api/workflows/templates":{"get":{"summary":"Api Workflow Templates","operationId":"api_workflow_templates_api_workflows_templates_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Category"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"templates":{"type":"array","items":{"type":"object","additionalProperties":true}},"count":{"type":"integer"},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true,"required":["templates"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/templates/{template_id}":{"get":{"summary":"Api Workflow Template","operationId":"api_workflow_template_api_workflows_templates__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"workflow":{"type":"object","properties":{"id":{"type":"integer"},"category":{"type":["string","null"]},"trigger_type":{"type":["string","null"]},"is_active":{},"is_template":{},"parent_workflow_id":{"type":["integer","null"]},"name":{"type":"string"},"description":{"type":["string","null"]},"tags":{},"author":{"type":["string","null"]},"nodes":{"type":"array","items":{"type":"object","additionalProperties":true}},"edges":{"type":"array","items":{"type":"object","additionalProperties":true}},"steps":{"type":"array","items":{"type":"object","additionalProperties":true}},"definition_hash":{"type":"string"},"node_protocols":{"type":"array","items":{}},"execution_availability":{"type":"object","properties":{"available":{"type":"boolean"},"reason_code":{"type":["string","null"]},"message":{"type":["string","null"]},"http_status":{"type":["integer","null"]},"checked_at":{},"scope":{"type":["string","null"]}},"additionalProperties":true}},"additionalProperties":true,"required":["id","name"]},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true,"required":["workflow"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/{template_id}/webapp":{"get":{"summary":"Api Workflow Webapp","operationId":"api_workflow_webapp_api_workflows__template_id__webapp_get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"200":{"description":"The downloadable web app","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Published workflow not found.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"error_code":{"type":"string"},"retryable":{"type":"boolean"},"ok":{"type":"boolean"},"email":{"type":"string"},"error":{"type":"string"}},"additionalProperties":true}}}},"429":{"description":"Too many downloads.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"error_code":{"type":"string"},"retryable":{"type":"boolean"},"ok":{"type":"boolean"},"email":{"type":"string"},"error":{"type":"string"}},"additionalProperties":true}}}}}}},"/api/workflows/runs/{run_id}/cancel":{"options":{"summary":"Workflow Options","operationId":"workflow_options_api_workflows_runs__run_id__cancel_options","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Workflow Cancel","operationId":"api_workflow_cancel_api_workflows_runs__run_id__cancel_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"cancel_requested":{"type":"boolean"}},"additionalProperties":true,"required":["ok"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/runs/{run_id}":{"options":{"summary":"Workflow Options","operationId":"workflow_options_api_workflows_runs__run_id__options","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Workflow Status","operationId":"api_workflow_status_api_workflows_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"string"},"run":{"type":"object","additionalProperties":true}},"additionalProperties":true}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/run":{"options":{"summary":"Workflow Options","operationId":"workflow_options_api_workflows_run_options","parameters":[{"name":"run_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Workflow Run","operationId":"api_workflow_run_api_workflows_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"string"},"run":{"type":"object","additionalProperties":true}},"additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"template_id":{"type":"integer","minimum":1},"definition_hash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"allow_fallback":{"type":"boolean"},"fallback_notice":{"type":"string"},"input":{"type":"object","additionalProperties":true}},"additionalProperties":true,"required":["template_id"]}}}}}},"/a2a":{"post":{"summary":"A2A","operationId":"a2a_a2a_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"const":"2.0"},"id":{},"result":{"type":"object","additionalProperties":true},"error":{"type":"object","additionalProperties":true}},"additionalProperties":true,"required":["jsonrpc"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"const":"2.0"},"id":{},"method":{"enum":["message/send","tasks/get","tasks/cancel"]},"params":{"type":"object","additionalProperties":true}},"additionalProperties":true,"required":["jsonrpc","method"]}}}}}},"/mcp":{"post":{"summary":"Mcp","operationId":"mcp_mcp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"const":"2.0"},"id":{},"result":{"type":"object","additionalProperties":true},"error":{"type":"object","additionalProperties":true}},"additionalProperties":true,"required":["jsonrpc"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"const":"2.0"},"id":{},"method":{"type":"string"},"params":{"type":"object","additionalProperties":true}},"additionalProperties":true,"required":["jsonrpc","method"]}}}}}},"/api/agent/v1/discover":{"post":{"summary":"Discover","operationId":"discoverAgentTask","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"items":{"type":"array","items":{"type":"object","additionalProperties":true},"maxItems":3},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true}}}}}}},"/api/agent/v1/lookup":{"post":{"summary":"Lookup Public Agents","description":"Find current recommendations without opening or updating a visitor conversation.","operationId":"lookupPublicAgents","requestBody":{"content":{"application/json":{"schema":{"properties":{"task":{"type":"string","maxLength":2000,"minLength":1},"protocol":{"enum":["auto","any","a2a","mcp","x402"]},"free_only":{"type":"boolean"},"no_credentials":{"type":"boolean"},"read_only":{"type":"boolean"},"max_latency_ms":{"type":"integer","maximum":120000.0,"minimum":1.0},"has_fallback":{"type":"boolean"},"verified_only":{"type":"boolean"}},"additionalProperties":false,"type":"object","required":["task"]}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"items":{"type":"array","items":{"type":"object","additionalProperties":true},"maxItems":3},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true}}}}}}},"/api/feed/verified.json":{"get":{"summary":"Feed","operationId":"getVerifiedAgentFeed","parameters":[{"name":"protocol","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}}],"responses":{"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"200":{"description":"JSON Feed 1.1 of recorded verification changes","content":{"application/feed+json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"title":{"type":"string"},"home_page_url":{"type":"string"},"feed_url":{"type":"string"},"_next_cursor":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"content_text":{"type":"string"},"date_published":{"type":"string"},"_agentconcierge":{"type":"object","additionalProperties":true}},"additionalProperties":true,"required":["id"]}}},"additionalProperties":true,"required":["version","items"]}}}},"503":{"description":"The change feed is preparing (Retry-After).","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"error_code":{"type":"string"},"retryable":{"type":"boolean"},"ok":{"type":"boolean"},"email":{"type":"string"},"error":{"type":"string"}},"additionalProperties":true}}}}}}},"/api/gateway/{kind}/{rid}":{"get":{"summary":"Get Connection","operationId":"get_connection_api_gateway__kind___rid__get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"rid","in":"path","required":true,"schema":{"type":"integer","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"protocolVersion":{"type":"string"},"url":{"type":"string"},"preferredTransport":{"type":"string"},"documentationUrl":{"type":"string"},"capabilities":{"type":"object","additionalProperties":true},"defaultInputModes":{"type":"array","items":{"type":"string"}},"defaultOutputModes":{"type":"array","items":{"type":"string"}},"skills":{"type":"array","items":{"type":"object","additionalProperties":true}},"connectionProfile":{"type":"object","additionalProperties":true},"status_code":{"type":"integer"},"output":{},"protocol_valid":{"type":"boolean"}},"additionalProperties":true}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"405":{"description":"MCP listings: use POST; the answer names the endpoint and methods. For a listing this gateway does not relay it also gives error_code and error (a POST is refused).","content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"string"},"endpoint":{"type":"string"},"methods":{"type":"array","items":{"type":"string"}},"streaming":{"type":"boolean"},"sessions":{"type":"boolean"},"error_code":{"type":"string"},"error":{"type":"string"}},"additionalProperties":true,"required":["profile","endpoint","methods"]}}}},"402":{"description":"x402 listings: the provider's payment requirements, read only (this service never pays).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"post":{"summary":"Post Connection","description":"kind a2a or mcp: a JSON-RPC style call (tools/call, message/send) to the registered agent through the managed connection (10 a minute per address). kind x402: the body must be exactly {\"action\": \"probe\"}: one unpaid request that reads the 402 answer (price, asset, network) and never pays.","operationId":"post_connection_api_gateway__kind___rid__post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"rid","in":"path","required":true,"schema":{"type":"integer","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"status_code":{"type":"integer"},"output":{},"protocol_valid":{"type":"boolean"}},"additionalProperties":true}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"enum":["probe"],"description":"x402 kind: the only action; one unpaid request that reads the 402 answer, never pays"},"method":{"type":"string","description":"a2a and mcp kinds: tools/call, message/send, tools/list, ping ..."},"params":{"type":"object","additionalProperties":true}},"additionalProperties":true}}}}}},"/api/ad-coin/v2/sponsored/offer":{"get":{"summary":"Sponsored Offer","description":"Agent ads (A): the one `sponsored` object for MCP, A2A and REST answers, after the organic results.\nFacts (grade, report, health) are attached by the response surface; this route never reads them.","operationId":"sponsored_offer_api_ad_coin_v2_sponsored_offer_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"","title":"Category"}},{"name":"region","in":"query","required":false,"schema":{"type":"string","default":"","title":"Region"}},{"name":"surface","in":"query","required":false,"schema":{"type":"string","default":"rest","title":"Surface"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/v1/entry":{"get":{"summary":"Public discovery entry and supported actions","responses":{"200":{"description":"Service discovery document","content":{"application/json":{"schema":{"type":"object","required":["schema_version","service","purpose","quick_actions","interfaces"],"properties":{"schema_version":{"type":"string"},"service":{"type":"string"},"purpose":{"type":"string"},"quick_actions":{"type":"array","items":{"type":"object","required":["action","method","path"],"properties":{"action":{"type":"string"},"method":{"type":"string","enum":["GET","POST"]},"path":{"type":"string"},"requires_session":{"type":"boolean"}}}},"interfaces":{"type":"object","additionalProperties":{"type":"string"}},"advertise":{"type":"object"},"advertising":{"type":"object"},"pearls_and_necklaces":{"type":"object"}}}}}},"429":{"description":"Over the per-address limit. Wait Retry-After seconds, then call again; nothing is blocked.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","properties":{"retryable":{"type":"boolean"},"retry_after_s":{"type":"integer"},"error_code":{"type":"string"}}}}}}}}},"/api/agent/v1/openapi.json":{"get":{"summary":"This public discovery API contract","responses":{"200":{"description":"OpenAPI document","content":{"application/json":{"schema":{"type":"object","required":["openapi","paths"],"properties":{"openapi":{"type":"string"},"info":{"type":"object"},"paths":{"type":"object"},"components":{"type":"object"},"security":{"type":"array","items":{"type":"object"}},"servers":{"type":"array","items":{"type":"object"}},"x-agentconcierge-profile":{}}}}}},"429":{"description":"Over the per-address limit. Wait Retry-After seconds, then call again; nothing is blocked.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","properties":{"retryable":{"type":"boolean"},"retry_after_s":{"type":"integer"},"error_code":{"type":"string"}}}}}}}}},"/api/agent/v1/badge/{resource_id}.svg":{"get":{"summary":"Recorded current-version execution badge","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Verification status SVG; unverified does not mean execution succeeded","content":{"image/svg+xml":{"schema":{"type":"string"}}}},"429":{"description":"Over the per-address limit. Wait Retry-After seconds, then call again; nothing is blocked.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","properties":{"retryable":{"type":"boolean"},"retry_after_s":{"type":"integer"},"error_code":{"type":"string"}}}}}}}}},"/api/pearls/public":{"get":{"operationId":"listPublicPearls","summary":"List verified Public Pearls (agents scoring >=85/100 on standardized role tasks) with role scores, test dates and primary terms status","responses":{"200":{"description":"Public Pearls snapshot and role counts","content":{"application/json":{"schema":{"type":"object","properties":{"schema":{"type":"string"},"levels":{"type":"object","additionalProperties":{"enum":["final","verified"]}},"direct":{"type":"array","items":{"type":"string"}},"direct_note":{"type":"string"},"counts":{"type":"object","properties":{"final":{"type":"integer"},"verified":{"type":"integer"},"jobs":{"type":"integer"},"agents":{"type":"integer"}},"additionalProperties":true},"agent_levels":{"type":"object","properties":{"final":{"type":"integer"},"verified":{"type":"integer"}},"additionalProperties":true},"count_definitions":{"type":"object","additionalProperties":true},"counts_as_of":{"type":"string"},"pearls_testing":{"type":"integer"},"necklaces_verifying":{"type":"integer"},"necklaces_live":{"type":"integer"},"necklaces_degraded":{"type":"integer"},"necklaces_preview":{"type":"integer"},"method":{"type":"string"}},"additionalProperties":true,"required":["schema","levels","counts"]}}}}}}},"/api/roles/{role}/best":{"get":{"operationId":"bestPearlsForRole","summary":"Return verified Public Pearls and any matching Public Pearl Necklace for a standardized role slug (e.g. weather.forecast.v1)","parameters":[{"name":"role","in":"path","required":true,"description":"Dotted, versioned role id such as weather.forecast.v1 (not a bare word like weather). An unknown id answers 404 with did_you_mean and the known roles.","schema":{"type":"string","pattern":"^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*\\.v[0-9]{1,3}$"}}],"responses":{"200":{"description":"Role-verified pearls and matching necklaces","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string"},"field":{},"final_pearl":{},"final_pearl_detail":{"type":["object","null"]},"verified_pearls":{"type":"array","items":{"type":"object","properties":{"agent_id":{},"name":{"type":["string","null"]},"score":{"type":["number","null"]},"connection_reason":{"type":"string"}},"additionalProperties":true}},"direct_only":{"type":"array","items":{"type":"object","properties":{"agent_id":{},"name":{"type":["string","null"]},"score":{"type":["number","null"]},"connection_reason":{"type":"string"}},"additionalProperties":true}},"necklaces":{"type":"array","items":{"type":"object","additionalProperties":true}},"data_time":{"type":["string","null"]},"methodology":{"type":"object","properties":{"version":{},"url":{"type":"string"}},"additionalProperties":true},"sponsored":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"One labelled advertisement (free answers only)"}},"additionalProperties":true,"required":["role","verified_pearls"]}}}},"404":{"description":"Unknown role; the answer explains the id format (e.g. weather.forecast.v1), suggests close roles and lists the known roles.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"error_code":{"type":"string"},"retryable":{"type":"boolean"},"ok":{"type":"boolean"},"email":{"type":"string"},"error":{"type":"string"},"found":{"type":"boolean"},"did_you_mean":{"type":"array","items":{"type":"string"}},"roles":{"type":"array","items":{"type":"string"}}},"additionalProperties":true}}}}}}},"/api/necklaces":{"get":{"operationId":"listPublicPearlNecklaces","summary":"List live Public Pearl Necklaces (gated multi-agent workflows with visible external-first fallbacks and daily 48-hour rechecks)","responses":{"200":{"description":"Offered Public Pearl Necklaces catalog","content":{"application/json":{"schema":{"type":"object","properties":{"schema":{"type":"string"},"generated_at":{"type":["string","null"]},"necklaces":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":["string","null"]},"summary":{"type":["string","null"]},"status":{"type":["string","null"]},"offered":{"type":"boolean"},"url":{"type":"string"},"mcp_tool":{"type":"string"},"a2a_skill":{"type":"string"},"input_schema":{"type":["object","null"]},"pearls":{"type":"array","items":{"type":"object","properties":{"agent_id":{},"role":{"type":["string","null"]},"tool":{"type":["string","null"]},"kind":{"type":"string"},"verified_pearl":{"type":"boolean"},"standing":{"type":["string","null"]},"card":{"type":["string","null"]},"alternates":{"type":"object","additionalProperties":true}},"additionalProperties":true}},"quality":{"type":"object","additionalProperties":true},"completion":{"type":"object","additionalProperties":true},"cost":{"type":"object","additionalProperties":true},"paid_runs":{"type":"object","additionalProperties":true},"steps_total":{"type":["integer","null"]},"steps_verified":{"type":["integer","null"]},"sources":{},"attribution":{"type":["object","null"]},"own_members":{"type":["object","null"]},"preview":{"type":["object","null"]},"fallback":{},"paid_run_members":{"type":"array","items":{"type":"object","additionalProperties":true}},"scope_notice":{"type":["string","null"]},"comparison":{"type":["object","null"]},"agent_path":{"type":["object","null"]},"escrow_policy":{"type":["object","null"]},"sample_output":{"type":["object","null"]},"step_states":{"type":"array","items":{}},"fallback_coverage":{},"standing_notes":{"type":"array","items":{}},"notice":{}},"additionalProperties":true,"required":["slug","url"]}},"in_testing":{"type":"array","items":{"type":"object","additionalProperties":true}},"in_connection_test":{"type":"object","properties":{"count":{"type":["integer","null"]},"note":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true,"required":["necklaces"]}}}}}}},"/api/feed/necklaces.json":{"get":{"operationId":"necklacesChangeFeed","summary":"Public change feed for Public Pearl Necklaces (live, preview, paused, held; supports ETag / If-None-Match)","responses":{"200":{"description":"JSON Feed 1.1","content":{"application/feed+json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"title":{"type":"string"},"home_page_url":{"type":"string"},"feed_url":{"type":"string"},"description":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"content_text":{"type":"string"},"date_published":{"type":["string","null"]},"_necklace":{"type":"object","properties":{"slug":{"type":"string"},"kind":{"type":"string"},"reason":{"type":["string","null"]},"replaced_by":{"type":["string","null"]}},"additionalProperties":true}},"additionalProperties":true,"required":["id"]}}},"additionalProperties":true,"required":["version","items"]}}}}}}},"/api/necklace-requests":{"post":{"operationId":"requestNecklace","summary":"Request a Pearl Necklace: task, example input and wanted output, with consent true (no contact details); answers a request id and status URL","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task","example_input","wanted_output","consent"],"additionalProperties":false,"properties":{"task":{"type":"string","minLength":20,"maxLength":1000},"example_input":{"type":"string","minLength":1,"maxLength":500},"wanted_output":{"type":"string","minLength":1,"maxLength":500},"consent":{"type":"boolean","const":true}}}}}},"responses":{"201":{"description":"Request recorded","content":{"application/json":{"schema":{"type":"object","required":["ok","request_id","status_url"],"properties":{"ok":{"type":"boolean"},"request_id":{"type":"string"},"duplicate":{"type":"boolean"},"status":{"type":"string"},"status_url":{"type":"string"},"status_api":{"type":"string"},"check_every_s":{"type":"integer"},"note":{"type":"string"},"similar_necklaces":{"type":"array"}}}}}},"200":{"description":"The same request was already recorded","content":{"application/json":{"schema":{"type":"object","required":["ok","request_id","status_url"],"properties":{"ok":{"type":"boolean"},"request_id":{"type":"string"},"duplicate":{"type":"boolean"},"status":{"type":"string"},"status_url":{"type":"string"},"status_api":{"type":"string"},"check_every_s":{"type":"integer"},"note":{"type":"string"},"similar_necklaces":{"type":"array"}}}}}},"422":{"description":"A field is missing or invalid"},"429":{"description":"Too many requests"}}}},"/api/necklace-requests/status":{"post":{"operationId":"necklaceRequestStatus","summary":"State of a Pearl Necklace request by its request id (sent in the body, never in the address)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["request_id"],"properties":{"request_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Request state","content":{"application/json":{"schema":{"type":"object","required":["ok","status"],"properties":{"ok":{"type":"boolean"},"check_every_s":{"type":"integer"},"status":{"type":"string"},"note":{"type":["string","null"]},"received_at":{"type":"string"},"task":{"type":"string"},"example_input":{"type":"string"},"wanted_output":{"type":"string"},"answer":{"type":["string","null"]}}}}}},"404":{"description":"Unknown request id"}}}},"/api/necklaces/creators/{resource_id}/earnings":{"get":{"operationId":"creatorEarnings","summary":"What paid Pearl Necklace runs credited to the creator of one catalog agent: accrued, in progress, paid and the payout address state","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Credits and payouts in USDC","content":{"application/json":{"schema":{"type":"object","required":["ok","earnings"],"properties":{"ok":{"type":"boolean"},"earnings":{"type":"object"}}}}}}}}},"/api/necklaces/creators/{resource_id}/address":{"post":{"operationId":"creatorPayoutAddress","summary":"Propose a payout address for one catalog agent; the answer is a proof to publish at the origin, and the same body plus challenge_id asks us to check it","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["address"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"challenge_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Proof to publish, or the check result","content":{"application/json":{"schema":{"type":"object","required":["ok","verification"],"properties":{"ok":{"type":"boolean"},"verification":{"type":"object"}}}}}},"409":{"description":"The agent origin cannot be resolved or the proof does not match"}}}},"/api/agent/v1/owner/token":{"get":{"operationId":"ownerToken","summary":"Return the ownership token a host serves at /.well-known/agentconcierge-verify.txt to control its listings (no account)","parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string"},"description":"Public host name of the endpoint, such as agent.example"}],"responses":{"200":{"description":"Token and where to serve it","content":{"application/json":{"schema":{"type":"object","required":["host","token"],"properties":{"host":{"type":"string"},"token":{"type":"string"},"well_known":{"type":"object"},"dns_txt":{"type":"object"},"verify":{"type":"object"},"listings":{"type":"object"},"note":{"type":"string"}}}}}}}}},"/api/agent/v1/owner/listings":{"post":{"operationId":"ownerListings","summary":"List, withdraw, restore or update the listings of a host that serves its ownership token (no account; 30 per minute per address)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["host"],"properties":{"host":{"type":"string"},"action":{"type":"string","enum":["list","withdraw","restore","update"],"default":"list"},"resource_ids":{"type":"array","items":{"type":"integer"}},"resource_id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"}}}}}},"responses":{"200":{"description":"Listings of the host or the change made","content":{"application/json":{"schema":{"type":"object","required":["ok","host","listings"],"properties":{"ok":{"type":"boolean"},"host":{"type":"string"},"proof":{"type":"string"},"action":{"type":"string"},"changed":{},"listings":{"type":"array"}}}}}},"403":{"description":"The host does not serve the ownership token"}}}},"/api/ad-coin/v2/sponsor":{"post":{"operationId":"createSponsoredOrder","summary":"Order one labelled Sponsored placement for agent answers, without an account (step 1 of 3)","description":"In our checks on 25 November 2026, 3 quoted orders had the quote at the first status read, 7.0 to 8.3 seconds after the order. A full day gives no quote; orders held for review wait for a person.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SponsoredOrder"}}}},"responses":{"201":{"description":"order_id, status_url and read_key (shown once); state in_review with Retry-After","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"While a review or a full day makes the caller wait."}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"invalid_json: the body is not one JSON object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCoinError"}}}},"413":{"description":"body_too_large: the body is larger than 4096 bytes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCoinError"}}}},"422":{"description":"unknown_field: a field other than name, text, url, category, region, day, budget_usdc, impressions, placements (placements only with impressions); invalid_order: name 2-80 characters, text 1-120 characters, url https; sensitive_category: health_science, public_legal, finance_crypto and trading_derivatives carry no ad; unsupported_targeting: category or region missing, or outside the lists; day_or_budget_required: exactly one of day, budget_usdc and impressions; impressions_out_of_range: impressions from 100 (0.5 USDC) to 100000 (500 USDC), a whole number; unsupported_placement: placements are explore and chat; day_not_bookable: day must be from today (while an hour is left) up to 30 days ahead (UTC); budget_below_minimum: budget_usdc below 10; budget_too_large: budget_usdc above 300; order_refused:<reasons>: reasons: text_has_link, text_claims_rank, text_instructs_agent, or a rule no person may approve (hidden_characters, agent_instruction, self_vouching, wallet_request, hidden_markup); url_not_public: the endpoint does not resolve to a public address; idempotency_key_not_supported: send the order without an Idempotency-Key header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCoinError"}}}},"425":{"description":"too_early: a TLS early-data request writes nothing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCoinError"}}}},"429":{"description":"daily_order_limit: too many orders from this address today","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCoinError"}}}}}}},"/api/ad-coin/v2/sponsor/{order_id}":{"get":{"operationId":"getSponsoredOrder","summary":"Review state, then the USDC quote (step 2 of 3); later, what the order got","description":"The same status_url, read with the read_key, reports results: daily showings and clicks by placement and the paid days (aggregate counts only).","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Read-Key","in":"header","required":true,"schema":{"type":"string"},"description":"The read_key returned once by the order; it cannot be recovered."}],"responses":{"200":{"description":"in_review or an offer still in review (quote_error offer_held; both with Retry-After: 60), rejected (with reason) or the quote; a full day answers quote_error sponsored_day_full with a note and Retry-After","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"While a review or a full day makes the caller wait."}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"unknown_order: no order with this id and read key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCoinError"}}}}}}},"/api/ad-coin/v2/sponsor/{order_id}/payment":{"post":{"operationId":"paySponsoredOrder","summary":"Submit the hash of the exact USDC transfer on Base (step 3 of 3)","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Read-Key","in":"header","required":true,"schema":{"type":"string"},"description":"The read_key returned once by the order; it cannot be recovered."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tx_hash"],"additionalProperties":false,"properties":{"tx_hash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}}}}},"responses":{"200":{"description":"the quote with its payment state","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"unknown_order: no order with this id and read key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCoinError"}}}},"409":{"description":"order_taken_down: an operator took the order down; no_open_quote: no quote is open for this order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCoinError"}}}}}}},"/api/necklaces/{slug}/run":{"post":{"operationId":"runPublicPearlNecklace","summary":"Run an open Public Pearl Necklace (paid, 0.01 USDC per slot on Base)","description":"Body: the necklace inputs (see inputSchema in GET /api/necklaces). Without a payment the answer is 402: payer_address_required first, then a quote once X-Payment-Payer is sent; pay it and send the same request again with the payment headers. Every 402 also carries the x402 v2 offer in the PAYMENT-REQUIRED header: sign it and send the request again with PAYMENT-SIGNATURE (answered with PAYMENT-RESPONSE). A failed run is refunded in full. Paying for a run accepts the necklace terms at https://agentconcierge.biz/terms: your input is sent to the agents listed on the necklace page.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Payment-Payer","in":"header","required":false,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"description":"First call: the address you will pay from. The answer is 402 with the quote."},{"name":"X-Payment-Quote","in":"header","required":false,"schema":{"type":"string"},"description":"Second call: the quote id from the 402 answer."},{"name":"X-Payment-Tx","in":"header","required":false,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"description":"Second call: the hash of the USDC transfer on Base."},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"schema":{"type":"string"},"description":"x402 v2 instead of the quote headers: base64 PaymentPayload with an EIP-3009 transferWithAuthorization for accepts[0] of the PAYMENT-REQUIRED header of a 402 answer (POST without payment headers to get it; the amount includes a unique tail). The v1 X-PAYMENT header is not read. Resources: /.well-known/x402."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"The run result","content":{"application/json":{"schema":{"type":"object","properties":{"ran":{"type":"boolean"},"ok":{"type":"boolean"},"output":{}}}}}},"402":{"description":"Payment required: the quote to pay, and the x402 v2 offer","headers":{"X-Payment-Quote":{"schema":{"type":"string"}},"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"x402 v2 PaymentRequired, base64 JSON"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NecklacePaymentRequired"}}}},"404":{"description":"No such necklace"}},"x-payment":{"schema":"agentvalcon-necklace-payment-v1","enabled":true,"scheme":"quote-then-transfer","schemes":["quote-then-transfer","x402-exact-v2"],"x402":true,"asset":{"symbol":"USDC","decimals":6,"network":"Base","chain_id":8453,"token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"},"price":{"per_slot_usdc":"0.01","per_slot_atoms":10000,"amount":"slots x per_slot plus a few atoms that identify the quote; the exact amount is in the quote","free_quota":0},"payment_object":{"type":"object","additionalProperties":false,"properties":{"payer_address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"The wallet that will send the USDC; required to get a quote."},"quote_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tx_hash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}},"transports":{"mcp":{"where":"arguments.payment"},"a2a":{"where":"payment in the JSON arguments of the message"},"rest":{"where":"headers","headers":{"payer_address":"X-Payment-Payer","quote_id":"X-Payment-Quote","tx_hash":"X-Payment-Tx"},"run":"https://agentconcierge.biz/api/necklaces/{slug}/run"},"x402":{"version":2,"offer_header":"PAYMENT-REQUIRED","header":"PAYMENT-SIGNATURE","response_header":"PAYMENT-RESPONSE","mcp_meta":"x402/payment","discovery":"https://agentconcierge.biz/.well-known/x402","offered":true,"how":"send the call without payment; sign accepts[0] of the 402 offer; send it again with the header"}},"steps":[{"step":"quote","send":["payer_address"],"answer":"payment_required","http_status":402,"returns":["quote_id","amount_units","amount_usdc","pay_to","chain_id","token","expires_at","expires_in_s","copy","slots","review_window_s","how_to_continue"]},{"step":"transfer","by":"the payer's wallet","rule":"exactly amount_units of USDC on Base to pay_to, in one transfer from payer_address, before expires_at"},{"step":"proof","send":["quote_id","tx_hash"],"answer":"the run's answer with a payment block","pending":["payment_not_seen_yet","payment_pending","run_in_progress"],"replay":"the same quote_id and tx_hash return the stored answer for 24 hours (replayed: true), no new charge"}],"quote_ttl_seconds":600,"refund":{"failed_run":"100% automatic, to the paying address only","states":["approved_waiting_settlement","sent","confirmed","held_for_review"],"status":"https://agentconcierge.biz/api/necklaces/payments/{quote_id}"},"errors":[{"code":"payer_address_required","http_status":402,"step":"quote"},{"code":"invalid_payer_address","http_status":422,"step":"quote"},{"code":"payer_address_checksum","http_status":422,"step":"quote"},{"code":"payer_address_is_zero","http_status":422,"step":"quote"},{"code":"payer_address_is_pay_to","http_status":422,"step":"quote"},{"code":"payer_address_is_token_contract","http_status":422,"step":"quote"},{"code":"payer_address_is_ours","http_status":422,"step":"quote"},{"code":"payer_address_placeholder","http_status":422,"step":"quote"},{"code":"too_many_open_quotes","http_status":429,"step":"quote"},{"code":"too_many_open_quotes_for_payer","http_status":429,"step":"quote"},{"code":"invalid_payment","http_status":422,"step":"any"},{"code":"paid_runs_paused","http_status":503,"step":"any"},{"code":"paid_runs_unavailable","http_status":503,"step":"any"},{"code":"necklace_unavailable","http_status":503,"step":"any"},{"code":"definition_changed","http_status":409,"step":"any"},{"code":"rate_limited","http_status":429,"step":"any"},{"code":"payment_required","http_status":402,"step":"quote"},{"code":"payment_not_seen_yet","http_status":409,"step":"proof"},{"code":"payment_pending","http_status":202,"step":"proof"},{"code":"run_in_progress","http_status":202,"step":"proof"},{"code":"payment_older_than_quote","http_status":409,"step":"proof"},{"code":"amount_matches_another_quote","http_status":409,"step":"proof"},{"code":"payer_mismatch","http_status":409,"step":"proof"},{"code":"payment_already_used","http_status":409,"step":"proof"},{"code":"quote_expired","http_status":409,"step":"proof"},{"code":"quote_for_another_necklace","http_status":409,"step":"proof"},{"code":"inputs_mismatch","http_status":409,"step":"proof"},{"code":"invalid_tx_hash","http_status":422,"step":"proof"},{"code":"unknown_payment","http_status":404,"step":"proof"},{"code":"payment_not_confirmed","http_status":409,"step":"proof"},{"code":"payment_in_review","http_status":409,"step":"proof"},{"code":"payment_not_usable","http_status":409,"step":"proof"},{"code":"run_not_delivered","http_status":409,"step":"proof"},{"code":"result_not_stored","http_status":200,"step":"proof"},{"code":"x402_payment_malformed","http_status":400,"step":"proof"},{"code":"x402_payment_invalid","http_status":402,"step":"proof"},{"code":"x402_settlement_unavailable","http_status":503,"step":"proof"},{"code":"x402_payment_used","http_status":409,"step":"proof"},{"code":"x402_payment_refused","http_status":403,"step":"proof"}],"terms":"https://agentconcierge.biz/agents/earn","terms_notice":"Paying for a run accepts the necklace terms at https://agentconcierge.biz/terms","words":{"price_label":"Price","price":"0.01 USDC per slot","unit":"slot","free":"No free quota","refund_failed":"A failed run is refunded 100% automatically","refund_satisfaction":"A satisfaction refund within the review window keeps a 2.5% escrow fee (review window: 15 minutes on a web page, 5 minutes for program calls through MCP, A2A or REST)","refund_to":"Refunds go only to the paying address"},"x402_gateway":{"path":"https://agentconcierge.biz/api/gateway/x402/{resource_id}","mode":"inspection only: it shows the provider's x402 payment requirements; we never sign, pay or settle"}}}},"/api/necklaces/payments/{quote_id}":{"get":{"operationId":"getNecklacePayment","summary":"State of a paid necklace run: payment, review window, refund and its transfer","description":"States: quoted, confirming, paid, running, delivered, settling, finalized, refund_due, refunded. While a refund waits, refund_sends_after and refund_expected_by say when it leaves: once the payment is final on Base (at most 1,200 blocks, about 40 minutes after confirmation).","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The payment state","content":{"application/json":{"schema":{"type":"object","required":["ok","payment"],"properties":{"ok":{"type":"boolean"},"payment":{"type":"object","properties":{"quote_id":{"type":"string"},"necklace":{"type":"string"},"state":{"type":"string"},"amount_units":{"type":"string"},"amount_usdc":{"type":"string"},"pay_to":{"type":"string"},"review_until":{"type":["string","null"]},"refund_kind":{"type":["string","null"]},"refund_units":{"type":["string","null"]},"fee_units":{"type":["string","null"]},"refund_state":{"type":"string"},"refund_tx_hash":{"type":["string","null"]},"refund_transfer_state":{"type":["string","null"]},"refund_sends_after":{"type":"string"},"refund_expected_by":{"type":"string"},"settles_after":{"type":"string"},"settle_expected_by":{"type":"string"}}}}}}}},"404":{"description":"unknown_payment: no such quote","content":{"application/json":{"schema":{"type":"object","required":["ok","error_code"],"properties":{"ok":{"type":"boolean"},"error_code":{"type":"string"},"field":{"type":"string"},"expected":{"type":"string"}}}}}}}}},"/api/necklaces/payments/{quote_id}/accept":{"post":{"operationId":"acceptNecklaceResult","summary":"Accept a delivered result before the review window ends","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tx_hash"],"properties":{"tx_hash":{"type":"string","pattern":"^(0x)?[0-9a-fA-F]{64}$","description":"The hash of the USDC transfer that paid this quote."},"signature":{"type":"string","pattern":"^(0x)?[0-9a-fA-F]{130}$","description":"Optional: personal_sign by the paying address over \"AgentValCon necklace accept <quote_id>\" or \"AgentValCon necklace refund <quote_id>\"; with it the transaction hash alone is not enough to act."}}}}}},"responses":{"200":{"description":"Accepted; the payment settles","content":{"application/json":{"schema":{"type":"object","required":["ok","payment"],"properties":{"ok":{"type":"boolean"},"payment":{"type":"object","properties":{"quote_id":{"type":"string"},"necklace":{"type":"string"},"state":{"type":"string"},"amount_units":{"type":"string"},"amount_usdc":{"type":"string"},"pay_to":{"type":"string"},"review_until":{"type":["string","null"]},"refund_kind":{"type":["string","null"]},"refund_units":{"type":["string","null"]},"fee_units":{"type":["string","null"]},"refund_state":{"type":"string"},"refund_tx_hash":{"type":["string","null"]},"refund_transfer_state":{"type":["string","null"]},"refund_sends_after":{"type":"string"},"refund_expected_by":{"type":"string"},"settles_after":{"type":"string"},"settle_expected_by":{"type":"string"}}}}}}}},"404":{"description":"unknown_payment: no such quote","content":{"application/json":{"schema":{"type":"object","required":["ok","error_code"],"properties":{"ok":{"type":"boolean"},"error_code":{"type":"string"},"field":{"type":"string"},"expected":{"type":"string"}}}}}},"409":{"description":"The payment is past the state this call needs (for example accepted, or outside the review window)","content":{"application/json":{"schema":{"type":"object","required":["ok","error_code"],"properties":{"ok":{"type":"boolean"},"error_code":{"type":"string"},"field":{"type":"string"},"expected":{"type":"string"}}}}}},"422":{"description":"invalid_tx_hash or invalid_signature_format, with \"field\" and \"expected\"","content":{"application/json":{"schema":{"type":"object","required":["ok","error_code"],"properties":{"ok":{"type":"boolean"},"error_code":{"type":"string"},"field":{"type":"string"},"expected":{"type":"string"}}}}}}}}},"/api/necklaces/payments/{quote_id}/refund":{"post":{"operationId":"refundNecklaceResult","summary":"Ask for a satisfaction refund within the review window","description":"The escrow fee (2.5%, at least 0.0005 USDC) is kept and the rest of the amount paid, the quote tail included, goes back to the paying address from the payout wallet once the payment is final. A run that failed is refunded in full without this call. Review window: 300 s for a program, longer for the web page.","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tx_hash"],"properties":{"tx_hash":{"type":"string","pattern":"^(0x)?[0-9a-fA-F]{64}$","description":"The hash of the USDC transfer that paid this quote."},"signature":{"type":"string","pattern":"^(0x)?[0-9a-fA-F]{130}$","description":"Optional: personal_sign by the paying address over \"AgentValCon necklace accept <quote_id>\" or \"AgentValCon necklace refund <quote_id>\"; with it the transaction hash alone is not enough to act."}}}}}},"responses":{"200":{"description":"Refund approved (refund_due); see refund_state and refund_sends_after","content":{"application/json":{"schema":{"type":"object","required":["ok","payment"],"properties":{"ok":{"type":"boolean"},"payment":{"type":"object","properties":{"quote_id":{"type":"string"},"necklace":{"type":"string"},"state":{"type":"string"},"amount_units":{"type":"string"},"amount_usdc":{"type":"string"},"pay_to":{"type":"string"},"review_until":{"type":["string","null"]},"refund_kind":{"type":["string","null"]},"refund_units":{"type":["string","null"]},"fee_units":{"type":["string","null"]},"refund_state":{"type":"string"},"refund_tx_hash":{"type":["string","null"]},"refund_transfer_state":{"type":["string","null"]},"refund_sends_after":{"type":"string"},"refund_expected_by":{"type":"string"},"settles_after":{"type":"string"},"settle_expected_by":{"type":"string"}}}}}}}},"404":{"description":"unknown_payment: no such quote","content":{"application/json":{"schema":{"type":"object","required":["ok","error_code"],"properties":{"ok":{"type":"boolean"},"error_code":{"type":"string"},"field":{"type":"string"},"expected":{"type":"string"}}}}}},"409":{"description":"The payment is past the state this call needs (for example accepted, or outside the review window)","content":{"application/json":{"schema":{"type":"object","required":["ok","error_code"],"properties":{"ok":{"type":"boolean"},"error_code":{"type":"string"},"field":{"type":"string"},"expected":{"type":"string"}}}}}},"422":{"description":"invalid_tx_hash or invalid_signature_format, with \"field\" and \"expected\"","content":{"application/json":{"schema":{"type":"object","required":["ok","error_code"],"properties":{"ok":{"type":"boolean"},"error_code":{"type":"string"},"field":{"type":"string"},"expected":{"type":"string"}}}}}}}}},"/api/wallet/v1/challenge":{"post":{"operationId":"walletSignInChallenge","summary":"Wallet sign-in, challenge: read the paid Pearl Necklace runs your own wallet paid for","description":"Sign a server-made EIP-4361 message (EIP-191 personal_sign) with the wallet that paid; read-only, 15 minutes, not renewable.","security":[],"responses":{"200":{"description":"challenge_id, message, expires_at","content":{"application/json":{"schema":{"type":"object","properties":{"challenge_id":{},"message":{},"expires_at":{}}}}}},"400":{"description":"invalid_payer_address: address is not 0x and 40 hex characters; payer_address_checksum: mixed-case address with a wrong EIP-55 checksum"},"404":{"description":"not_found: paid runs are switched off"},"429":{"description":"rate_limited: over a limit; Retry-After says when to come back (never a block)"},"503":{"description":"wallet_signin_unavailable: the one-time store or the server secret is not available"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["address"],"additionalProperties":false,"properties":{"address":{"type":"string","description":"0x..."}}}}}}}},"/api/wallet/v1/session":{"post":{"operationId":"walletSignInSession","summary":"Wallet sign-in, session: read the paid Pearl Necklace runs your own wallet paid for","description":"Sign a server-made EIP-4361 message (EIP-191 personal_sign) with the wallet that paid; read-only, 15 minutes, not renewable.","security":[],"responses":{"200":{"description":"token, expires_at, scope","content":{"application/json":{"schema":{"type":"object","properties":{"token":{},"expires_at":{},"scope":{}}}}}},"400":{"description":"invalid_request: body other than challenge_id and signature"},"401":{"description":"challenge_expired: unknown, used or expired challenge: ask for a new one; signature_mismatch: the signature is not a canonical personal_sign of the message by the address"},"404":{"description":"not_found: paid runs are switched off"},"429":{"description":"rate_limited: over a limit; Retry-After says when to come back (never a block)"},"503":{"description":"wallet_signin_unavailable: the one-time store or the server secret is not available"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["challenge_id","signature"],"additionalProperties":false,"properties":{"challenge_id":{"type":"string","description":"wch_<32 hex>"},"signature":{"type":"string","description":"0x<130 hex>"}}}}}}}},"/api/wallet/v1/payments":{"get":{"operationId":"walletSignInPayments","summary":"Wallet sign-in, payments: read the paid Pearl Necklace runs your own wallet paid for","description":"Sign a server-made EIP-4361 message (EIP-191 personal_sign) with the wallet that paid; read-only, 15 minutes, not renewable.","security":[{"walletSession":[]}],"responses":{"200":{"description":"address, as_of, payments, next_cursor","content":{"application/json":{"schema":{"type":"object","properties":{"address":{},"as_of":{},"payments":{"type":"array","items":{"type":"object","properties":{"quote_id":{},"necklace":{},"version":{},"steps":{},"amount_usdc":{},"amount_atoms":{},"state":{},"tx_hash":{},"quoted_at":{},"paid_at":{},"delivered_at":{},"review_until":{},"refund":{},"status_url":{}}}},"next_cursor":{}}}}}},"400":{"description":"invalid_cursor: cursor is not the next_cursor of the previous page"},"401":{"description":"session_required: no, invalid or expired Bearer token: sign in again"},"404":{"description":"not_found: paid runs are switched off"},"429":{"description":"rate_limited: over a limit; Retry-After says when to come back (never a block)"},"503":{"description":"paid_runs_unavailable: the paid-run ledger is not available"}},"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"optional"}]}}},"components":{"schemas":{"SponsoredOrder":{"type":"object","additionalProperties":false,"required":["name","text","url","category","region"],"oneOf":[{"required":["day"]},{"required":["budget_usdc"]},{"required":["impressions"]},{"required":["clicks"]}],"properties":{"name":{"type":"string","minLength":2,"maxLength":80,"description":"The advertiser name shown."},"text":{"type":"string","minLength":1,"maxLength":120,"description":"One plain line agents read. No link, no instruction to the agent, no rank claim."},"url":{"type":"string","pattern":"^https://","description":"The offer endpoint (the link). Most offers are approved automatically and quoted at once; a person reviews only when the domain is younger than 30 days, the endpoint is not a public https address, its host is blocklisted, the text has a refused word, or it is a catalog agent under security review. We never call it or send it anything."},"category":{"type":"string","enum":["agent_infra","ai_models","commerce_marketing","communication_messaging","data_utility","database_analytics","dev_tools","docs_knowledge","education_culture","media_generation","network_ops","productivity","security","social","travel_maps_weather","web_search"]},"region":{"type":"string","enum":["US","KR","JP","GB","DE","ALL"],"description":"ALL (every region) only with impressions or clicks."},"day":{"type":"string","format":"date","description":"UTC day, from today (while an hour is left; today costs the hours left) up to 30 days ahead."},"budget_usdc":{"type":"number","minimum":10,"maximum":300,"description":"Instead of day: one plan of 5 USDC placements."},"impressions":{"type":"integer","minimum":100,"maximum":100000,"description":"Instead of day or budget: a pack of showings at 0.005 USDC each (100 = 0.5 USDC). Shown wherever nobody bought the day, in this category and region, until used; what is not shown within 60 days is refunded by hand by an operator to the wallet that paid."},"clicks":{"type":"integer","minimum":20,"maximum":10000,"description":"Instead of day, budget or impressions: a pack of checked visits at 0.05 USDC each (20 = 1 USDC) from sponsored links in MCP, A2A and REST answers, where nobody bought the day. Only a visit that passes our person check is charged. Visits not used within 60 days plus a 30-day check are refunded by hand."},"placements":{"type":"array","items":{"type":"string","enum":["explore","chat","mcp","a2a","rest"]},"uniqueItems":true,"minItems":1,"description":"With impressions: explore and/or chat (default both). With clicks: mcp, a2a and/or rest (default all three)."}}},"AdCoinError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"},"retryable":{"type":"boolean"},"recovery":{"type":"object"}}}}},"NecklacePaymentRequired":{"type":"object","required":["payment_required"],"properties":{"payment_required":{"type":"object","required":["quote_id","amount_usdc","pay_to","chain_id","token_symbol","expires_at"],"properties":{"quote_id":{"type":"string"},"necklace":{"type":"string"},"amount_usdc":{"type":"string"},"amount_units":{"type":"string"},"token_symbol":{"const":"USDC"},"token_decimals":{"const":6},"network":{"const":"Base"},"chain_id":{"const":8453},"pay_to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"payer_address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"expires_at":{"type":"string","format":"date-time"},"slots":{"type":"integer"},"price_usdc_per_slot":{"const":"0.01"},"how_to_continue":{"type":"object"}}}}},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"NecklacePayment":{"type":"object","additionalProperties":false,"properties":{"payer_address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"The wallet that will send the USDC; required to get a quote."},"quote_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"tx_hash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}}},"securitySchemes":{"visitorToken":{"type":"apiKey","in":"header","name":"X-Visitor-Token","description":"Optional. Returned by the first conversation or discovery answer; it only keeps your saved context. Every operation works without it, and nothing here needs a password, key or login."},"walletSession":{"type":"http","scheme":"bearer","bearerFormat":"AgentValCon wallet session (w1)","description":"Sign a server-made EIP-4361 message (EIP-191 personal_sign) with the wallet that paid; read-only, 15 minutes, not renewable."}}}}