{"openapi":"3.1.0","info":{"title":"Asktopus API","summary":"Embed an AI assistant on any website, grounded in your own content.","description":"The Asktopus API powers both the customer dashboard and programmatic agent\naccess. Sites, knowledge (crawled pages, uploaded documents, knowledge\narticles), conversations, and usage analytics are all reachable through\ntyped JSON endpoints and via the Model Context Protocol endpoint at `/mcp`.\n\n## Authentication\n\nTwo schemes are supported:\n\n- **Session cookies** (`_clf_access_token`) — used by the dashboard after\n  Google or email/password login.\n- **Workspace API key** (`Authorization: Bearer ask_…`) — issued from the\n  dashboard under *Settings → API Keys*. Each key is bound to a single\n  workspace and carries a role (`owner`, `editor`, or `viewer`). Rate\n  limited per-tier.\n\n## Discovery\n\n- OpenAPI: [`/openapi.json`](/openapi.json) (also at `/.well-known/openapi.json`)\n- MCP server card: [`/.well-known/mcp.json`](/.well-known/mcp.json)\n- OAuth-style protected-resource metadata: [`/.well-known/oauth-protected-resource`](/.well-known/oauth-protected-resource)\n","contact":{"name":"Asktopus","url":"https://asktopus.com/","email":"hello@asktopus.com"},"license":{"name":"Proprietary"},"version":"0.1.0"},"servers":[{"url":"https://api.asktopus.com","description":"Production"},{"url":"http://localhost:8011","description":"Local development"}],"paths":{"/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ready":{"get":{"tags":["health"],"summary":"Ready","operationId":"ready_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google":{"post":{"tags":["auth"],"summary":"Google Login","operationId":"google_login_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__auth__GoogleLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verification-email":{"post":{"tags":["auth"],"summary":"Resend Verification","description":"A new verification link for the signed-in account.","operationId":"resend_verification_auth_verification_email_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/email-link":{"post":{"tags":["auth"],"summary":"Email Link","description":"For people who can't sign in: a link that verifies the address or lets\nthem choose a new password. The answer doesn't say whether the account exists.","operationId":"email_link_auth_email_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify-email/preview":{"post":{"tags":["auth"],"summary":"Preview Link","description":"Which account a link is for, so the page can show it before anything changes.","operationId":"preview_link_auth_verify_email_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","operationId":"verify_email_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/auth/google":{"post":{"tags":["admin-auth"],"summary":"Admin Google Login","operationId":"admin_google_login_admin_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__admin_auth__GoogleLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/auth/logout":{"post":{"tags":["admin-auth"],"summary":"Admin Logout","operationId":"admin_logout_admin_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/stripe/products":{"get":{"tags":["admin"],"summary":"Get Stripe Products","description":"Get current Stripe product/price mapping from the database.","operationId":"get_stripe_products_admin_stripe_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/stripe/sync":{"post":{"tags":["admin"],"summary":"Sync Stripe Products","description":"Create or update Stripe products and prices to match our tiers.","operationId":"sync_stripe_products_admin_stripe_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/system/rerender-widgets":{"post":{"tags":["admin"],"summary":"Rerender All Widgets","description":"Re-publish every active site's widget JS with this backend's bundle,\nstreaming progress as server-sent events: `start` with the total, one\n`site` event per site (ok, or the error), then `done` with the counts.\n\nIt renders here rather than through the worker queue: during a blue/green\noverlap the old worker could take a queued job and publish the old bundle.\nThe rendering runs in its own task, so closing the page doesn't stop it.","operationId":"rerender_all_widgets_admin_system_rerender_widgets_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/system/health":{"get":{"tags":["admin"],"summary":"Admin System Health","operationId":"admin_system_health_admin_system_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/tenants":{"get":{"tags":["admin"],"summary":"List Tenants","description":"List all workspaces with their owner info.","operationId":"list_tenants_admin_tenants_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenants/{workspace_id}/tier":{"patch":{"tags":["admin"],"summary":"Update Tier","description":"Manually override a workspace's subscription tier (for testing / support).\nBypasses Stripe — use only for non-Stripe-managed accounts.","operationId":"update_tier_admin_tenants__workspace_id__tier_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTierRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenants/{workspace_id}/status":{"patch":{"tags":["admin"],"summary":"Update Status","description":"Comp a workspace (free account, full service, no Stripe) or revoke it.\n\nOnly comped <-> trialing is allowed: Stripe webhooks own the other\nstatuses, and a workspace with a live Stripe subscription is refused so\nthe next webhook can't silently fight a manual override. Revoking sets\ntrialing — trial_ends_at then decides whether service continues.","operationId":"update_status_admin_tenants__workspace_id__status_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/usage/overview":{"get":{"tags":["admin"],"summary":"Usage Overview","operationId":"usage_overview_admin_usage_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/usage/requests":{"get":{"tags":["admin"],"summary":"Request Stats","operationId":"request_stats_admin_usage_requests_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Hours"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/conversations":{"get":{"tags":["admin"],"summary":"List Conversations","description":"Recent conversations across all tenants, with full turn details + cost estimate.","operationId":"list_conversations_admin_conversations_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"site_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/conversations/replay":{"post":{"tags":["admin"],"summary":"Replay Turn","description":"Re-run a question through a chosen model and return what the answer + cost would have been.\n\nUses the same retrieval + system prompt as production, only the LLM differs.\nDoes NOT store the result anywhere — purely for inspection. The \"grok\"\noption is kept so admins can compare against the failover provider on\ndemand even though Grok isn't in the production routing path.","operationId":"replay_turn_admin_conversations_replay_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/conversations/sites":{"get":{"tags":["admin"],"summary":"Sites With Conversations","description":"Distinct sites that have at least one conversation — for the admin filter dropdown.","operationId":"sites_with_conversations_admin_conversations_sites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/conversations/cost-overview":{"get":{"tags":["admin"],"summary":"Cost Overview","description":"Aggregate cost + token totals over a time window, across all conversations.","operationId":"cost_overview_admin_conversations_cost_overview_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Hours"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/account/":{"get":{"tags":["app-account"],"summary":"Get Account","operationId":"get_account_app_account__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"tags":["app-account"],"summary":"Update Account","operationId":"update_account_app_account__patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/account/google":{"post":{"tags":["app-account"],"summary":"Link Google","description":"Let a verified account also sign in with the Google account for the same\naddress. Needed where Google can't vouch for the address itself (not Gmail\nor Workspace), so Google sign-in alone doesn't link it.","operationId":"link_google_app_account_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/account/workspaces":{"get":{"tags":["app-account"],"summary":"List Workspaces","operationId":"list_workspaces_app_account_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/invitations/pending":{"get":{"tags":["app-invitations"],"summary":"List Pending Invitations","description":"Invitations to this address. Until the address is verified only the\ncount comes back, so the dashboard can ask for verification without\nshowing workspace names to someone who may not own the mailbox.","operationId":"list_pending_invitations_app_invitations_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app/invitations/{invitation_id}/accept":{"post":{"tags":["app-invitations"],"summary":"Accept Invitation","operationId":"accept_invitation_app_invitations__invitation_id__accept_post","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/invitations/{invitation_id}/decline":{"post":{"tags":["app-invitations"],"summary":"Decline Invitation","operationId":"decline_invitation_app_invitations__invitation_id__decline_post","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/":{"get":{"tags":["app-sites"],"summary":"List all sites in the workspace","operationId":"list_sites_app__workspace_slug__sites__get","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SiteSummary"},"title":"Response List Sites App  Workspace Slug  Sites  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["app-sites"],"summary":"Create a site and enqueue sitemap analysis","operationId":"create_site_app__workspace_slug__sites__post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSiteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}":{"get":{"tags":["app-sites"],"summary":"Get a site including vector store stats","operationId":"get_site_app__workspace_slug__sites__site_id__get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["app-sites"],"summary":"Update site name, widget config, or crawl/handoff settings","operationId":"update_site_app__workspace_slug__sites__site_id__patch","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSiteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["app-sites"],"summary":"Delete a site and all its associated data","operationId":"delete_site_app__workspace_slug__sites__site_id__delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/crawl-headers":{"post":{"tags":["app-sites"],"summary":"Add or replace a header sent when Asktopus reads the site","operationId":"set_crawl_header_app__workspace_slug__sites__site_id__crawl_headers_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlHeaderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlHeadersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/crawl-headers/{name}":{"delete":{"tags":["app-sites"],"summary":"Remove a header sent when Asktopus reads the site","operationId":"delete_crawl_header_app__workspace_slug__sites__site_id__crawl_headers__name__delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlHeadersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/handoff-photo":{"post":{"tags":["app-sites"],"summary":"Upload the contact person's photo for the chat's contact panel","operationId":"upload_handoff_photo_app__workspace_slug__sites__site_id__handoff_photo_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_handoff_photo_app__workspace_slug__sites__site_id__handoff_photo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["app-sites"],"summary":"Remove the contact person's photo","operationId":"delete_handoff_photo_app__workspace_slug__sites__site_id__handoff_photo_delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/sources/":{"post":{"tags":["app-sources"],"summary":"Add a crawl source to a site","operationId":"add_source_app__workspace_slug__sites__site_id__sources__post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/sources/{source_id}":{"delete":{"tags":["app-sources"],"summary":"Remove a crawl source from a site","operationId":"remove_source_app__workspace_slug__sites__site_id__sources__source_id__delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["app-sources"],"summary":"Update a source's include/exclude patterns","operationId":"update_source_app__workspace_slug__sites__site_id__sources__source_id__patch","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/sources/{source_id}/recrawl":{"post":{"tags":["app-sources"],"summary":"Re-crawl a single source","operationId":"recrawl_source_app__workspace_slug__sites__site_id__sources__source_id__recrawl_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/analyze":{"post":{"tags":["app-knowledge"],"summary":"Re-run sitemap analysis for a site","description":"Re-run sitemap analysis. Runs automatically on site create.\n\nReset visible state immediately so the dashboard doesn't keep showing stale\nclusters / error pills while the job sits in the ARQ queue waiting for a\nworker slot.","operationId":"trigger_analyze_app__workspace_slug__sites__site_id__analyze_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStartedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/crawl":{"post":{"tags":["app-knowledge"],"summary":"Start a crawl of the site's selected URL patterns","operationId":"trigger_crawl_app__workspace_slug__sites__site_id__crawl_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStartedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/pages":{"get":{"tags":["app-knowledge"],"summary":"List crawled pages for a site","operationId":"list_crawled_pages_app__workspace_slug__sites__site_id__pages_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagesListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/documents":{"post":{"tags":["app-knowledge"],"summary":"Upload a PDF, Word, text or Markdown document, or a CSV of questions and answers, into the knowledge base","operationId":"upload_document_app__workspace_slug__sites__site_id__documents_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_app__workspace_slug__sites__site_id__documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["app-knowledge"],"summary":"List uploaded documents for a site","operationId":"list_documents_app__workspace_slug__sites__site_id__documents_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentSummary"},"title":"Response List Documents App  Workspace Slug  Sites  Site Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/documents/{document_id}":{"put":{"tags":["app-knowledge"],"summary":"Replace a document with a new version","description":"Upload a new version of a document, with the same checks as an upload.\nThe old version keeps answering until the new one is processed, and is\nthen deleted; if processing fails, the old version stays and the new one\nshows the error. Replacing again before then drops the earlier new\nversion, and a new version of a new version replaces the original.","operationId":"replace_document_app__workspace_slug__sites__site_id__documents__document_id__put","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_replace_document_app__workspace_slug__sites__site_id__documents__document_id__put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["app-knowledge"],"summary":"Delete a document and its embeddings","operationId":"delete_document_app__workspace_slug__sites__site_id__documents__document_id__delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/knowledge/export":{"get":{"tags":["app-knowledge"],"summary":"Download the site's documents and articles as one zip file","operationId":"export_knowledge_app__workspace_slug__sites__site_id__knowledge_export_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/knowledge/import":{"post":{"tags":["app-knowledge"],"summary":"Add the documents and articles of an exported zip file to the site","operationId":"import_knowledge_app__workspace_slug__sites__site_id__knowledge_import_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_knowledge_app__workspace_slug__sites__site_id__knowledge_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/conversations":{"get":{"tags":["app-conversations"],"summary":"List chat conversation transcripts for a site","operationId":"list_conversations_app__workspace_slug__sites__site_id__conversations_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/conversations/{conversation_id}/block":{"put":{"tags":["app-conversations"],"summary":"Block the visitor behind a conversation from the site's chat for 30 days","operationId":"block_visitor_app__workspace_slug__sites__site_id__conversations__conversation_id__block_put","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["app-conversations"],"summary":"Let a blocked visitor use the chat again","operationId":"unblock_visitor_app__workspace_slug__sites__site_id__conversations__conversation_id__block_delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/conversations/export":{"get":{"tags":["app-conversations"],"summary":"Download every conversation transcript for a site as CSV or JSON","operationId":"export_conversations_app__workspace_slug__sites__site_id__conversations_export_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}},{"name":"format","in":"query","required":false,"schema":{"enum":["csv","json"],"type":"string","default":"csv","title":"Format"}},{"name":"delimiter","in":"query","required":false,"schema":{"enum":["comma","semicolon"],"type":"string","default":"comma","title":"Delimiter"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/billing/checkout":{"post":{"tags":["app-billing"],"summary":"Create Checkout","operationId":"create_checkout_app__workspace_slug__billing_checkout_post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/billing/conversation-pack":{"post":{"tags":["app-billing"],"summary":"Buy Conversation Pack","operationId":"buy_conversation_pack_app__workspace_slug__billing_conversation_pack_post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/billing/portal":{"post":{"tags":["app-billing"],"summary":"Billing Portal","operationId":"billing_portal_app__workspace_slug__billing_portal_post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/billing/branding-addon":{"post":{"tags":["app-billing"],"summary":"Add Branding Addon","description":"Add \"Remove Asktopus branding\" (tiers.BRANDING_ADDON) to a Starter\nsubscription: an item at the plan's interval, which Stripe prorates onto\nthe next invoice. The widget drops our branding at once.","operationId":"add_branding_addon_app__workspace_slug__billing_branding_addon_post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["app-billing"],"summary":"Remove Branding Addon","description":"End the add-on now. Stripe credits the unused time on the next invoice,\nand the widget shows our branding again.","operationId":"remove_branding_addon_app__workspace_slug__billing_branding_addon_delete","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/billing/plan":{"post":{"tags":["app-billing"],"summary":"Change Plan","description":"Move the subscription to another plan, at its interval. The dashboard\nuses this for subscriptions with the branding add-on, because Stripe's\nportal can't change a subscription with two products (the others change\nplan in the portal). A plan that includes branding removal ends the add-on\nin the same change, so it's never paid twice; Stripe prorates both.","operationId":"change_plan_app__workspace_slug__billing_plan_post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/team/":{"get":{"tags":["app-team"],"summary":"List Team","operationId":"list_team_app__workspace_slug__team__get","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/team/invite":{"post":{"tags":["app-team"],"summary":"Invite Member","operationId":"invite_member_app__workspace_slug__team_invite_post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/team/{member_id}":{"patch":{"tags":["app-team"],"summary":"Update Member","operationId":"update_member_app__workspace_slug__team__member_id__patch","parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["app-team"],"summary":"Remove Member","operationId":"remove_member_app__workspace_slug__team__member_id__delete","parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/workspace/":{"patch":{"tags":["app-workspace"],"summary":"Update workspace name and/or URL slug","operationId":"update_workspace_app__workspace_slug__workspace__patch","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/events":{"get":{"tags":["app-events"],"summary":"Workspace Events","description":"SSE stream of live events scoped to the caller's workspace.","operationId":"workspace_events_app__workspace_slug__events_get","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/handoffs":{"get":{"tags":["app-handoffs"],"summary":"List Handoffs","operationId":"list_handoffs_app__workspace_slug__sites__site_id__handoffs_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter: pending|delivered|failed|resolved","title":"Status"},"description":"Filter: pending|delivered|failed|resolved"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/handoffs/{handoff_id}":{"patch":{"tags":["app-handoffs"],"summary":"Resolve Handoff","operationId":"resolve_handoff_app__workspace_slug__sites__site_id__handoffs__handoff_id__patch","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"handoff_id","in":"path","required":true,"schema":{"type":"string","title":"Handoff Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/articles":{"get":{"tags":["app-articles"],"summary":"List knowledge articles for a site (metadata only)","operationId":"list_articles_app__workspace_slug__sites__site_id__articles_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticleSummary"},"title":"Response List Articles App  Workspace Slug  Sites  Site Id  Articles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["app-articles"],"summary":"Create a draft knowledge article","operationId":"create_article_app__workspace_slug__sites__site_id__articles_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateArticleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/articles/{article_id}":{"get":{"tags":["app-articles"],"summary":"Get a single article with its current content","operationId":"get_article_app__workspace_slug__sites__site_id__articles__article_id__get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["app-articles"],"summary":"Update article title/content (creates a new version)","operationId":"update_article_app__workspace_slug__sites__site_id__articles__article_id__patch","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateArticleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["app-articles"],"summary":"Delete an article and its version history","operationId":"delete_article_app__workspace_slug__sites__site_id__articles__article_id__delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/articles/{article_id}/publish":{"post":{"tags":["app-articles"],"summary":"Publish an article so it's retrievable by the assistant","operationId":"publish_article_app__workspace_slug__sites__site_id__articles__article_id__publish_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/articles/{article_id}/unpublish":{"post":{"tags":["app-articles"],"summary":"Unpublish an article and drop its embeddings","operationId":"unpublish_article_app__workspace_slug__sites__site_id__articles__article_id__unpublish_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/articles/{article_id}/versions":{"get":{"tags":["app-articles"],"summary":"List version history for an article","operationId":"list_versions_app__workspace_slug__sites__site_id__articles__article_id__versions_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArticleVersion"},"title":"Response List Versions App  Workspace Slug  Sites  Site Id  Articles  Article Id  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/articles/{article_id}/versions/{version}":{"get":{"tags":["app-articles"],"summary":"Get one version snapshot by number","operationId":"get_version_app__workspace_slug__sites__site_id__articles__article_id__versions__version__get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleVersion"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/articles/{article_id}/versions/{version}/restore":{"post":{"tags":["app-articles"],"summary":"Restore a historical version as the new current version","description":"Restore = write the chosen snapshot as a new version (history stays linear).","operationId":"restore_version_app__workspace_slug__sites__site_id__articles__article_id__versions__version__restore_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/unanswered-questions":{"get":{"tags":["app-questions"],"summary":"Visitor questions the knowledge may not cover (last 30 days)","operationId":"list_unanswered_questions_app__workspace_slug__sites__site_id__unanswered_questions_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnansweredQuestionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/unanswered-questions/{key}/dismissal":{"put":{"tags":["app-questions"],"summary":"Hide a question from the list","operationId":"dismiss_question_app__workspace_slug__sites__site_id__unanswered_questions__key__dismissal_put","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Key"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["app-questions"],"summary":"Show a dismissed question again","operationId":"restore_question_app__workspace_slug__sites__site_id__unanswered_questions__key__dismissal_delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Key"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/catalogue":{"get":{"tags":["app-catalogue"],"summary":"The site's shop catalogue","operationId":"get_catalogue_app__workspace_slug__sites__site_id__catalogue_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["app-catalogue"],"summary":"Sync the shop's products (the detected shop, or a product feed)","operationId":"enable_catalogue_app__workspace_slug__sites__site_id__catalogue_put","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EnableCatalogueRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["app-catalogue"],"summary":"Stop syncing and remove the products from the knowledge","operationId":"disable_catalogue_app__workspace_slug__sites__site_id__catalogue_delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/catalogue/detect":{"post":{"tags":["app-catalogue"],"summary":"Look for a Shopify or WooCommerce catalogue now","operationId":"detect_catalogue_app__workspace_slug__sites__site_id__catalogue_detect_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/catalogue/sync":{"post":{"tags":["app-catalogue"],"summary":"Sync the products now","operationId":"sync_catalogue_now_app__workspace_slug__sites__site_id__catalogue_sync_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/sites/{site_id}/catalogue/products":{"get":{"tags":["app-catalogue"],"summary":"The synced products","operationId":"list_products_app__workspace_slug__sites__site_id__catalogue_products_get","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueProducts"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/api-keys/":{"get":{"tags":["app-api-keys"],"summary":"List API keys for this workspace","operationId":"list_api_keys_app__workspace_slug__api_keys__get","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeySummary"},"title":"Response List Api Keys App  Workspace Slug  Api Keys  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["app-api-keys"],"summary":"Create a new API key (raw secret returned once)","operationId":"create_api_key_app__workspace_slug__api_keys__post","parameters":[{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/{workspace_slug}/api-keys/{api_key_id}":{"delete":{"tags":["app-api-keys"],"summary":"Delete an API key (it stops working immediately)","operationId":"delete_api_key_app__workspace_slug__api_keys__api_key_id__delete","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}},{"name":"workspace_slug","in":"path","required":true,"schema":{"type":"string","title":"Workspace Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/account/shopify-connections":{"post":{"tags":["shopify"],"summary":"Attach a Shopify shop to your account","operationId":"redeem_connect_code_app_account_shopify_connections_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/session":{"post":{"tags":["shopify"],"summary":"Open the embedded app: install or reconnect the shop","operationId":"open_session_shopify_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/shopify/scopes":{"post":{"tags":["shopify"],"summary":"Pick up the access the merchant just granted","description":"After `shopify.scopes.request` in the page: a new token carries the\ngranted scopes, and the store is read again with them.","operationId":"scopes_granted_shopify_scopes_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/shopify/status":{"get":{"tags":["shopify"],"summary":"The shop's assistant, products and plan","operationId":"get_status_shopify_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/shopify/billing/confirm":{"post":{"tags":["shopify"],"summary":"Read the plan the merchant just chose","operationId":"confirm_plan_shopify_billing_confirm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/shopify/sync":{"post":{"tags":["shopify"],"summary":"Read the shop's products again now","operationId":"sync_now_shopify_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/shopify/conversations":{"get":{"tags":["shopify"],"summary":"The store's chat conversations","operationId":"shop_conversations_shopify_conversations_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/conversations/{conversation_id}/block":{"put":{"tags":["shopify"],"summary":"Block the visitor behind a conversation from the store's chat for 30 days","operationId":"shop_block_visitor_shopify_conversations__conversation_id__block_put","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["shopify"],"summary":"Let a blocked visitor use the store's chat again","operationId":"shop_unblock_visitor_shopify_conversations__conversation_id__block_delete","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/connect":{"post":{"tags":["shopify"],"summary":"A link that attaches the shop to an Asktopus account","operationId":"connect_link_shopify_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/questions":{"get":{"tags":["shopify"],"summary":"Shoppers' questions the knowledge may not cover","operationId":"shop_questions_shopify_questions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnansweredQuestionsResponse"}}}}}}},"/shopify/questions/{key}/dismissal":{"put":{"tags":["shopify"],"summary":"Hide a question from the list","operationId":"shop_dismiss_question_shopify_questions__key__dismissal_put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["shopify"],"summary":"Show a hidden question again","operationId":"shop_restore_question_shopify_questions__key__dismissal_delete","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/articles":{"get":{"tags":["shopify"],"summary":"The store's knowledge articles","operationId":"shop_articles_shopify_articles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ArticleSummary"},"type":"array","title":"Response Shop Articles Shopify Articles Get"}}}}}},"post":{"tags":["shopify"],"summary":"Write an article (a draft until published)","operationId":"shop_create_article_shopify_articles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateArticleRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/articles/{article_id}":{"get":{"tags":["shopify"],"summary":"One article with its text","operationId":"shop_article_shopify_articles__article_id__get","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["shopify"],"summary":"Change an article","operationId":"shop_update_article_shopify_articles__article_id__patch","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateArticleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["shopify"],"summary":"Delete an article","operationId":"shop_delete_article_shopify_articles__article_id__delete","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/articles/{article_id}/publish":{"post":{"tags":["shopify"],"summary":"Publish an article to the assistant","operationId":"shop_publish_article_shopify_articles__article_id__publish_post","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/articles/{article_id}/unpublish":{"post":{"tags":["shopify"],"summary":"Take an article out of the assistant's knowledge","operationId":"shop_unpublish_article_shopify_articles__article_id__unpublish_post","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/site":{"get":{"tags":["shopify"],"summary":"The store's assistant: settings and knowledge","operationId":"shop_site_shopify_site_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteDetail"}}}}}},"patch":{"tags":["shopify"],"summary":"Change the chat's look and settings","operationId":"shop_update_site_shopify_site_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopSiteUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/site/handoff-photo":{"post":{"tags":["shopify"],"summary":"Upload the contact person's photo","operationId":"shop_upload_photo_shopify_site_handoff_photo_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_shop_upload_photo_shopify_site_handoff_photo_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["shopify"],"summary":"Remove the contact person's photo","operationId":"shop_delete_photo_shopify_site_handoff_photo_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}}}}},"/shopify/documents":{"get":{"tags":["shopify"],"summary":"Uploaded documents","operationId":"shop_documents_shopify_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DocumentSummary"},"type":"array","title":"Response Shop Documents Shopify Documents Get"}}}}}},"post":{"tags":["shopify"],"summary":"Upload a document","operationId":"shop_upload_document_shopify_documents_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_shop_upload_document_shopify_documents_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/documents/{document_id}":{"put":{"tags":["shopify"],"summary":"Replace a document with a new version","operationId":"shop_replace_document_shopify_documents__document_id__put","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_shop_replace_document_shopify_documents__document_id__put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["shopify"],"summary":"Delete a document","operationId":"shop_delete_document_shopify_documents__document_id__delete","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/update-knowledge":{"post":{"tags":["shopify"],"summary":"Read the store's pages and policies again","description":"Read the store's pages, blog posts and policies again, and scan the\nrest of the storefront as on install (nobody picks sections). The old\nknowledge answers until the new version replaces it.","operationId":"shop_update_knowledge_shopify_update_knowledge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}}}}},"/shopify/metaobjects":{"patch":{"tags":["shopify"],"summary":"Choose whether the assistant reads a kind of metaobject","description":"Kinds the storefront shows are read until switched off, the rest only\nonce switched on (services/shopify/metaobjects.py). The store's content is\nread again with the new choice.","operationId":"shop_choose_metaobjects_shopify_metaobjects_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaobjectChoice"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pricing/tiers":{"get":{"tags":["pricing"],"summary":"Get Tiers","description":"Return tier metadata joined with the live Stripe price/product IDs.\n\n`price_id` (monthly) and `yearly_price_id` are empty until\n/admin/stripe/sync has run, and always for the free plan, which isn't sold.\n`yearly_price_eur`/`yearly_price_dkk` are what a year costs (ten months).","operationId":"get_tiers_pricing_tiers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pricing/conversation-pack":{"get":{"tags":["pricing"],"summary":"Get Conversation Pack","description":"Extra conversations on top of a paid plan: size, price, and whether it\ncan be bought yet (after /admin/stripe/sync has created its price).","operationId":"get_conversation_pack_pricing_conversation_pack_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pricing/branding-addon":{"get":{"tags":["pricing"],"summary":"Get Branding Addon","description":"\"Remove Asktopus branding\" on top of a plan that doesn't include it:\nits price a month and a year (ten months), the plans it's sold on, and\nwhether it can be bought yet (after /admin/stripe/sync has created its\nprices).","operationId":"get_branding_addon_pricing_branding_addon_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/faq":{"post":{"tags":["tools"],"summary":"Generate Faq","description":"Questions and answers written from a public website's own pages.","operationId":"generate_faq_tools_faq_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tools/sitemap":{"post":{"tags":["tools"],"summary":"Find Sitemap","description":"A website's sitemaps, how many pages they list and in which sections.","operationId":"find_sitemap_tools_sitemap_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stripe/webhook":{"post":{"tags":["webhooks"],"summary":"Stripe Webhook","operationId":"stripe_webhook_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/widget/bundle.js":{"get":{"tags":["widget"],"summary":"Get Widget Bundle","description":"Raw widget bundle — used by the dashboard live preview.","operationId":"get_widget_bundle_widget_bundle_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/widget/config":{"get":{"tags":["widget"],"summary":"Get Widget Config","operationId":"get_widget_config_widget_config_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"string","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/widget/page":{"get":{"tags":["widget"],"summary":"Get Chat Page","description":"What the chat page needs: its name and colour, whether it asks for an\naccess code, and, once it's open to this visitor (no code, or `access` is a\ntoken from POST /widget/page/access), the chat's settings. The page loads\nthe chat from /widget/bundle.js with them.","operationId":"get_chat_page_widget_page_get","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"access","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/widget/page/access":{"post":{"tags":["widget"],"summary":"Open Chat Page","description":"Exchange the page's shared access code for a token the browser keeps.","operationId":"open_chat_page_widget_page_access_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPageAccessRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ApiKeyCreateResponse":{"properties":{"_id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"role":{"type":"string","title":"Role"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"key":{"type":"string","title":"Key","description":"Raw API key. Shown only once — save it now."}},"type":"object","required":["_id","name","prefix","role","created_by","created_at","key"],"title":"ApiKeyCreateResponse","description":"Returned once on create — contains the raw key. Store it securely; it\ncannot be retrieved again."},"ApiKeySummary":{"properties":{"_id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"role":{"type":"string","title":"Role"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["_id","name","prefix","role","created_by","created_at"],"title":"ApiKeySummary","description":"API key metadata. The secret itself is only ever returned once — on create."},"Article":{"properties":{"_id":{"type":"string","title":"Id"},"article_id":{"type":"string","title":"Article Id"},"site_id":{"type":"string","title":"Site Id"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"current_version":{"type":"integer","title":"Current Version","default":1},"chunk_count":{"type":"integer","title":"Chunk Count","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"content":{"type":"string","title":"Content","default":""}},"type":"object","required":["_id","article_id","site_id","title","status","created_at","updated_at"],"title":"Article"},"ArticleSummary":{"properties":{"_id":{"type":"string","title":"Id"},"article_id":{"type":"string","title":"Article Id"},"site_id":{"type":"string","title":"Site Id"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"current_version":{"type":"integer","title":"Current Version","default":1},"chunk_count":{"type":"integer","title":"Chunk Count","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"}},"type":"object","required":["_id","article_id","site_id","title","status","created_at","updated_at"],"title":"ArticleSummary"},"ArticleVersion":{"properties":{"_id":{"type":"string","title":"Id"},"article_id":{"type":"string","title":"Article Id"},"version":{"type":"integer","title":"Version"},"title":{"type":"string","title":"Title"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"edited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited By"},"edited_at":{"type":"string","format":"date-time","title":"Edited At"}},"type":"object","required":["_id","article_id","version","title","edited_at"],"title":"ArticleVersion"},"AutoUpdateStatus":{"properties":{"included":{"type":"boolean","title":"Included","description":"The workspace's plan includes automatic updates."},"enabled":{"type":"boolean","title":"Enabled","description":"Switched on for this site (the default)."},"interval_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interval Days","description":"Days between automatic updates on the plan."},"next_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next At","description":"About when the next update runs."}},"type":"object","required":["included","enabled"],"title":"AutoUpdateStatus","description":"Weekly automatic knowledge updates for the site (services/knowledge_updates.py)."},"BlockResponse":{"properties":{"status":{"type":"string","title":"Status"},"blocked_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Blocked Until"}},"type":"object","required":["status"],"title":"BlockResponse"},"Body_import_knowledge_app__workspace_slug__sites__site_id__knowledge_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_knowledge_app__workspace_slug__sites__site_id__knowledge_import_post"},"Body_replace_document_app__workspace_slug__sites__site_id__documents__document_id__put":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_replace_document_app__workspace_slug__sites__site_id__documents__document_id__put"},"Body_shop_replace_document_shopify_documents__document_id__put":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_shop_replace_document_shopify_documents__document_id__put"},"Body_shop_upload_document_shopify_documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_shop_upload_document_shopify_documents_post"},"Body_shop_upload_photo_shopify_site_handoff_photo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_shop_upload_photo_shopify_site_handoff_photo_post"},"Body_upload_document_app__workspace_slug__sites__site_id__documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_document_app__workspace_slug__sites__site_id__documents_post"},"Body_upload_handoff_photo_app__workspace_slug__sites__site_id__handoff_photo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_handoff_photo_app__workspace_slug__sites__site_id__handoff_photo_post"},"CatalogueProduct":{"properties":{"product_id":{"type":"string","title":"Product Id"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"price":{"type":"string","title":"Price","default":""},"available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available"}},"type":"object","required":["product_id","title","url"],"title":"CatalogueProduct"},"CatalogueProducts":{"properties":{"products":{"items":{"$ref":"#/components/schemas/CatalogueProduct"},"type":"array","title":"Products"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["products","total"],"title":"CatalogueProducts"},"CatalogueStatus":{"properties":{"detected":{"anyOf":[{"$ref":"#/components/schemas/DetectedCatalogue"},{"type":"null"}]},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"},"enabled":{"type":"boolean","title":"Enabled","default":false},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform","description":"A detected platform (see DetectedCatalogue) or \"feed\""},"feed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Url"},"product_count":{"type":"integer","title":"Product Count","default":0},"capped":{"type":"boolean","title":"Capped","description":"More products than the plan's pages leave room for","default":false},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"next_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Sync At"},"syncing":{"type":"boolean","title":"Syncing","default":false},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"CATALOGUE_UNREACHABLE or CATALOGUE_EMPTY"},"sync_hours":{"type":"integer","title":"Sync Hours"}},"type":"object","required":["sync_hours"],"title":"CatalogueStatus"},"ChatPage":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"The link works. On by default for a site without a website."},"protected":{"type":"boolean","title":"Protected","description":"Visitors must give the shared access code first."},"url":{"type":"string","title":"Url","description":"The link to share."}},"type":"object","required":["enabled","protected","url"],"title":"ChatPage","description":"The assistant on a link of its own (services/chat_page.py)."},"ChatPageAccessRequest":{"properties":{"site_id":{"type":"string","maxLength":64,"title":"Site Id"},"code":{"type":"string","maxLength":200,"title":"Code"}},"type":"object","required":["site_id","code"],"title":"ChatPageAccessRequest"},"ChatPageUpdate":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"access_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Code"}},"type":"object","title":"ChatPageUpdate","description":"The assistant's own link (services/chat_page.py)."},"ConnectRequest":{"properties":{"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},"type":"object","title":"ConnectRequest"},"ConversationSummary":{"properties":{"_id":{"type":"string","title":"Id"},"conversation_id":{"type":"string","title":"Conversation Id"},"site_id":{"type":"string","title":"Site Id"},"turns":{"items":{"$ref":"#/components/schemas/ConversationTurn"},"type":"array","title":"Turns","default":[]},"turn_count":{"type":"integer","title":"Turn Count","default":0},"preview":{"type":"string","title":"Preview","default":""},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"content_deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Content Deleted At"},"can_block":{"type":"boolean","title":"Can Block","default":false},"blocked_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Blocked Until"}},"type":"object","required":["_id","conversation_id","site_id"],"title":"ConversationSummary"},"ConversationTurn":{"properties":{"question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer"},"model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Used"},"tokens_in":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens In"},"tokens_out":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens Out"},"latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latency Ms"},"retrieval_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Retrieval Confidence"},"no_answer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"No Answer"},"rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rating"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"additionalProperties":true,"type":"object","title":"ConversationTurn"},"ConversationsListResponse":{"properties":{"conversations":{"items":{"$ref":"#/components/schemas/ConversationSummary"},"type":"array","title":"Conversations"},"total":{"type":"integer","title":"Total"},"ratings":{"$ref":"#/components/schemas/RatingCounts"}},"type":"object","required":["conversations","total","ratings"],"title":"ConversationsListResponse"},"CrawlHeader":{"properties":{"name":{"type":"string","title":"Name"},"value_hint":{"type":"string","title":"Value Hint"}},"type":"object","required":["name","value_hint"],"title":"CrawlHeader","description":"A header sent when Asktopus reads the site. The value is a credential and\nnever leaves the API; `value_hint` shows at most its last 4 characters."},"CrawlHeaderRequest":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"type":"object","required":["name","value"],"title":"CrawlHeaderRequest"},"CrawlHeadersResponse":{"properties":{"crawl_headers":{"items":{"$ref":"#/components/schemas/CrawlHeader"},"type":"array","title":"Crawl Headers"}},"type":"object","required":["crawl_headers"],"title":"CrawlHeadersResponse"},"CrawlSource":{"properties":{"source_id":{"type":"string","title":"Source Id"},"url":{"type":"string","title":"Url"},"kind":{"type":"string","title":"Kind"},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"include_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Include Patterns"},"exclude_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Patterns"},"sitemap_found":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sitemap Found"},"robots_blocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Robots Blocked"},"clusters":{"anyOf":[{"items":{"$ref":"#/components/schemas/UrlCluster"},"type":"array"},{"type":"null"}],"title":"Clusters"},"sampled_urls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sampled Urls"},"analyzed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Analyzed At"},"analyzing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Analyzing"},"last_crawled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Crawled At"},"page_count":{"type":"integer","title":"Page Count","default":0},"crawl_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crawl Error"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"crawl_progress":{"anyOf":[{"$ref":"#/components/schemas/JobProgress"},{"type":"null"}]},"scan_progress":{"anyOf":[{"$ref":"#/components/schemas/JobProgress"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["source_id","url","kind"],"title":"CrawlSource","description":"One crawl source on a site. A site has at least one (the primary domain,\nset when the site is created) and can have additional sources for sibling\nsubdomains or specific single URLs. Sitemap/pattern fields are meaningful\nonly when kind == 'domain'."},"CrawledPage":{"properties":{"_id":{"type":"string","title":"Id"},"site_id":{"type":"string","title":"Site Id"},"url":{"type":"string","title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"crawled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Crawled At"}},"type":"object","required":["_id","site_id","url"],"title":"CrawledPage"},"CreateApiKeyRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"role":{"type":"string","title":"Role","description":"Workspace role this key acts as.","default":"editor"}},"type":"object","required":["name"],"title":"CreateApiKeyRequest"},"CreateArticleRequest":{"properties":{"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content","default":""},"question_key":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"null"}],"title":"Question Key","description":"An unanswered question the article answers; it leaves the list."}},"type":"object","required":["title"],"title":"CreateArticleRequest"},"CreateSiteRequest":{"properties":{"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Url"},"greeting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Greeting"},"header_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Subtitle"},"input_placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Placeholder"}},"type":"object","required":["name"],"title":"CreateSiteRequest"},"CreateSourceRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"kind":{"type":"string","title":"Kind"}},"type":"object","required":["url","kind"],"title":"CreateSourceRequest"},"DetectedCatalogue":{"properties":{"platform":{"type":"string","title":"Platform","description":"\"shopify\", \"woocommerce\", \"magento\", \"shoporama\", \"mystore\", or \"pages\": product data on the shop's own pages"},"system":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System","description":"For \"pages\": the shop system, when recognisable (e.g. \"Wix\")"},"product_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Product Count"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"The shop's address, when it isn't the site's own"}},"type":"object","required":["platform"],"title":"DetectedCatalogue"},"DocumentSummary":{"properties":{"_id":{"type":"string","title":"Id"},"site_id":{"type":"string","title":"Site Id"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"file_size":{"type":"integer","title":"File Size"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"file_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Key"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"chunk_count":{"type":"integer","title":"Chunk Count","default":0},"uploaded_at":{"type":"string","format":"date-time","title":"Uploaded At"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed At"},"replaces":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replaces"}},"type":"object","required":["_id","site_id","filename","content_type","file_size","status","uploaded_at"],"title":"DocumentSummary"},"DocumentUploadResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"status":{"type":"string","title":"Status"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"replaces":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replaces"}},"type":"object","required":["document_id","status"],"title":"DocumentUploadResponse"},"EmailLinkRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"locale":{"anyOf":[{"type":"string","enum":["da","en","es"]},{"type":"null"}],"title":"Locale"}},"type":"object","required":["email"],"title":"EmailLinkRequest"},"EnableCatalogueRequest":{"properties":{"feed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Url"}},"type":"object","title":"EnableCatalogueRequest"},"GoogleLinkRequest":{"properties":{"credential":{"type":"string","maxLength":16384,"title":"Credential"}},"type":"object","required":["credential"],"title":"GoogleLinkRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandoffChannel":{"properties":{"type":{"type":"string","title":"Type"},"target":{"type":"string","title":"Target"}},"type":"object","required":["type","target"],"title":"HandoffChannel"},"HandoffConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"channels":{"items":{"$ref":"#/components/schemas/HandoffChannel"},"type":"array","title":"Channels","default":[]},"keywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keywords"},"show_button":{"type":"boolean","title":"Show Button","default":true},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"contact_photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Photo Url"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_hours":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Hours"}},"additionalProperties":true,"type":"object","title":"HandoffConfig"},"ImportFailure":{"properties":{"name":{"type":"string","title":"Name"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["name","reason"],"title":"ImportFailure"},"ImportResult":{"properties":{"documents_added":{"type":"integer","title":"Documents Added","default":0},"articles_added":{"type":"integer","title":"Articles Added","default":0},"skipped":{"type":"integer","title":"Skipped","default":0},"failed":{"items":{"$ref":"#/components/schemas/ImportFailure"},"type":"array","title":"Failed","default":[]}},"type":"object","title":"ImportResult"},"InviteRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","title":"Role","default":"editor"}},"type":"object","required":["email"],"title":"InviteRequest"},"JobProgress":{"properties":{"stage":{"type":"string","title":"Stage"},"done":{"type":"integer","title":"Done","default":0},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"found":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Found"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["stage"],"title":"JobProgress","description":"Where a running knowledge update or scan is (services/progress_service.py).\n`total` is None while it isn't known yet (the spider still discovering\npages, sitemap files still being found)."},"JobStartedResponse":{"properties":{"status":{"type":"string","title":"Status","examples":["analyzing","crawl_started"]}},"type":"object","required":["status"],"title":"JobStartedResponse","description":"Returned when an endpoint enqueues async work (crawl, analyze, embed)."},"LinkTokenRequest":{"properties":{"token":{"type":"string","maxLength":128,"minLength":40,"title":"Token"}},"type":"object","required":["token"],"title":"LinkTokenRequest"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":1024,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MetaobjectChoice":{"properties":{"type":{"type":"string","maxLength":255,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Type"},"included":{"type":"boolean","title":"Included"}},"type":"object","required":["type","included"],"title":"MetaobjectChoice"},"PageUsage":{"properties":{"allowance":{"type":"integer","title":"Allowance"},"website":{"type":"integer","title":"Website"},"documents":{"type":"integer","title":"Documents"},"products":{"type":"integer","title":"Products","default":0}},"type":"object","required":["allowance","website","documents"],"title":"PageUsage","description":"The plan's page allowance for the site and what uses it."},"PagesListResponse":{"properties":{"pages":{"items":{"$ref":"#/components/schemas/CrawledPage"},"type":"array","title":"Pages"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["pages","total"],"title":"PagesListResponse"},"RatingCounts":{"properties":{"up":{"type":"integer","title":"Up","default":0},"down":{"type":"integer","title":"Down","default":0},"days":{"type":"integer","title":"Days","description":"The window the counts cover, in days."}},"type":"object","required":["days"],"title":"RatingCounts"},"RedeemRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"RedeemRequest"},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"name":{"type":"string","maxLength":200,"title":"Name"},"company_name":{"type":"string","maxLength":200,"title":"Company Name"},"locale":{"anyOf":[{"type":"string","enum":["da","en","es"]},{"type":"null"}],"title":"Locale"},"shopify_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Shopify Code"},"source":{"anyOf":[{"$ref":"#/components/schemas/SignupSource"},{"type":"null"}]}},"type":"object","required":["email","password","name","company_name"],"title":"RegisterRequest"},"ReplayRequest":{"properties":{"site_id":{"type":"string","title":"Site Id"},"question":{"type":"string","title":"Question"},"tier":{"type":"string","title":"Tier"}},"type":"object","required":["site_id","question","tier"],"title":"ReplayRequest"},"ShopSiteUpdate":{"properties":{"widget_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Widget Config"},"handoff_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Handoff Config"},"custom_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instructions"}},"type":"object","title":"ShopSiteUpdate","description":"What the Shopify admin may change about the store's site: not its name,\naddress or crawl settings, which the app manages (how often the store's\ncontent is read again is the plan's, services/shopify/content.py)."},"SignupSource":{"properties":{"utm_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"ref":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Ref"},"referrer":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Referrer"},"landing":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Landing"},"page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Page"}},"type":"object","title":"SignupSource","description":"How the person found us, as the marketing site carries it on the sign-up\nlink (frontend components/attribution.tsx): the first visit's UTM tags or\nthe site that sent them, the page they landed on, and the page they\nclicked \"Start free trial\" on."},"SiteDetail":{"properties":{"_id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"site_id":{"type":"string","title":"Site Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url","description":"The website's address; empty for an assistant without a website."},"status":{"type":"string","title":"Status"},"knowledge_status":{"type":"string","title":"Knowledge Status"},"knowledge_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Error"},"last_crawled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Crawled At"},"page_count":{"type":"integer","title":"Page Count","default":0},"chunk_count":{"type":"integer","title":"Chunk Count","default":0},"widget_config":{"anyOf":[{"$ref":"#/components/schemas/WidgetConfig"},{"type":"null"}]},"crawl_include_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Crawl Include Patterns"},"crawl_exclude_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Crawl Exclude Patterns"},"crawl_sitemap_found":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Crawl Sitemap Found"},"crawl_robots_blocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Crawl Robots Blocked"},"crawl_analyzed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Crawl Analyzed At"},"crawl_analyzing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Crawl Analyzing"},"crawl_progress":{"anyOf":[{"$ref":"#/components/schemas/JobProgress"},{"type":"null"}]},"scan_progress":{"anyOf":[{"$ref":"#/components/schemas/JobProgress"},{"type":"null"}]},"crawl_sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/CrawlSource"},"type":"array"},{"type":"null"}],"title":"Crawl Sources"},"crawl_headers":{"anyOf":[{"items":{"$ref":"#/components/schemas/CrawlHeader"},"type":"array"},{"type":"null"}],"title":"Crawl Headers"},"crawl_bot_blocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Crawl Bot Blocked"},"handoff_config":{"anyOf":[{"$ref":"#/components/schemas/HandoffConfig"},{"type":"null"}]},"custom_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instructions"},"auto_update":{"anyOf":[{"$ref":"#/components/schemas/AutoUpdateStatus"},{"type":"null"}]},"shopify_shop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shopify Shop","description":"The shop's myshopify.com domain when the Asktopus Shopify app set the site up"},"chat_page":{"anyOf":[{"$ref":"#/components/schemas/ChatPage"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"crawl_clusters":{"anyOf":[{"items":{"$ref":"#/components/schemas/UrlCluster"},"type":"array"},{"type":"null"}],"title":"Crawl Clusters"},"crawl_sampled_urls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Crawl Sampled Urls"},"vector_info":{"anyOf":[{"$ref":"#/components/schemas/VectorInfo"},{"type":"null"}]},"page_usage":{"anyOf":[{"$ref":"#/components/schemas/PageUsage"},{"type":"null"}]},"has_knowledge":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Knowledge","description":"The assistant has something to answer from, so the chat is live."}},"type":"object","required":["_id","workspace_id","site_id","name","url","status","knowledge_status","created_at"],"title":"SiteDetail","description":"Full site record including vector store info and URL-pattern clusters."},"SiteRequest":{"properties":{"url":{"type":"string","maxLength":500,"minLength":1,"title":"Url"}},"type":"object","required":["url"],"title":"SiteRequest"},"SiteSummary":{"properties":{"_id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"site_id":{"type":"string","title":"Site Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url","description":"The website's address; empty for an assistant without a website."},"status":{"type":"string","title":"Status"},"knowledge_status":{"type":"string","title":"Knowledge Status"},"knowledge_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Error"},"last_crawled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Crawled At"},"page_count":{"type":"integer","title":"Page Count","default":0},"chunk_count":{"type":"integer","title":"Chunk Count","default":0},"widget_config":{"anyOf":[{"$ref":"#/components/schemas/WidgetConfig"},{"type":"null"}]},"crawl_include_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Crawl Include Patterns"},"crawl_exclude_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Crawl Exclude Patterns"},"crawl_sitemap_found":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Crawl Sitemap Found"},"crawl_robots_blocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Crawl Robots Blocked"},"crawl_analyzed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Crawl Analyzed At"},"crawl_analyzing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Crawl Analyzing"},"crawl_progress":{"anyOf":[{"$ref":"#/components/schemas/JobProgress"},{"type":"null"}]},"scan_progress":{"anyOf":[{"$ref":"#/components/schemas/JobProgress"},{"type":"null"}]},"crawl_sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/CrawlSource"},"type":"array"},{"type":"null"}],"title":"Crawl Sources"},"crawl_headers":{"anyOf":[{"items":{"$ref":"#/components/schemas/CrawlHeader"},"type":"array"},{"type":"null"}],"title":"Crawl Headers"},"crawl_bot_blocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Crawl Bot Blocked"},"handoff_config":{"anyOf":[{"$ref":"#/components/schemas/HandoffConfig"},{"type":"null"}]},"custom_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instructions"},"auto_update":{"anyOf":[{"$ref":"#/components/schemas/AutoUpdateStatus"},{"type":"null"}]},"shopify_shop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shopify Shop","description":"The shop's myshopify.com domain when the Asktopus Shopify app set the site up"},"chat_page":{"anyOf":[{"$ref":"#/components/schemas/ChatPage"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["_id","workspace_id","site_id","name","url","status","knowledge_status","created_at"],"title":"SiteSummary","description":"Site fields returned in list views. Heavy fields (clusters, vector info)\nare not included — call GET /sites/{site_id} for those."},"StatusResponse":{"properties":{"status":{"type":"string","title":"Status","examples":["ok","updated","deleted"]}},"type":"object","required":["status"],"title":"StatusResponse","description":"Generic status envelope for action endpoints (create/update/delete)."},"UnansweredQuestion":{"properties":{"key":{"type":"string","title":"Key","description":"Identifies the question when writing an article from it or dismissing it."},"question":{"type":"string","title":"Question","description":"The latest wording a visitor used, clipped to 140 characters."},"count":{"type":"integer","title":"Count","description":"How many times it was asked in the window."},"last_asked_at":{"type":"string","format":"date-time","title":"Last Asked At"}},"type":"object","required":["key","question","count","last_asked_at"],"title":"UnansweredQuestion"},"UnansweredQuestionsResponse":{"properties":{"questions":{"items":{"$ref":"#/components/schemas/UnansweredQuestion"},"type":"array","title":"Questions"},"days":{"type":"integer","title":"Days","description":"The window the questions come from, in days."}},"type":"object","required":["questions","days"],"title":"UnansweredQuestionsResponse"},"UpdateAccountRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"notifications":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Notifications"},"locale":{"anyOf":[{"type":"string","enum":["da","en","es"]},{"type":"null"}],"title":"Locale"}},"type":"object","title":"UpdateAccountRequest"},"UpdateArticleRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"}},"type":"object","title":"UpdateArticleRequest"},"UpdateMemberRequest":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"UpdateMemberRequest"},"UpdateSiteRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"widget_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Widget Config"},"crawl_include_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Crawl Include Patterns"},"crawl_exclude_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Crawl Exclude Patterns"},"handoff_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Handoff Config"},"custom_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Instructions"},"auto_update_knowledge":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Update Knowledge"},"chat_page":{"anyOf":[{"$ref":"#/components/schemas/ChatPageUpdate"},{"type":"null"}]}},"type":"object","title":"UpdateSiteRequest"},"UpdateSourceRequest":{"properties":{"include_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Include Patterns"},"exclude_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Patterns"}},"type":"object","title":"UpdateSourceRequest","description":"Patch a source. Only include_patterns/exclude_patterns are editable —\nURL and kind are immutable; remove and re-add to change them."},"UpdateStatusRequest":{"properties":{"subscription_status":{"type":"string","title":"Subscription Status"}},"type":"object","required":["subscription_status"],"title":"UpdateStatusRequest"},"UpdateTierRequest":{"properties":{"subscription_tier":{"type":"string","title":"Subscription Tier"}},"type":"object","required":["subscription_tier"],"title":"UpdateTierRequest"},"UpdateWorkspaceRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":50,"minLength":3},{"type":"null"}],"title":"Slug"}},"type":"object","title":"UpdateWorkspaceRequest"},"UrlCluster":{"properties":{"pattern":{"type":"string","title":"Pattern"},"count":{"type":"integer","title":"Count"},"examples":{"items":{"type":"string"},"type":"array","title":"Examples","default":[]}},"type":"object","required":["pattern","count"],"title":"UrlCluster"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VectorInfo":{"properties":{"points_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Points Count"},"vectors_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vectors Count"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","title":"VectorInfo"},"VerifyEmailRequest":{"properties":{"token":{"type":"string","maxLength":128,"minLength":40,"title":"Token"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","required":["token"],"title":"VerifyEmailRequest"},"WidgetConfig":{"properties":{"greeting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Greeting"},"primary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Color"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"branding":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Branding"},"header_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Title"},"header_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Subtitle"},"header_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Icon"},"input_placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Placeholder"},"blocked_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Blocked Patterns"},"primary_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Language"}},"additionalProperties":true,"type":"object","title":"WidgetConfig"},"WorkspaceUpdateResponse":{"properties":{"status":{"type":"string","title":"Status"},"slug":{"type":"string","title":"Slug"}},"type":"object","required":["status","slug"],"title":"WorkspaceUpdateResponse"},"app__routers__admin_auth__GoogleLoginRequest":{"properties":{"credential":{"type":"string","maxLength":16384,"title":"Credential"}},"type":"object","required":["credential"],"title":"GoogleLoginRequest"},"app__routers__auth__GoogleLoginRequest":{"properties":{"credential":{"type":"string","maxLength":16384,"title":"Credential"},"locale":{"anyOf":[{"type":"string","enum":["da","en","es"]},{"type":"null"}],"title":"Locale"},"shopify_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Shopify Code"},"source":{"anyOf":[{"$ref":"#/components/schemas/SignupSource"},{"type":"null"}]}},"type":"object","required":["credential"],"title":"GoogleLoginRequest"}}},"tags":[{"name":"app-sites","description":"Create, read, update, delete sites within a workspace."},{"name":"app-knowledge","description":"Crawled pages and uploaded documents that feed the assistant's RAG index."},{"name":"app-articles","description":"Hand-written knowledge articles with version history."},{"name":"app-conversations","description":"Transcripts and analytics for chat sessions handled by the widget."},{"name":"app-workspace","description":"Workspace-level settings (name, slug)."},{"name":"app-api-keys","description":"Create and delete workspace API keys for programmatic access."},{"name":"app-billing","description":"Stripe checkout and customer portal."},{"name":"app-team","description":"Invite, update, and remove workspace members."},{"name":"app-account","description":"User profile and notification preferences."},{"name":"app-invitations","description":"Pending workspace invitations."},{"name":"app-handoffs","description":"Human-handoff delivery tracking."},{"name":"app-events","description":"Server-sent events for real-time dashboard updates."},{"name":"auth","description":"Customer registration, email + password, and Google OAuth login."},{"name":"admin","description":"Internal endpoints for the operator admin panel."},{"name":"admin-auth","description":"Admin Google OAuth (restricted to unevenbits.dk)."},{"name":"pricing","description":"Public pricing tiers and Stripe product metadata."},{"name":"tools","description":"Free tools on the marketing site (FAQ generator, sitemap finder)."},{"name":"widget","description":"Widget bootstrap and WebSocket chat."},{"name":"widget-chat","description":"Live chat WebSocket consumed by the embedded widget."},{"name":"webhooks","description":"Inbound webhooks (Stripe)."}]}