{"openapi":"3.1.0","info":{"title":"X1-BaaS-Engine","description":"Browser-as-a-Service for AI Agents — x402 payment-gated stealth scraping","version":"0.2.0"},"paths":{"/.well-known/mcpindex-token":{"get":{"summary":"Mcpindex Challenge","description":"Serve mcpindex.ai challenge token for server verification.","operationId":"mcpindex_challenge__well_known_mcpindex_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/mcpindex-verify":{"get":{"summary":"Mcpindex Challenge","description":"Serve mcpindex.ai challenge token for server verification.","operationId":"mcpindex_challenge__well_known_mcpindex_verify_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/mcpindex-challenge":{"get":{"summary":"Mcpindex Challenge","description":"Serve mcpindex.ai challenge token for server verification.","operationId":"mcpindex_challenge__well_known_mcpindex_challenge_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/nohumans-claim":{"get":{"summary":"Nohumans Claim","description":"Serve nohumans.directory claim token for listing verification.","operationId":"nohumans_claim__well_known_nohumans_claim_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/glama.json":{"get":{"summary":"Glama Json","description":"Glama MCP registry verification endpoint.","operationId":"glama_json__well_known_glama_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/server-card.json":{"get":{"summary":"Mcp Server Card","description":"MCP server card for Smithery and other registries.","operationId":"mcp_server_card__well_known_server_card_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/x402.json":{"get":{"summary":"X402 Well Known","description":"x402 discovery document — lists all x402-enabled endpoints.","operationId":"x402_well_known__well_known_x402_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/openapi.json":{"get":{"summary":"Openapi Spec","description":"Public OpenAPI spec for discovery services (Indexter, etc.).","operationId":"openapi_spec_openapi_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","description":"Register a new user with email + password.\nReturns JWT tokens + user profile.","operationId":"register_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRegister"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","description":"Login with email + password.\nReturns JWT tokens + user profile.","operationId":"login_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh Token","description":"Exchange a refresh token for a new access + refresh token pair.","operationId":"refresh_token_v1_auth_refresh_post","parameters":[{"name":"refresh_token","in":"query","required":true,"schema":{"type":"string","title":"Refresh Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","description":"Return the current user's profile.","operationId":"get_me_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","description":"Verify a user's email address using the verification token.","operationId":"verify_email_v1_auth_verify_email_post","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/resend-verification":{"post":{"tags":["auth"],"summary":"Resend Verification","description":"Resend email verification token.\nTODO: Send actual email via SMTP.","operationId":"resend_verification_v1_auth_resend_verification_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/billing/tiers":{"get":{"tags":["billing"],"summary":"List Tiers","description":"List all available subscription tiers with limits and pricing.","operationId":"list_tiers_v1_billing_tiers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/billing/subscription":{"get":{"tags":["billing"],"summary":"Get Subscription","description":"Get the current user's subscription details.","operationId":"get_subscription_v1_billing_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout","description":"Create a Stripe checkout session for subscription upgrade.\n\nIn production, this would create a real Stripe checkout session.\nFor now, returns a mock session.","operationId":"create_checkout_v1_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSession"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/billing/webhook":{"post":{"tags":["billing"],"summary":"Stripe Webhook","description":"Handle Stripe webhook events.\n\nIn production, this would verify the webhook signature.\nFor now, accepts any payload.","operationId":"stripe_webhook_v1_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/billing/usage":{"get":{"tags":["billing"],"summary":"Get Usage","description":"Get current usage stats for the billing period.","operationId":"get_usage_v1_billing_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/keys":{"get":{"tags":["api-keys"],"summary":"List Keys","description":"List all API keys for the current user.","operationId":"list_keys_v1_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ApiKeyResponse"},"type":"array","title":"Response List Keys V1 Keys Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["api-keys"],"summary":"Create Key","description":"Create a new API key.\n\nThe raw key is only shown once in the response.\nStore it securely — it cannot be retrieved later.","operationId":"create_key_v1_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/keys/{key_id}":{"get":{"tags":["api-keys"],"summary":"Get Key","description":"Get details for a specific API key.","operationId":"get_key_v1_keys__key_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["api-keys"],"summary":"Update Key","description":"Update an API key's name, scopes, or limits.","operationId":"update_key_v1_keys__key_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["api-keys"],"summary":"Revoke Key","description":"Revoke an API key.\n\nThis is a soft delete — the key is marked as revoked but not deleted.","operationId":"revoke_key_v1_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/keys/{key_id}/usage":{"get":{"tags":["api-keys"],"summary":"Get Key Usage","description":"Get usage stats for a specific API key.","operationId":"get_key_usage_v1_keys__key_id__usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dashboard/profile":{"get":{"tags":["dashboard"],"summary":"Get Profile","description":"Get full user profile with subscription and stats.","operationId":"get_profile_v1_dashboard_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardProfile"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["dashboard"],"summary":"Update Profile","description":"Update user profile.","operationId":"update_profile_v1_dashboard_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/dashboard/profile/password":{"post":{"tags":["dashboard"],"summary":"Change Password","description":"Change user password.","operationId":"change_password_v1_dashboard_profile_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/dashboard/stats/overview":{"get":{"tags":["dashboard"],"summary":"Get Stats Overview","description":"Get high-level stats for dashboard cards.","operationId":"get_stats_overview_v1_dashboard_stats_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewStats"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/dashboard/stats/requests":{"get":{"tags":["dashboard"],"summary":"Get Stats Requests","description":"Get request volume over time (daily).","operationId":"get_stats_requests_v1_dashboard_stats_requests_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d)$","default":"7d","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RequestVolume"},"title":"Response Get Stats Requests V1 Dashboard Stats Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dashboard/stats/domains":{"get":{"tags":["dashboard"],"summary":"Get Stats Domains","description":"Get top domains breakdown.","operationId":"get_stats_domains_v1_dashboard_stats_domains_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d)$","default":"30d","title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DomainStats"},"title":"Response Get Stats Domains V1 Dashboard Stats Domains Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dashboard/stats/performance":{"get":{"tags":["dashboard"],"summary":"Get Stats Performance","description":"Get response time percentiles.","operationId":"get_stats_performance_v1_dashboard_stats_performance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d)$","default":"7d","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerformanceStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dashboard/stats/errors":{"get":{"tags":["dashboard"],"summary":"Get Stats Errors","description":"Get error breakdown by type.","operationId":"get_stats_errors_v1_dashboard_stats_errors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d)$","default":"7d","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ErrorStats"},"title":"Response Get Stats Errors V1 Dashboard Stats Errors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dashboard/subscription":{"get":{"tags":["dashboard"],"summary":"Get Subscription Details","description":"Get detailed subscription information.","operationId":"get_subscription_details_v1_dashboard_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDetails"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/dashboard/subscription/cancel":{"post":{"tags":["dashboard"],"summary":"Cancel Subscription","description":"Cancel subscription at end of current billing period.","operationId":"cancel_subscription_v1_dashboard_subscription_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/dashboard/subscription/reactivate":{"post":{"tags":["dashboard"],"summary":"Reactivate Subscription","description":"Reactivate a canceled subscription.","operationId":"reactivate_subscription_v1_dashboard_subscription_reactivate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/admin/users":{"get":{"tags":["admin"],"summary":"List Users","description":"List all users (paginated).","operationId":"list_users_v1_admin_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/users/{user_id}":{"get":{"tags":["admin"],"summary":"Get User Detail","description":"Get detailed user information.","operationId":"get_user_detail_v1_admin_users__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Update User","description":"Update user (admin action).","operationId":"update_user_v1_admin_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"is_admin","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Admin"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/stats":{"get":{"tags":["admin"],"summary":"Get System Stats","description":"Get system-wide statistics.","operationId":"get_system_stats_v1_admin_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemStats"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/admin/keys":{"get":{"tags":["admin"],"summary":"List All Keys","description":"List all API keys.","operationId":"list_all_keys_v1_admin_keys_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminApiKeySummary"},"title":"Response List All Keys V1 Admin Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/subscriptions":{"get":{"tags":["admin"],"summary":"List All Subscriptions","description":"List all subscriptions.","operationId":"list_all_subscriptions_v1_admin_subscriptions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminSubscriptionSummary"},"title":"Response List All Subscriptions V1 Admin Subscriptions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/scrape":{"get":{"summary":"Scrape Endpoint Get","description":"GET /v1/scrape — x402 discovery probe support (CDP Bazaar validator).\n\nThe CDP x402 Bazaar validator crawls each resource URL with a plain GET to\nconfirm it returns HTTP 402 with a valid ``extensions.bazaar`` block\n(``returns_402`` / ``has_bazaar_extension`` preflight checks). POST is the\nonly method that actually fulfills a scrape (it carries the request body),\nso an authenticated GET receives 405 rather than scraping.\n\nAuth flows through the same ``authenticate`` dependency as POST:\nunauthenticated probes → 402 + payment requirements envelope (with the\nBazaar extension served by the 402 exception handler); valid API key or\nx402 payment → 405 (method not allowed).","operationId":"scrape_endpoint_get_v1_scrape_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Scrape Endpoint","description":"Scrape a URL with stealth browser automation.\n\nDual auth: API key (subscription) OR x402 payment (pay-per-scrape).\nx402: payment verified BEFORE scrape, settled ONLY on success.\nFailed scrapes = no charge.\n\nOutput formats (via ``output``): markdown (default), screenshot, pdf,\ncsv, html.","operationId":"scrape_endpoint_v1_scrape_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/health":{"get":{"summary":"Health Endpoint","operationId":"health_endpoint_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/v1/proxy/status":{"get":{"summary":"Proxy Status Endpoint","description":"Get proxy pool status.","operationId":"proxy_status_endpoint_v1_proxy_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/pricing":{"get":{"summary":"Pricing Endpoint","description":"Public endpoint — returns current pricing and payment requirements.","operationId":"pricing_endpoint_v1_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/onboard":{"get":{"summary":"Onboard Endpoint","description":"Public endpoint — returns x402 wallet setup instructions for agents.\n\nDesigned for LLM consumption: plain text, step-by-step, platform-specific.\nAn agent that hits a 402 can fetch this endpoint to learn how to set up\na wallet and pay for X1-BaaS requests.","operationId":"onboard_endpoint_v1_onboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/llms.txt":{"get":{"summary":"Llms Txt","description":"Concise llms.txt — a robots.txt-style guide for AI agents/LLMs.","operationId":"llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/llms-full.txt":{"get":{"summary":"Llms Full Txt","description":"Comprehensive llms-full.txt — detailed endpoint reference for AI agents.","operationId":"llms_full_txt_llms_full_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"summary":"Robots Txt","description":"robots.txt with explicit AI-bot permissions for the API origin.","operationId":"robots_txt_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/extract":{"post":{"tags":["extract"],"summary":"Extract Endpoint","description":"Extract structured data from a web page.\n\nProvide exactly one (or more) of `schema`, `selectors`, or `xpaths`.\nPriority: schema > selectors > xpaths.","operationId":"extract_endpoint_v1_extract_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/crawl":{"get":{"tags":["crawl"],"summary":"List Jobs","description":"List the caller's crawl jobs, newest first.","operationId":"list_jobs_v1_crawl_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["crawl"],"summary":"Start Crawl","description":"Start a multi-page crawl job. Returns immediately with the job id.","operationId":"start_crawl_v1_crawl_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/crawl/{job_id}":{"get":{"tags":["crawl"],"summary":"Get Job","description":"Get a crawl job's status and progress.","operationId":"get_job_v1_crawl__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["crawl"],"summary":"Cancel Job","description":"Cancel a pending or running crawl job.","operationId":"cancel_job_v1_crawl__job_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crawl/{job_id}/results":{"get":{"tags":["crawl"],"summary":"Get Job Results","description":"Get a crawl job's results (paginated).","operationId":"get_job_results_v1_crawl__job_id__results_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/test":{"post":{"tags":["webhooks"],"summary":"Test Webhook","description":"Send a single signed test webhook to the given URL.\n\nRecords the attempt in ``webhook_deliveries`` and returns the outcome\n(delivered / failed) plus the delivery record.","operationId":"test_webhook_v1_webhooks_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWebhookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/webhooks/logs":{"get":{"tags":["webhooks"],"summary":"List Webhook Logs","description":"List the caller's webhook delivery logs, newest first.","operationId":"list_webhook_logs_v1_webhooks_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AdminApiKeySummary":{"properties":{"id":{"type":"integer","title":"Id"},"key_prefix":{"type":"string","title":"Key Prefix"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"user_email":{"type":"string","title":"User Email"},"is_active":{"type":"boolean","title":"Is Active"},"usage_count":{"type":"integer","title":"Usage Count"},"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"}},"type":"object","required":["id","key_prefix","name","user_email","is_active","usage_count","created_at","last_used_at"],"title":"AdminApiKeySummary"},"AdminSubscriptionSummary":{"properties":{"id":{"type":"integer","title":"Id"},"user_email":{"type":"string","title":"User Email"},"tier":{"type":"string","title":"Tier"},"status":{"type":"string","title":"Status"},"stripe_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Subscription Id"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"}},"type":"object","required":["id","user_email","tier","status","stripe_subscription_id","current_period_end","cancel_at_period_end"],"title":"AdminSubscriptionSummary"},"AdminUserDetail":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"email_verified":{"type":"boolean","title":"Email Verified"},"is_active":{"type":"boolean","title":"Is Active"},"is_admin":{"type":"boolean","title":"Is Admin"},"auth_method":{"type":"string","title":"Auth Method"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"tier":{"type":"string","title":"Tier"},"subscription_status":{"type":"string","title":"Subscription Status"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"total_keys":{"type":"integer","title":"Total Keys"},"active_keys":{"type":"integer","title":"Active Keys"},"total_requests":{"type":"integer","title":"Total Requests"},"requests_this_month":{"type":"integer","title":"Requests This Month"}},"type":"object","required":["id","email","email_verified","is_active","is_admin","auth_method","created_at","tier","subscription_status","current_period_end","total_keys","active_keys","total_requests","requests_this_month"],"title":"AdminUserDetail"},"AdminUserList":{"properties":{"users":{"items":{"$ref":"#/components/schemas/AdminUserSummary"},"type":"array","title":"Users"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["users","total","page","per_page"],"title":"AdminUserList"},"AdminUserSummary":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"email_verified":{"type":"boolean","title":"Email Verified"},"is_active":{"type":"boolean","title":"Is Active"},"is_admin":{"type":"boolean","title":"Is Admin"},"auth_method":{"type":"string","title":"Auth Method"},"tier":{"type":"string","title":"Tier"},"total_keys":{"type":"integer","title":"Total Keys"},"total_requests":{"type":"integer","title":"Total Requests"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_active":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active"}},"type":"object","required":["id","email","email_verified","is_active","is_admin","auth_method","tier","total_keys","total_requests","created_at","last_active"],"title":"AdminUserSummary"},"ApiKeyCreate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name","description":"Friendly name for the key"},"scopes":{"type":"string","title":"Scopes","description":"Comma-separated scopes","default":"scrape:read"},"rate_limit":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Rate Limit","description":"Custom rate limit (rpm)"},"monthly_quota":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":1.0},{"type":"null"}],"title":"Monthly Quota","description":"Custom monthly quota"},"expires_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Expires Days","description":"Days until expiration"}},"type":"object","title":"ApiKeyCreate"},"ApiKeyCreated":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"key":{"type":"string","title":"Key"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"type":"string","title":"Scopes"},"rate_limit":{"type":"integer","title":"Rate Limit"},"monthly_quota":{"type":"integer","title":"Monthly Quota"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"message":{"type":"string","title":"Message","default":"Save this key — it will not be shown again."}},"type":"object","required":["id","name","key","key_prefix","scopes","rate_limit","monthly_quota","expires_at"],"title":"ApiKeyCreated","description":"Response when creating a new key — includes the raw key (shown once)."},"ApiKeyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"type":"string","title":"Scopes"},"rate_limit":{"type":"integer","title":"Rate Limit"},"monthly_quota":{"type":"integer","title":"Monthly Quota"},"usage_count":{"type":"integer","title":"Usage Count"},"is_active":{"type":"boolean","title":"Is Active"},"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"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","name","key_prefix","scopes","rate_limit","monthly_quota","usage_count","is_active","created_at","last_used_at","expires_at"],"title":"ApiKeyResponse"},"ApiKeyUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"},"scopes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scopes"},"rate_limit":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Rate Limit"},"monthly_quota":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":1.0},{"type":"null"}],"title":"Monthly Quota"}},"type":"object","title":"ApiKeyUpdate"},"CheckoutRequest":{"properties":{"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"success_url":{"type":"string","title":"Success Url","default":"https://x1.baas.microstorm.biz/success"},"cancel_url":{"type":"string","title":"Cancel Url","default":"https://x1.baas.microstorm.biz/pricing"}},"type":"object","required":["tier"],"title":"CheckoutRequest"},"CheckoutSession":{"properties":{"session_id":{"type":"string","title":"Session Id"},"url":{"type":"string","title":"Url"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"customer_email":{"type":"string","title":"Customer Email"},"success_url":{"type":"string","title":"Success Url"},"cancel_url":{"type":"string","title":"Cancel Url"}},"type":"object","required":["session_id","url","tier","customer_email","success_url","cancel_url"],"title":"CheckoutSession","description":"Mock Stripe checkout session."},"CrawlOptions":{"properties":{"respect_robots_txt":{"type":"boolean","title":"Respect Robots Txt","description":"Respect robots.txt directives","default":true},"delay_ms":{"type":"integer","maximum":60000.0,"minimum":0.0,"title":"Delay Ms","description":"Delay between page fetches (ms)","default":1000},"timeout_per_page":{"type":"integer","maximum":120000.0,"minimum":1000.0,"title":"Timeout Per Page","description":"Per-page fetch timeout (ms)","default":30000},"parallel":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Parallel","description":"Concurrency for batch mode","default":5},"follow_external":{"type":"boolean","title":"Follow External","description":"Follow off-domain links (link mode)","default":false},"include_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Include Patterns","description":"Glob/regex patterns to include (link mode)"},"exclude_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Patterns","description":"Glob/regex patterns to exclude (link mode)"}},"type":"object","title":"CrawlOptions"},"CrawlRequest":{"properties":{"start_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Start Url","description":"Starting URL (sitemap/link/pattern modes)"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode","description":"sitemap | link | pattern | batch (auto-detected if omitted)"},"max_pages":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Max Pages","description":"Maximum pages to crawl","default":100},"depth":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Depth","description":"Link crawl depth","default":3},"url_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url Pattern","description":"Glob/regex pattern for pattern mode"},"urls":{"anyOf":[{"items":{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},"type":"array"},{"type":"null"}],"title":"Urls","description":"Explicit URL list for batch mode"},"options":{"anyOf":[{"$ref":"#/components/schemas/CrawlOptions"},{"type":"null"}],"description":"Crawl options"},"callback_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Callback Url","description":"Webhook URL to notify on completion"},"webhook_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Secret","description":"HMAC-SHA256 signing secret for the webhook"}},"type":"object","title":"CrawlRequest"},"DashboardProfile":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"email_verified":{"type":"boolean","title":"Email Verified"},"auth_method":{"type":"string","title":"Auth Method"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"tier":{"type":"string","title":"Tier"},"subscription_status":{"type":"string","title":"Subscription Status"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"total_api_keys":{"type":"integer","title":"Total Api Keys"},"active_api_keys":{"type":"integer","title":"Active Api Keys"},"total_requests_all_time":{"type":"integer","title":"Total Requests All Time"},"requests_this_month":{"type":"integer","title":"Requests This Month"},"remaining_this_month":{"type":"integer","title":"Remaining This Month"}},"type":"object","required":["id","email","email_verified","auth_method","created_at","tier","subscription_status","current_period_end","total_api_keys","active_api_keys","total_requests_all_time","requests_this_month","remaining_this_month"],"title":"DashboardProfile"},"DomainStats":{"properties":{"domain":{"type":"string","title":"Domain"},"request_count":{"type":"integer","title":"Request Count"},"success_rate":{"type":"number","title":"Success Rate"},"avg_response_time_ms":{"type":"integer","title":"Avg Response Time Ms"}},"type":"object","required":["domain","request_count","success_rate","avg_response_time_ms"],"title":"DomainStats"},"ErrorStats":{"properties":{"error_type":{"type":"string","title":"Error Type"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["error_type","count","percentage"],"title":"ErrorStats"},"ExtractMetadata":{"properties":{"extraction_method":{"type":"string","title":"Extraction Method"},"confidence":{"type":"number","title":"Confidence"},"processing_time_ms":{"type":"integer","title":"Processing Time Ms"}},"type":"object","required":["extraction_method","confidence","processing_time_ms"],"title":"ExtractMetadata"},"ExtractOptions":{"properties":{"format":{"type":"string","title":"Format","description":"Output format (currently: json)","default":"json"},"wait_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wait For","description":"CSS selector to wait for before extraction"},"timeout":{"type":"integer","maximum":120000.0,"minimum":1000.0,"title":"Timeout","description":"Navigation timeout (ms)","default":30000},"block_media":{"type":"boolean","title":"Block Media","description":"Block image/font/video requests","default":true},"wait_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wait Strategy","description":"Wait strategy: default, spa, heavy, cloudflare"},"javascript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Javascript","description":"Custom JS to execute after page load"},"proxy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proxy Url","description":"Proxy URL (socks5:// or http://)"},"retry":{"type":"boolean","title":"Retry","description":"Enable retry on failure","default":true},"bypass_cache":{"type":"boolean","title":"Bypass Cache","description":"Skip cache, force fresh fetch","default":false}},"type":"object","title":"ExtractOptions"},"ExtractRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"Target URL to extract data from"},"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schema","description":"JSON schema defining fields to extract"},"selectors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Selectors","description":"CSS selectors to extract"},"xpaths":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Xpaths","description":"XPath queries to extract"},"options":{"anyOf":[{"$ref":"#/components/schemas/ExtractOptions"},{"type":"null"}],"description":"Extraction options"}},"type":"object","required":["url"],"title":"ExtractRequest"},"ExtractResponse":{"properties":{"status":{"type":"integer","title":"Status"},"url":{"type":"string","title":"Url"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"metadata":{"$ref":"#/components/schemas/ExtractMetadata"},"payment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payment"}},"type":"object","required":["status","url","data","metadata"],"title":"ExtractResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"browser_active":{"type":"boolean","title":"Browser Active"},"browser_contexts":{"type":"integer","title":"Browser Contexts"},"uptime_seconds":{"type":"number","title":"Uptime Seconds"},"x402_enabled":{"type":"boolean","title":"X402 Enabled"}},"type":"object","required":["status","browser_active","browser_contexts","uptime_seconds","x402_enabled"],"title":"HealthResponse"},"KeyUsageResponse":{"properties":{"key_id":{"type":"integer","title":"Key Id"},"key_prefix":{"type":"string","title":"Key Prefix"},"total_requests":{"type":"integer","title":"Total Requests"},"successful_requests":{"type":"integer","title":"Successful Requests"},"failed_requests":{"type":"integer","title":"Failed Requests"},"avg_response_time_ms":{"type":"integer","title":"Avg Response Time Ms"},"top_domains":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Top Domains"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"}},"type":"object","required":["key_id","key_prefix","total_requests","successful_requests","failed_requests","avg_response_time_ms","top_domains","period_start","period_end"],"title":"KeyUsageResponse"},"OverviewStats":{"properties":{"requests_today":{"type":"integer","title":"Requests Today"},"requests_this_month":{"type":"integer","title":"Requests This Month"},"success_rate":{"type":"number","title":"Success Rate"},"avg_response_time_ms":{"type":"integer","title":"Avg Response Time Ms"},"top_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top Domain"},"remaining_quota":{"type":"integer","title":"Remaining Quota"}},"type":"object","required":["requests_today","requests_this_month","success_rate","avg_response_time_ms","top_domain","remaining_quota"],"title":"OverviewStats"},"PasswordChange":{"properties":{"current_password":{"type":"string","minLength":8,"title":"Current Password"},"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"PasswordChange"},"PerformanceStats":{"properties":{"p50_ms":{"type":"integer","title":"P50 Ms"},"p90_ms":{"type":"integer","title":"P90 Ms"},"p95_ms":{"type":"integer","title":"P95 Ms"},"p99_ms":{"type":"integer","title":"P99 Ms"}},"type":"object","required":["p50_ms","p90_ms","p95_ms","p99_ms"],"title":"PerformanceStats"},"ProfileUpdate":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"}},"type":"object","title":"ProfileUpdate"},"RequestVolume":{"properties":{"period":{"type":"string","title":"Period"},"total":{"type":"integer","title":"Total"},"successful":{"type":"integer","title":"Successful"},"failed":{"type":"integer","title":"Failed"}},"type":"object","required":["period","total","successful","failed"],"title":"RequestVolume"},"ScrapeRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"Target URL to scrape"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output","description":"Output format: markdown (default), screenshot, pdf, csv, html"},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options","description":"Output-specific options"},"wait_for_selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wait For Selector","description":"CSS selector to wait for"},"timeout_ms":{"type":"integer","maximum":120000.0,"minimum":1000.0,"title":"Timeout Ms","description":"Navigation timeout (ms)","default":20000},"block_media":{"type":"boolean","title":"Block Media","description":"Block image/font/video requests","default":true},"proxy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proxy Url","description":"Proxy URL (socks5:// or http://)"},"wait_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wait Strategy","description":"Wait strategy: default, spa, heavy, cloudflare (auto-detected if omitted)"},"retry":{"type":"boolean","title":"Retry","description":"Enable retry on failure","default":true},"bypass_cache":{"type":"boolean","title":"Bypass Cache","description":"Skip cache, force fresh scrape","default":false},"javascript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Javascript","description":"Custom JS to execute after page load"}},"type":"object","required":["url"],"title":"ScrapeRequest"},"ScrapeResponse":{"properties":{"status":{"type":"integer","title":"Status"},"url":{"type":"string","title":"Url"},"output":{"type":"string","title":"Output","default":"markdown"},"data":{"title":"Data","description":"ScrapeData for markdown, format-specific dict otherwise"},"execution_time_ms":{"type":"integer","title":"Execution Time Ms"},"payment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payment"}},"type":"object","required":["status","url","data","execution_time_ms"],"title":"ScrapeResponse"},"SubscriptionDetails":{"properties":{"tier":{"type":"string","title":"Tier"},"status":{"type":"string","title":"Status"},"monthly_requests":{"type":"integer","title":"Monthly Requests"},"rate_limit_rpm":{"type":"integer","title":"Rate Limit Rpm"},"price_monthly":{"type":"number","title":"Price Monthly"},"price_yearly":{"type":"number","title":"Price Yearly"},"current_period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period Start"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"usage_this_month":{"type":"integer","title":"Usage This Month"},"remaining":{"type":"integer","title":"Remaining"},"percent_used":{"type":"number","title":"Percent Used"}},"type":"object","required":["tier","status","monthly_requests","rate_limit_rpm","price_monthly","price_yearly","current_period_start","current_period_end","cancel_at_period_end","usage_this_month","remaining","percent_used"],"title":"SubscriptionDetails"},"SubscriptionResponse":{"properties":{"tier":{"type":"string","title":"Tier"},"status":{"type":"string","title":"Status"},"monthly_requests":{"type":"integer","title":"Monthly Requests"},"rate_limit_rpm":{"type":"integer","title":"Rate Limit Rpm"},"current_usage":{"type":"integer","title":"Current Usage"},"remaining":{"type":"integer","title":"Remaining"},"price_monthly":{"type":"number","title":"Price Monthly"},"price_yearly":{"type":"number","title":"Price Yearly"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"}},"type":"object","required":["tier","status","monthly_requests","rate_limit_rpm","current_usage","remaining","price_monthly","price_yearly"],"title":"SubscriptionResponse"},"SubscriptionTier":{"type":"string","enum":["free","starter","pro","business"],"title":"SubscriptionTier"},"SystemStats":{"properties":{"total_users":{"type":"integer","title":"Total Users"},"active_users_30d":{"type":"integer","title":"Active Users 30D"},"total_api_keys":{"type":"integer","title":"Total Api Keys"},"active_api_keys":{"type":"integer","title":"Active Api Keys"},"total_requests_30d":{"type":"integer","title":"Total Requests 30D"},"revenue_mrr":{"type":"number","title":"Revenue Mrr"},"tier_breakdown":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tier Breakdown"}},"type":"object","required":["total_users","active_users_30d","total_api_keys","active_api_keys","total_requests_30d","revenue_mrr","tier_breakdown"],"title":"SystemStats"},"TestWebhookRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"Callback URL to deliver the test webhook to"},"secret":{"type":"string","minLength":1,"title":"Secret","description":"HMAC-SHA256 signing secret"},"event":{"type":"string","maxLength":50,"title":"Event","description":"Event name","default":"test.webhook"},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Arbitrary payload data to include"}},"type":"object","required":["url","secret"],"title":"TestWebhookRequest"},"TokenPair":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["access_token","refresh_token","expires_in"],"title":"TokenPair"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"},"user":{"$ref":"#/components/schemas/UserResponse"}},"type":"object","required":["access_token","refresh_token","expires_in","user"],"title":"TokenResponse"},"UsageResponse":{"properties":{"tier":{"type":"string","title":"Tier"},"monthly_requests":{"type":"integer","title":"Monthly Requests"},"current_usage":{"type":"integer","title":"Current Usage"},"remaining":{"type":"integer","title":"Remaining"},"rate_limit_rpm":{"type":"integer","title":"Rate Limit Rpm"},"percent_used":{"type":"number","title":"Percent Used"}},"type":"object","required":["tier","monthly_requests","current_usage","remaining","rate_limit_rpm","percent_used"],"title":"UsageResponse"},"UserLogin":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"UserLogin"},"UserRegister":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"}},"type":"object","required":["email","password"],"title":"UserRegister"},"UserResponse":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"email_verified":{"type":"boolean","title":"Email Verified"},"is_active":{"type":"boolean","title":"Is Active"},"auth_method":{"type":"string","title":"Auth Method"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","email_verified","is_active","auth_method","created_at"],"title":"UserResponse"},"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"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}