{"openapi":"3.1.0","info":{"title":"Searchedly Public API","version":"1.0.0","description":"Manage Searchedly from your own code or an authorized AI agent: read visibility, prompts, competitors, audits, Agent Readiness, hosted MCP servers, agent activity and analytics; start audits and assessments; create tasks; and receive webhooks.\n\nAuthenticate with an API key from Settings → API keys: `Authorization: Bearer sapi_…`. A key belongs to one organization, acts for the person who created it, and can only do what both its scopes and that person's current role allow.\n\nPOST requests accept an `Idempotency-Key` header; a retry with the same key and body returns the first response (marked `Idempotent-Replayed: true`) for 24 hours.\n\nErrors use RFC 9457 problem details (application/problem+json) with `type`, `title`, `status` and `detail`.\n\nSearchedly measures AI answers; it can't guarantee AI rankings, citations, indexing or recommendations.","x-docs-url":"https://searchedly.com/developers/api"},"servers":[{"url":"https://api.searchedly.com"}],"tags":[{"name":"Organization"},{"name":"Visibility"},{"name":"Prompts"},{"name":"Competitors"},{"name":"Audits"},{"name":"Agent readiness"},{"name":"Optimization tasks"},{"name":"MCP servers"},{"name":"Agent activity"},{"name":"Analytics"},{"name":"Webhooks"},{"name":"Agent sign-ups"},{"name":"Agent checkouts"},{"name":"Account setup"},{"name":"Reporting"}],"paths":{"/api/v1/organizations":{"get":{"operationId":"listOrganizations","tags":["Organization"],"summary":"List organizations","description":"The organizations the caller can use. An API key belongs to exactly one organization, so it lists that one.\n\nScope: `organization:read` (Read the organization's name, plan and domain.)","x-searchedly-scope":"organization:read","x-mcp-tool":"list_organizations","security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"organizations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string"},"plan":{"type":"string"}},"required":["id","name","slug","role","plan"],"additionalProperties":{}}}},"required":["organizations"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `organization:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}":{"get":{"operationId":"getOrganization","tags":["Organization"],"summary":"Get an organization","description":"The organization's name, plan and domain, and the caller's role in it.\n\nScope: `organization:read` (Read the organization's name, plan and domain.)","x-searchedly-scope":"organization:read","x-mcp-tool":"get_organization","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"plan":{"type":"string"},"primaryDomain":{"type":["string","null"]}},"required":["id","name","slug","plan","primaryDomain"],"additionalProperties":{}},"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}},"required":["organization","role","permissions"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `organization:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/visibility":{"get":{"operationId":"getVisibility","tags":["Visibility"],"summary":"Get AI visibility","description":"Mention, recommendation, citation and share-of-voice rates over a date range, measured from tracked prompts. Scores describe observed answers; they aren't a guarantee of future rankings or citations.\n\nScope: `visibility:read` (Read AI visibility scores and the answers behind them.)","x-searchedly-scope":"visibility:read","x-mcp-tool":"get_visibility","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"days","in":"query","required":false,"description":"The last N days, ending today (UTC). Default 30.","schema":{"type":"integer","minimum":1,"maximum":366}},{"name":"from","in":"query","required":false,"description":"First day, YYYY-MM-DD (UTC).","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"description":"Last day, YYYY-MM-DD (UTC).","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"provider","in":"query","required":false,"description":"Only answers from this AI provider.","schema":{"type":"string","enum":["dataforseo_chatgpt","dataforseo_claude","dataforseo_gemini","dataforseo_perplexity","dataforseo_google_ai_mode","openai_web_search","perplexity_agent"]}},{"name":"intent","in":"query","required":false,"description":"Only prompts with this intent.","schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `visibility:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/visibility/answers":{"get":{"operationId":"listVisibilityAnswers","tags":["Visibility"],"summary":"List the answers behind a score","description":"The AI answers counted in a visibility number, 25 per page.\n\nScope: `visibility:read` (Read AI visibility scores and the answers behind them.)","x-searchedly-scope":"visibility:read","x-mcp-tool":"list_visibility_answers","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"days","in":"query","required":false,"description":"The last N days, ending today (UTC). Default 30.","schema":{"type":"integer","minimum":1,"maximum":366}},{"name":"from","in":"query","required":false,"description":"First day, YYYY-MM-DD (UTC).","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"description":"Last day, YYYY-MM-DD (UTC).","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"provider","in":"query","required":false,"description":"Only answers from this AI provider.","schema":{"type":"string","enum":["dataforseo_chatgpt","dataforseo_claude","dataforseo_gemini","dataforseo_perplexity","dataforseo_google_ai_mode","openai_web_search","perplexity_agent"]}},{"name":"intent","in":"query","required":false,"description":"Only prompts with this intent.","schema":{"type":"string","maxLength":40}},{"name":"metric","in":"query","required":false,"description":"Which number to explain. Default discovery.","schema":{"type":"string","enum":["discovery","recommendation","citation","share_of_voice","sentiment","domain"]}},{"name":"entity","in":"query","required":false,"description":"\"brand\" (default) or a competitor name.","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"result","in":"query","required":false,"description":"hit: answers that mention you; miss: answers that don't. Default all.","schema":{"type":"string","enum":["all","hit","miss"]}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"maximum":10000}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `visibility:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/prompts":{"get":{"operationId":"listPrompts","tags":["Prompts"],"summary":"List prompts","description":"Every prompt in the library, with whether it's tracked, and the plan's tracked-prompt limit.\n\nScope: `prompts:read` (Read the prompts you track.)","x-searchedly-scope":"prompts:read","x-mcp-tool":"list_prompts","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"prompts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string"}},"required":["id","text"],"additionalProperties":{}}},"counts":{"type":"object","properties":{},"additionalProperties":{}}},"required":["prompts","counts"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `prompts:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}},"post":{"operationId":"createPrompt","tags":["Prompts"],"summary":"Add a prompt","description":"Adds a prompt a buyer might ask an AI assistant. Near-duplicates are refused unless `force` is true.\n\nScope: `prompts:write` (Add prompts to the library.)","x-searchedly-scope":"prompts:write","x-mcp-tool":"add_prompt","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300,"description":"The question, as a buyer would ask it."},"intent":{"type":"string","enum":["category_discovery","best_of","comparison","alternatives","problem_solution","features","integrations","agent_capabilities","purchase_intent"]},"topic":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"priority":{"type":"string","enum":["high","medium","low"]},"track":{"description":"Include it in visibility checks. Default true while under the limit.","type":"boolean"},"force":{"description":"Add it even if a similar prompt exists.","type":"boolean"}},"required":["text","intent"]}}}},"responses":{"201":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string"}},"required":["id","text"],"additionalProperties":{}}},"required":["prompt"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `prompts:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/competitors":{"get":{"operationId":"getCompetitors","tags":["Competitors"],"summary":"Get the competitor report","description":"Products AI assistants mention alongside yours, with share of voice over a date range.\n\nScope: `competitors:read` (Read the competitor report.)","x-searchedly-scope":"competitors:read","x-mcp-tool":"get_competitors","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"days","in":"query","required":false,"description":"The last N days, ending today (UTC). Default 30.","schema":{"type":"integer","minimum":1,"maximum":366}},{"name":"from","in":"query","required":false,"description":"First day, YYYY-MM-DD (UTC).","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"description":"Last day, YYYY-MM-DD (UTC).","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"provider","in":"query","required":false,"description":"Only answers from this AI provider.","schema":{"type":"string","enum":["dataforseo_chatgpt","dataforseo_claude","dataforseo_gemini","dataforseo_perplexity","dataforseo_google_ai_mode","openai_web_search","perplexity_agent"]}},{"name":"intent","in":"query","required":false,"description":"Only prompts with this intent.","schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `competitors:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/technical-audits":{"get":{"operationId":"listAudits","tags":["Audits"],"summary":"List technical audits","description":"Recent technical audits of your website, newest first.\n\nScope: `audits:read` (Read technical audits and their findings.)","x-searchedly-scope":"audits:read","x-mcp-tool":"list_audits","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"description":"Most recent N audits. Default 10.","schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `audits:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}},"post":{"operationId":"startAudit","tags":["Audits"],"summary":"Start a technical audit","description":"Queues an audit of the organization's verified website. Only public pages are read, at a polite rate. Returns 202 while it runs; the audit.completed webhook fires when it finishes.\n\nScope: `audits:write` (Start a technical audit of your website.)","x-searchedly-scope":"audits:write","x-mcp-tool":"start_audit","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"202":{"description":"Accepted; the work runs in the background.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `audits:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/technical-audits/{auditId}":{"get":{"operationId":"getAudit","tags":["Audits"],"summary":"Get a technical audit","description":"One audit with its findings and how to fix each one.\n\nScope: `audits:read` (Read technical audits and their findings.)","x-searchedly-scope":"audits:read","x-mcp-tool":"get_audit","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"auditId","in":"path","required":true,"description":"Audit ID, from listAudits.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `audits:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/agent-readiness":{"get":{"operationId":"getAgentReadiness","tags":["Agent readiness"],"summary":"Get Agent Readiness","description":"The latest Agent Readiness assessment, any running one, and history. Not a certification.\n\nScope: `readiness:read` (Read Agent Readiness assessments.)","x-searchedly-scope":"readiness:read","x-mcp-tool":"get_agent_readiness","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"latest":{},"open":{},"history":{"type":"array","items":{}},"methodVersion":{"type":"string"}},"required":["latest","open","history","methodVersion"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `readiness:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/agent-readiness/{id}":{"get":{"operationId":"getReadinessAssessment","tags":["Agent readiness"],"summary":"Get an assessment","description":"One Agent Readiness assessment with its checks.\n\nScope: `readiness:read` (Read Agent Readiness assessments.)","x-searchedly-scope":"readiness:read","x-mcp-tool":"get_readiness_assessment","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"id","in":"path","required":true,"description":"Assessment ID, from getAgentReadiness.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"}},"required":["id","status"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `readiness:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/agent-readiness/runs":{"post":{"operationId":"startReadinessAssessment","tags":["Agent readiness"],"summary":"Start an assessment","description":"Queues an Agent Readiness assessment of the organization's domain. One runs at a time.\n\nScope: `readiness:write` (Start an Agent Readiness assessment.)","x-searchedly-scope":"readiness:write","x-mcp-tool":"start_readiness_assessment","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"202":{"description":"Accepted; the work runs in the background.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"}},"required":["id","status"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `readiness:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/tasks":{"get":{"operationId":"listOptimizationTasks","tags":["Optimization tasks"],"summary":"List optimization tasks","description":"Tasks in one view (to do by default), with counts for every view.\n\nScope: `tasks:read` (Read optimization tasks.)","x-searchedly-scope":"tasks:read","x-mcp-tool":"list_tasks","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"view","in":"query","required":false,"description":"Which tasks to list, e.g. open or done.","schema":{"type":"string","enum":["todo","approval","verifying","done","dismissed"]}},{"name":"source","in":"query","required":false,"description":"Only tasks from this source.","schema":{"type":"string","enum":["analyst","manual","audit"]}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string"},"view":{"type":"string"},"counts":{"type":"object","properties":{},"additionalProperties":{}},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Assessment ID, from getAgentReadiness."}},"required":["id"],"additionalProperties":{}}}},"required":["mode","view","counts","tasks"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `tasks:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}},"post":{"operationId":"createOptimizationTask","tags":["Optimization tasks"],"summary":"Create a task","description":"Adds a manual optimization task. Nothing is changed on your website.\n\nScope: `tasks:write` (Create optimization tasks.)","x-searchedly-scope":"tasks:write","x-mcp-tool":"create_task","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":4000},"steps":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"priority":{"type":"string","enum":["high","medium","low"]}},"required":["title"]}}}},"responses":{"201":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"task":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":{}}},"required":["task"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `tasks:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/tasks/{taskId}":{"get":{"operationId":"getOptimizationTask","tags":["Optimization tasks"],"summary":"Get a task","description":"One task with its steps and history.\n\nScope: `tasks:read` (Read optimization tasks.)","x-searchedly-scope":"tasks:read","x-mcp-tool":"get_task","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"taskId","in":"path","required":true,"description":"Task ID, from listOptimizationTasks.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string"}},"required":["mode"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `tasks:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/mcp-servers":{"get":{"operationId":"listMcpServers","tags":["MCP servers"],"summary":"List hosted MCP servers","description":"Every tool configuration and whether it's hosted, with status, revision and address.\n\nScope: `mcp:read` (Read hosted MCP servers, their status and analytics.)","x-searchedly-scope":"mcp:read","x-mcp-tool":"list_mcp_servers","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"servers":{"type":"array","items":{"type":"object","properties":{"toolsetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toolsetName":{"type":"string"},"serverId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string"},"url":{"type":["string","null"]},"revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["toolsetId","toolsetName","serverId","status","url","revision"],"additionalProperties":{}}}},"required":["servers"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `mcp:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/toolsets/{toolsetId}/server":{"get":{"operationId":"getMcpServer","tags":["MCP servers"],"summary":"Get a hosted MCP server","description":"Status, revisions, deployments, health and sign-in settings for one configuration's server.\n\nScope: `mcp:read` (Read hosted MCP servers, their status and analytics.)","x-searchedly-scope":"mcp:read","x-mcp-tool":"get_mcp_server","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"toolsetId","in":"path","required":true,"description":"Toolset ID of the server, from listMcpServers.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `mcp:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}},"post":{"operationId":"enableMcpHosting","tags":["MCP servers"],"summary":"Turn on hosting","description":"Creates the hosted MCP server for an approved tool configuration. It serves nothing until a person-approved revision is deployed.\n\nScope: `mcp:write` (Turn on hosting and deploy revisions a person has already approved.)","x-searchedly-scope":"mcp:write","x-mcp-tool":"enable_mcp_hosting","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"toolsetId","in":"path","required":true,"description":"Toolset ID of the server, from listMcpServers.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":48,"description":"Lowercase address segment, e.g. billing."}},"required":["slug"]}}}},"responses":{"201":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `mcp:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/toolsets/{toolsetId}/server/deploy":{"post":{"operationId":"deployMcpServer","tags":["MCP servers"],"summary":"Deploy an approved revision","description":"Serves a revision a person already approved in Searchedly (or rolls back to one). Keys can't approve revisions. Fires mcp_server.deployed, or mcp_server.deploy_failed if it can't be applied.\n\nScope: `mcp:write` (Turn on hosting and deploy revisions a person has already approved.)","x-searchedly-scope":"mcp:write","x-mcp-tool":"deploy_mcp_server","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"toolsetId","in":"path","required":true,"description":"Toolset ID of the server, from listMcpServers.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"approvalId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"An approval ID from GET …/server."}},"required":["approvalId"]}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `mcp:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/toolsets/{toolsetId}/server/analytics":{"get":{"operationId":"getMcpServerAnalytics","tags":["MCP servers"],"summary":"Get server analytics","description":"Calls, failures and latency over the last 24 hours, 7 days or 30 days.\n\nScope: `mcp:read` (Read hosted MCP servers, their status and analytics.)","x-searchedly-scope":"mcp:read","x-mcp-tool":"get_mcp_server_analytics","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"toolsetId","in":"path","required":true,"description":"Toolset ID of the server, from listMcpServers.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"range","in":"query","required":false,"description":"Time window. Default 24h.","schema":{"type":"string","enum":["24h","7d","30d"]}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `mcp:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/agent-activity":{"get":{"operationId":"listAgentActivity","tags":["Agent activity"],"summary":"List agent activity","description":"Tool calls AI agents made to your hosted MCP servers, newest first. Arguments and results aren't stored, so they aren't returned.\n\nScope: `activity:read` (Read calls AI agents made to your hosted MCP servers.)","x-searchedly-scope":"activity:read","x-mcp-tool":"list_agent_activity","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"description":"Default 50.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"before","in":"query","required":false,"description":"Only calls before this time (use the previous page's nextBefore).","schema":{"type":"string"}},{"name":"serverId","in":"query","required":false,"description":"Only calls to this hosted server, from list_mcp_servers.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"calls":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serverId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serverSlug":{"type":["string","null"]},"tool":{"type":"string"},"outcome":{"type":"string"},"signedInWith":{"type":"string"},"client":{"type":["string","null"]},"latencyMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","serverId","serverSlug","tool","outcome","signedInWith","client","latencyMs","at"],"additionalProperties":{}}},"nextBefore":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]}},"required":["calls","nextBefore"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `activity:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/analytics":{"get":{"operationId":"getAnalytics","tags":["Analytics"],"summary":"Get the analytics summary","description":"One summary across products: the latest visibility and readiness scores, hosted MCP calls, directory appearances and plan usage.\n\nScope: `analytics:read` (Read the summary of visibility, readiness and agent usage.)","x-searchedly-scope":"analytics:read","x-mcp-tool":"get_analytics","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"days","in":"query","required":false,"description":"Default 30.","schema":{"type":"integer","minimum":1,"maximum":90}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"visibility":{"type":"object","properties":{},"additionalProperties":{}},"readiness":{"type":"object","properties":{"score":{"type":["number","null"]},"assessedAt":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]}},"required":["score","assessedAt"],"additionalProperties":{}},"mcp":{"type":"object","properties":{"servers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"calls":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["servers","calls","failures"],"additionalProperties":{}},"directory":{"type":"object","properties":{"appearances":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lookups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["appearances","lookups"],"additionalProperties":{}},"usage":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string"},"used":{"type":"number"},"limit":{"type":["number","null"]}},"required":["meter","used","limit"],"additionalProperties":{}}}},"required":["days","visibility","readiness","mcp","directory","usage"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `analytics:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/webhook-events":{"get":{"operationId":"listWebhookEventTypes","tags":["Webhooks"],"summary":"List webhook event types","description":"Every event you can subscribe to, with a description.\n\nScope: `webhooks:read` (Read webhook endpoints and event types.)","x-searchedly-scope":"webhooks:read","x-mcp-tool":"list_webhook_event_types","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"}},"required":["type","label","description"],"additionalProperties":{}}}},"required":["events"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/webhook-endpoints":{"get":{"operationId":"listWebhookEndpoints","tags":["Webhooks"],"summary":"List webhook endpoints","description":"Your endpoints, their events and delivery health. Signing secrets are never returned here.\n\nScope: `webhooks:read` (Read webhook endpoints and event types.)","x-searchedly-scope":"webhooks:read","x-mcp-tool":"list_webhook_endpoints","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}}},"required":["id","url","events"],"additionalProperties":{}}}},"required":["endpoints"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}},"post":{"operationId":"createWebhookEndpoint","tags":["Webhooks"],"summary":"Add a webhook endpoint","description":"Adds an HTTPS endpoint. The response holds the signing secret once; store it and verify every delivery's signature (Standard Webhooks) and timestamp.\n\nScope: `webhooks:write` (Add webhook endpoints and send test events.)","x-searchedly-scope":"webhooks:write","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2000,"description":"https:// address that accepts POST."},"description":{"type":"string","maxLength":200},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["visibility.changed","competitor.discovered","citation.gained","tracking_run.completed","tracking_run.skipped","audit.completed","optimization_task.completed","mcp_server.health_changed","mcp_server.rollout_stopped","mcp_server.deployed","mcp_server.deploy_failed","agent.registered","agent_registration.approved","agent_checkout.completed","agent_credential.claimed","agent_credential.revoke_requested","subscription.purchased","usage.threshold_reached"]}}},"required":["url","events"]}}}},"responses":{"201":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"}},"required":["id","url"],"additionalProperties":{}},"secret":{"type":"string"}},"required":["endpoint","secret"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/webhook-endpoints/{endpointId}/test":{"post":{"operationId":"sendTestWebhook","tags":["Webhooks"],"summary":"Send a test event","description":"Queues a webhook.test event to one endpoint.\n\nScope: `webhooks:write` (Add webhook endpoints and send test events.)","x-searchedly-scope":"webhooks:write","x-mcp-tool":"send_test_webhook","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"endpointId","in":"path","required":true,"description":"Endpoint ID, from listWebhookEndpoints.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"202":{"description":"Accepted; the work runs in the background.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `webhooks:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/storefront/registrations":{"get":{"operationId":"listAgentRegistrations","tags":["Agent sign-ups"],"summary":"List agent sign-ups","description":"Sign-up requests agents made for your free business plans, newest first. Contact details appear only after a person approved sharing them.\n\nScope: `registrations:read` (Read agent sign-ups people approved for your free plans, including the approver's contact details.)","x-searchedly-scope":"registrations:read","x-mcp-tool":"list_agent_registrations","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"before","in":"query","required":false,"description":"Only sign-ups created before this time.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending_approval","approved","provisioned","failed","denied","expired","canceled"]}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"registrations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending_approval","approved","provisioned","failed","denied","expired","canceled"]},"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":{}},"accountName":{"type":"string"},"createdAt":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","status","plan","accountName","createdAt"],"additionalProperties":{}}}},"required":["registrations"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `registrations:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/agent-registrations/{id}/complete":{"post":{"operationId":"completeAgentRegistration","tags":["Agent sign-ups"],"summary":"Confirm an approved sign-up","description":"Tell Searchedly whether you created the account for an approved sign-up. Answer once, within the confirm_by time in the agent_registration.approved webhook. Repeating the same answer is safe.\n\nScope: `registrations:write` (Tell Searchedly whether you created the account for an approved agent sign-up.)","x-searchedly-scope":"registrations:write","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"id","in":"path","required":true,"description":"Registration ID, from the agent_registration.approved webhook.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["provisioned","failed"]},"accountUrl":{"description":"Where the person signs in. https on your verified domain.","anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"message":{"description":"Shown to the person when the outcome is failed.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"entitlements":{"type":"object","properties":{"plan":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"seats":{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"null"}]},"limits":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"value":{"anyOf":[{"type":"string","maxLength":120},{"type":"number"}]}},"required":["label","value"]}},"features":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":120}}},"description":"What you set up, as you'd describe it to the customer. Shown as reported by you."},"credential":{"type":"object","properties":{"type":{"type":"string","enum":["api_key","bearer_token"]},"value":{"type":"string","minLength":16,"maxLength":4096,"description":"The key or token. Sealed for the buyer's workspace; never shown to you again or in any list."},"header":{"description":"Header the agent sends it in. Defaults to Authorization.","type":"string","maxLength":64},"scopes":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"string","maxLength":100},{"type":"object","properties":{"name":{"type":"string","maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["name"]}]},"description":"Specific permissions. Full-access scopes such as * or admin are refused."},"expiresAt":{"type":"string","description":"When it stops working: between 24 hours and 90 days from now."},"docsUrl":{"description":"API docs, https on your verified domain.","anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]}},"required":["type","value","scopes","expiresAt"],"description":"Optional. Needs the agent_credential_handoff launch switch and an endpoint subscribed to agent_credential.revoke_requested."}},"required":["outcome"]}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"registration":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending_approval","approved","provisioned","failed","denied","expired","canceled"]}},"required":["id","status"],"additionalProperties":{}},"provisioning":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["registration","checkout"]},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["awaiting_merchant","provisioned","failed"]},"confirmBy":{"type":"string","description":"ISO 8601 timestamp"},"credential":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["none","awaiting_release","released","claimed","declined","expired","revoked"]},"hint":{"type":"string"},"expiresAt":{"type":"string","description":"ISO 8601 timestamp"}},"required":["status","hint","expiresAt"],"additionalProperties":{}},{"type":"null"}]}},"required":["id","source","sessionId","status","confirmBy","credential"],"additionalProperties":{}},{"type":"null"}]}},"required":["registration","provisioning"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `registrations:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/storefront/checkouts":{"get":{"operationId":"listAgentCheckouts","tags":["Agent checkouts"],"summary":"List agent checkouts","description":"Purchases agents asked for on your plans, newest first. A person approved each one and paid on Stripe's page on your own Stripe account. Contact details appear only after approval.\n\nScope: `checkouts:read` (Read paid agent checkouts for your plans, including the buyer's contact details and Stripe IDs.)","x-searchedly-scope":"checkouts:read","x-mcp-tool":"list_agent_checkouts","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"before","in":"query","required":false,"description":"Only checkouts created before this time.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending_approval","approved","awaiting_payment","paid","failed","denied","expired","canceled"]}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"checkouts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending_approval","approved","awaiting_payment","paid","failed","denied","expired","canceled"]},"mode":{"type":"string","enum":["test","live"]},"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","quantity"],"additionalProperties":{}},"amount":{"type":"object","properties":{"currency":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"display":{"type":"string"}},"required":["currency","total","display"],"additionalProperties":{}},"createdAt":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","status","mode","plan","amount","createdAt"],"additionalProperties":{}}}},"required":["checkouts"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `checkouts:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/agent-checkouts/{id}/complete":{"post":{"operationId":"completeAgentCheckout","tags":["Agent checkouts"],"summary":"Confirm the account for a paid checkout","description":"Tell Searchedly whether you set up the account after a paid agent checkout, within the confirm_by time in the agent_checkout.completed webhook. You may report what you set up and offer a scoped credential for the agent; a person in the buyer's workspace must release it before the agent can collect it. Repeating the same answer is safe.\n\nScope: `checkouts:write` (Tell Searchedly whether you set up the account for a paid agent checkout.)","x-searchedly-scope":"checkouts:write","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"id","in":"path","required":true,"description":"Checkout ID, from the agent_checkout.completed webhook.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["provisioned","failed"]},"accountUrl":{"description":"Where the person signs in. https on your verified domain.","anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"message":{"description":"Shown to the person when the outcome is failed.","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"entitlements":{"type":"object","properties":{"plan":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"seats":{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"null"}]},"limits":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"value":{"anyOf":[{"type":"string","maxLength":120},{"type":"number"}]}},"required":["label","value"]}},"features":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":120}}},"description":"What you set up, as you'd describe it to the customer. Shown as reported by you."},"credential":{"type":"object","properties":{"type":{"type":"string","enum":["api_key","bearer_token"]},"value":{"type":"string","minLength":16,"maxLength":4096,"description":"The key or token. Sealed for the buyer's workspace; never shown to you again or in any list."},"header":{"description":"Header the agent sends it in. Defaults to Authorization.","type":"string","maxLength":64},"scopes":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"string","maxLength":100},{"type":"object","properties":{"name":{"type":"string","maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["name"]}]},"description":"Specific permissions. Full-access scopes such as * or admin are refused."},"expiresAt":{"type":"string","description":"When it stops working: between 24 hours and 90 days from now."},"docsUrl":{"description":"API docs, https on your verified domain.","anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]}},"required":["type","value","scopes","expiresAt"],"description":"Optional. Needs the agent_credential_handoff launch switch and an endpoint subscribed to agent_credential.revoke_requested."}},"required":["outcome"]}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"provisioning":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["registration","checkout"]},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["awaiting_merchant","provisioned","failed"]},"confirmBy":{"type":"string","description":"ISO 8601 timestamp"},"credential":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["none","awaiting_release","released","claimed","declined","expired","revoked"]},"hint":{"type":"string"},"expiresAt":{"type":"string","description":"ISO 8601 timestamp"}},"required":["status","hint","expiresAt"],"additionalProperties":{}},{"type":"null"}]}},"required":["id","source","sessionId","status","confirmBy","credential"],"additionalProperties":{}}},"required":["provisioning"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `checkouts:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/agent-provisioning":{"get":{"operationId":"listAgentProvisionings","tags":["Account setup"],"summary":"List account setups","description":"Accounts you were asked to set up after approved agent sign-ups and paid agent checkouts, newest first, with the status of any credential you offered. Never includes credential values.\n\nScope: `provisioning:read` (Read the setup record and shared history for accounts you set up after agent sign-ups and purchases.)","x-searchedly-scope":"provisioning:read","x-mcp-tool":"list_agent_provisionings","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"before","in":"query","required":false,"description":"Only records created before this time.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["awaiting_merchant","provisioned","failed"]}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"provisionings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["registration","checkout"]},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["awaiting_merchant","provisioned","failed"]},"confirmBy":{"type":"string","description":"ISO 8601 timestamp"},"credential":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["none","awaiting_release","released","claimed","declined","expired","revoked"]},"hint":{"type":"string"},"expiresAt":{"type":"string","description":"ISO 8601 timestamp"}},"required":["status","hint","expiresAt"],"additionalProperties":{}},{"type":"null"}]}},"required":["id","source","sessionId","status","confirmBy","credential"],"additionalProperties":{}}}},"required":["provisionings"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `provisioning:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/agent-provisioning/{id}":{"get":{"operationId":"getAgentProvisioning","tags":["Account setup"],"summary":"Get an account setup and its history","description":"One account setup with the shared history both sides see: the agent's request, the person's approval, your answer and every credential step.\n\nScope: `provisioning:read` (Read the setup record and shared history for accounts you set up after agent sign-ups and purchases.)","x-searchedly-scope":"provisioning:read","x-mcp-tool":"get_agent_provisioning","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"id","in":"path","required":true,"description":"Provisioning ID, from the webhook.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"provisioning":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["registration","checkout"]},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["awaiting_merchant","provisioned","failed"]},"confirmBy":{"type":"string","description":"ISO 8601 timestamp"},"credential":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["none","awaiting_release","released","claimed","declined","expired","revoked"]},"hint":{"type":"string"},"expiresAt":{"type":"string","description":"ISO 8601 timestamp"}},"required":["status","hint","expiresAt"],"additionalProperties":{}},{"type":"null"}]},"timeline":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","enum":["request","setup"]},"type":{"type":"string"},"at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["stage","type","at"],"additionalProperties":{}}}},"required":["id","source","sessionId","status","confirmBy","credential","timeline"],"additionalProperties":{}}},"required":["provisioning"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `provisioning:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/agent-provisioning/{id}/credential-revoked":{"post":{"operationId":"confirmAgentCredentialRevoked","tags":["Account setup"],"summary":"Confirm a credential is switched off","description":"After an agent_credential.revoke_requested webhook, confirm you switched the credential off. Recorded in the shared history. Repeating it is safe.\n\nScope: `provisioning:write` (Tell Searchedly you switched off a credential you offered to an agent.)","x-searchedly-scope":"provisioning:write","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"id","in":"path","required":true,"description":"Provisioning ID, from the webhook.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"provisioning":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["registration","checkout"]},"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["awaiting_merchant","provisioned","failed"]},"confirmBy":{"type":"string","description":"ISO 8601 timestamp"},"credential":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["none","awaiting_release","released","claimed","declined","expired","revoked"]},"hint":{"type":"string"},"expiresAt":{"type":"string","description":"ISO 8601 timestamp"}},"required":["status","hint","expiresAt"],"additionalProperties":{}},{"type":"null"}]}},"required":["id","source","sessionId","status","confirmBy","credential"],"additionalProperties":{}}},"required":["provisioning"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `provisioning:write` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflicts with the current state (for example, one is already running).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Can't be done as asked, or the Idempotency-Key was reused for a different request.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/datasets":{"get":{"operationId":"listDatasets","tags":["Reporting"],"summary":"List reporting datasets","description":"Daily, aggregate datasets for BI tools and spreadsheets, with their columns and whether each value is measured, inferred or declared. No prompt text or answer content.\n\nScope: `reports:read` (Read built reports and the BI datasets (aggregates only, no prompt or answer text).)","x-searchedly-scope":"reports:read","x-mcp-tool":"list_datasets","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"included":{"type":"boolean"},"datasets":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["visibility_daily","competitors_daily","ai_referrals_daily","changes"]},"label":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":{}}}},"required":["key","label","columns"],"additionalProperties":{}}}},"required":["included","datasets"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `reports:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}},"/api/v1/orgs/{orgId}/datasets/{dataset}":{"get":{"operationId":"getDataset","tags":["Reporting"],"summary":"Get a reporting dataset","description":"One dataset for a date range (default the last 30 complete days, at most 366 days and 50000 rows), as JSON or CSV. Traffic from AI assistants is inferred from referrers and undercounts; change outcomes compare 14 days before and after and don't prove cause.\n\nScope: `reports:read` (Read built reports and the BI datasets (aggregates only, no prompt or answer text).)","x-searchedly-scope":"reports:read","x-mcp-tool":"get_dataset","security":[{"apiKey":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"description":"Organization ID, from GET /api/v1/organizations.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"dataset","in":"path","required":true,"description":"Dataset key, from GET /datasets.","schema":{"type":"string","enum":["visibility_daily","competitors_daily","ai_referrals_daily","changes"]}},{"name":"from","in":"query","required":false,"description":"First day (YYYY-MM-DD, UTC).","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"to","in":"query","required":false,"description":"Last day (YYYY-MM-DD, UTC). Default yesterday.","schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"format","in":"query","required":false,"description":"Default json.","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"Success.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"dataset":{"type":"string","enum":["visibility_daily","competitors_daily","ai_referrals_daily","changes"]},"from":{"type":"string"},"to":{"type":"string"},"columns":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","null"]}}},"truncated":{"type":"boolean"}},"required":["dataset","from","to","columns","rows","truncated"],"additionalProperties":{}}}}},"400":{"description":"The request isn't valid.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing, invalid, expired or revoked API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key lacks the `reports:read` scope, or its creator's role no longer allows this.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or not in this key's organization.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited. Wait for the time in Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}}}}}}},"webhooks":{"visibility.changed":{"post":{"summary":"Visibility changed","description":"Your mention or citation rate rose or fell significantly after a check.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"visibility.changed"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"competitor.discovered":{"post":{"summary":"Competitor discovered","description":"AI assistants started listing a product you don't track.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"competitor.discovered"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"citation.gained":{"post":{"summary":"Citation gained","description":"An AI assistant cited a page on your website for the first time.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"citation.gained"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"tracking_run.completed":{"post":{"summary":"Visibility check finished","description":"A visibility check finished and its answers were analyzed.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"tracking_run.completed"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"tracking_run.skipped":{"post":{"summary":"Scheduled check skipped","description":"A scheduled check couldn't run, with the reason.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"tracking_run.skipped"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"audit.completed":{"post":{"summary":"Technical audit finished","description":"A technical audit of your website finished.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"audit.completed"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"optimization_task.completed":{"post":{"summary":"Optimization task completed","description":"A re-check confirmed that an optimization task's fix works on your website.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"optimization_task.completed"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"mcp_server.health_changed":{"post":{"summary":"Hosted MCP server health changed","description":"A hosted MCP server started failing, got worse, or recovered.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"mcp_server.health_changed"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"mcp_server.rollout_stopped":{"post":{"summary":"Staged rollout stopped automatically","description":"A new revision failed more often than the current one, so its rollout was stopped.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"mcp_server.rollout_stopped"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"mcp_server.deployed":{"post":{"summary":"Hosted MCP server deployed","description":"A hosted MCP server started serving a new revision, or was rolled back to an earlier one.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"mcp_server.deployed"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"mcp_server.deploy_failed":{"post":{"summary":"Hosted MCP server deploy failed","description":"A deploy was requested but couldn't be applied, with the reason.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"mcp_server.deploy_failed"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"agent.registered":{"post":{"summary":"Agent connected","description":"An AI app signed in to one of your hosted MCP servers for the first time.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"agent.registered"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"agent_registration.approved":{"post":{"summary":"Agent sign-up approved","description":"A person approved an AI agent's request to sign their business up for one of your free plans. Create the account, then confirm it to Searchedly.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"agent_registration.approved"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"agent_checkout.completed":{"post":{"summary":"Agent checkout paid","description":"A person approved and paid for one of your plans that an AI agent asked to buy. The payment is in your Stripe account; set up the account for the buyer.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"agent_checkout.completed"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"agent_credential.claimed":{"post":{"summary":"Agent collected a credential","description":"An AI agent collected the credential you offered for an account you set up, after a person in the buying business released it.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"agent_credential.claimed"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"agent_credential.revoke_requested":{"post":{"summary":"Switch off an agent credential","description":"A credential you offered was declined, not collected in time, or the buyer asked for it to be switched off. Revoke it in your systems, then confirm.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"agent_credential.revoke_requested"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"subscription.purchased":{"post":{"summary":"Subscription purchased","description":"Your organization started a Searchedly subscription or moved to another plan.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"subscription.purchased"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}},"usage.threshold_reached":{"post":{"summary":"Usage threshold reached","description":"A metered allowance (AI checks, MCP calls and others) reached 80% or 100% this period.\n\nSigned with Standard Webhooks headers (webhook-id, webhook-timestamp, webhook-signature). Reject timestamps more than 300 seconds old and ids you've already processed.","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEvent"},{"type":"object","properties":{"type":{"const":"usage.threshold_reached"}}}]}}}},"responses":{"2XX":{"description":"Received. Any other answer is retried with backoff for about 27 hours."}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"A Searchedly API key (sapi_…). Scopes: organization:read, visibility:read, prompts:read, prompts:write, competitors:read, audits:read, audits:write, readiness:read, readiness:write, tasks:read, tasks:write, mcp:read, mcp:write, activity:read, analytics:read, webhooks:read, webhooks:write, registrations:read, registrations:write, checkouts:read, checkouts:write, provisioning:read, provisioning:write, reports:read."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"1–255 printable characters. Retries with the same key and body replay the first response for 24 hours.","schema":{"type":"string","minLength":1,"maxLength":255}}},"headers":{"RetryAfter":{"description":"Seconds to wait before trying again.","schema":{"type":"integer","minimum":1}},"RateLimitPolicy":{"description":"The tightest rate-limit bucket for this request (IETF RateLimit headers).","schema":{"type":"string"}}},"schemas":{"Problem":{"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem."},"title":{"type":"string","description":"Short, human-readable summary."},"status":{"type":"integer","description":"The HTTP status code."},"detail":{"type":"string","description":"What went wrong in this request, and how to fix it."},"instance":{"type":"string","description":"The request path."},"request_id":{"type":"string","description":"Quote this when you contact support."}},"required":["type","title","status"]},"WebhookEvent":{"type":"object","properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats."},"type":{"type":"string","enum":["visibility.changed","competitor.discovered","citation.gained","tracking_run.completed","tracking_run.skipped","audit.completed","optimization_task.completed","mcp_server.health_changed","mcp_server.rollout_stopped","mcp_server.deployed","mcp_server.deploy_failed","agent.registered","agent_registration.approved","agent_checkout.completed","agent_credential.claimed","agent_credential.revoke_requested","subscription.purchased","usage.threshold_reached"]},"api_version":{"type":"string","const":"2026-11-07"},"created_at":{"type":"string","format":"date-time"},"organization_id":{"type":"string","format":"uuid"},"data":{"type":"object"}},"required":["id","type","api_version","created_at","organization_id","data"]}}}}