{"openapi":"3.1.0","info":{"title":"LLMTOKENAPI","version":"2026-09-01","description":"Unified model and agent infrastructure API. Internal provider identities are never part of the public contract."},"servers":[{"url":"https://api.llmtokenapi.ru"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/v1/account/web-trial":{"get":{"operationId":"webTrialStatus","tags":["Account"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/account/trial-balance":{"get":{"operationId":"trialBalanceStatus","tags":["Account"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/account/search-trial":{"get":{"operationId":"searchTrialStatus","tags":["Account"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/search":{"post":{"operationId":"webSearch","tags":["Web Intelligence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":2000},"limit":{"default":10,"type":"integer","minimum":1,"maximum":100},"mode":{"default":"balanced","type":"string","enum":["fast","balanced","deep"]},"topic":{"default":"general","type":"string","enum":["general","news","finance"]},"language":{"type":"string","minLength":2,"maxLength":16},"country":{"type":"string","minLength":2,"maxLength":2},"timeRange":{"type":"string","enum":["day","week","month","year"]},"startDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"includeDomains":{"maxItems":50,"type":"array","items":{"type":"string"}},"excludeDomains":{"maxItems":50,"type":"array","items":{"type":"string"}},"includeAnswer":{"default":false,"anyOf":[{"type":"boolean"},{"type":"string","enum":["basic","advanced"]}]},"includeRawContent":{"default":false,"anyOf":[{"type":"boolean"},{"type":"string","enum":["markdown","text"]}]},"rerank":{"default":false,"type":"boolean"}},"required":["query"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/search/public":{"post":{"operationId":"publicWebSearchTrial","tags":["Public Trial"],"security":[],"parameters":[{"in":"header","name":"X-LLMTOKENAPI-Title","required":false,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":2000},"limit":{"default":10,"type":"integer","minimum":1,"maximum":100},"topic":{"default":"general","type":"string","enum":["general","news","finance"]},"language":{"type":"string","minLength":2,"maxLength":16},"country":{"type":"string","minLength":2,"maxLength":2},"includeDomains":{"maxItems":50,"type":"array","items":{"type":"string"}},"excludeDomains":{"maxItems":50,"type":"array","items":{"type":"string"}}},"required":["query"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"429":{"description":"Public trial rate limit exceeded"}}}},"/v1/answer":{"post":{"operationId":"webAnswer","tags":["Web Intelligence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":2000},"stream":{"default":false,"type":"boolean"},"text":{"default":false,"type":"boolean"},"model":{"type":"string","const":"exa"},"systemPrompt":{"type":"string","minLength":1,"maxLength":8000},"userLocation":{"type":"string","minLength":2,"maxLength":120},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["query"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/answer/public":{"post":{"operationId":"publicAiSearch","tags":["Public Search"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":3,"maxLength":500}},"required":["query"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"429":{"description":"Public search rate or funded capacity limit exceeded"}}}},"/v1/extract":{"post":{"operationId":"webExtract","tags":["Web Intelligence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"urls":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","format":"uri"}},"query":{"type":"string","minLength":1,"maxLength":2000},"chunksPerSource":{"default":3,"type":"integer","minimum":1,"maximum":5},"extractDepth":{"default":"basic","type":"string","enum":["basic","advanced"]},"format":{"default":"markdown","type":"string","enum":["markdown","text"]}},"required":["urls"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/contents":{"post":{"operationId":"webContents","tags":["Web Intelligence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"urls":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}},"text":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"maxCharacters":{"type":"integer","minimum":100,"maximum":1000000}}}]},"highlights":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":8000},"maxCharacters":{"type":"integer","minimum":100,"maximum":20000},"dynamic":{"default":false,"type":"boolean"}}}]},"summary":{"default":false,"anyOf":[{"type":"boolean"},{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":8000},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}]},"extras":{"default":{"links":false},"type":"object","properties":{"links":{"default":false,"anyOf":[{"type":"boolean"},{"type":"integer","minimum":0,"maximum":100}]}}},"maxAgeHours":{"type":"integer","minimum":-1,"maximum":720},"livecrawlTimeout":{"default":10000,"type":"integer","exclusiveMinimum":0,"maximum":90000},"timeoutMs":{"type":"integer","minimum":1000,"maximum":90000},"subpages":{"default":0,"type":"integer","minimum":0,"maximum":100},"subpageTarget":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}]}},"required":["urls"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/fetch":{"post":{"operationId":"webFetch","tags":["Web Intelligence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"timeoutMs":{"default":20000,"type":"integer","minimum":1000,"maximum":60000},"maxBytes":{"default":2000000,"type":"integer","minimum":1024,"maximum":10000000}},"required":["url"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/fetch/public":{"get":{"operationId":"publicWebFetchTrial","tags":["Public Trial"],"security":[],"parameters":[{"in":"header","name":"X-LLMTOKENAPI-Title","required":false,"schema":{"type":"string","maxLength":128}},{"in":"query","name":"url","required":true,"schema":{"type":"string","format":"uri"}},{"in":"query","name":"max_chars","schema":{"type":"integer","minimum":1000,"maximum":100000,"default":50000}},{"in":"query","name":"live","schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"429":{"description":"Public trial rate limit exceeded"}}}},"/v1/scrape":{"post":{"operationId":"webScrape","tags":["Web Intelligence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"timeoutMs":{"default":20000,"type":"integer","minimum":1000,"maximum":60000},"maxBytes":{"default":2000000,"type":"integer","minimum":1024,"maximum":10000000},"formats":{"default":["markdown"],"minItems":1,"type":"array","items":{"type":"string","enum":["markdown","html","links","metadata"]}},"waitForMs":{"default":0,"type":"integer","minimum":0,"maximum":15000},"browser":{"default":false,"type":"boolean"}},"required":["url"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/map":{"post":{"operationId":"webMap","tags":["Jobs"],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"limit":{"default":500,"type":"integer","minimum":1,"maximum":10000},"search":{"type":"string","maxLength":500},"includeSubdomains":{"default":false,"type":"boolean"},"webhookEndpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"webhookUrl":{"type":"string","format":"uri"}},"required":["url"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Job accepted"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/crawl":{"post":{"operationId":"webCrawl","tags":["Jobs"],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"limit":{"default":100,"type":"integer","minimum":1,"maximum":10000},"maxDepth":{"default":5,"type":"integer","minimum":0,"maximum":20},"includePaths":{"maxItems":100,"type":"array","items":{"type":"string"}},"excludePaths":{"maxItems":100,"type":"array","items":{"type":"string"}},"respectRobotsTxt":{"default":true,"type":"boolean","const":true},"webhookEndpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"webhookUrl":{"type":"string","format":"uri"}},"required":["url"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Job accepted"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/research":{"post":{"operationId":"researchStart","tags":["Research"],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"string","minLength":3,"maxLength":20000},"model":{"default":"auto","type":"string","enum":["mini","pro","auto"]},"stream":{"default":false,"type":"boolean"},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"citationFormat":{"default":"numbered","type":"string","enum":["numbered","mla","apa","chicago"]},"maxSources":{"default":20,"type":"integer","minimum":3,"maximum":100},"maxSpendKopecks":{"type":"integer","minimum":1,"maximum":100000},"webhookEndpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["input"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Job accepted"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/web-intelligence/jobs":{"post":{"operationId":"webIntelligenceJobCreate","tags":["Web Intelligence Jobs"],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"question":{"type":"string","minLength":3,"maxLength":20000},"urls":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}},"domain":{"type":"string","maxLength":2048,"format":"uri"},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"outputFormat":{"default":"json","type":"string","enum":["json","table"]},"filters":{"type":"object","properties":{"topic":{"default":"general","type":"string","enum":["general","news","finance"]},"language":{"type":"string","minLength":2,"maxLength":16},"country":{"type":"string","minLength":2,"maxLength":2},"timeRange":{"type":"string","enum":["day","week","month","year"]},"startDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"includeDomains":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":253}},"excludeDomains":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":253}},"includePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}},"excludePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}}},"additionalProperties":false},"maxAgeHours":{"default":168,"type":"integer","minimum":-1,"maximum":8760},"maxSources":{"default":20,"type":"integer","minimum":1,"maximum":100},"maxSpendKopecks":{"type":"integer","minimum":1,"maximum":1000000},"model":{"default":"auto","type":"string","enum":["mini","pro","auto"]},"webhookEndpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"schedule":{"type":"object","properties":{"intervalMinutes":{"type":"integer","minimum":15,"maximum":43200}},"required":["intervalMinutes"],"additionalProperties":false},"templateName":{"type":"string","minLength":1,"maxLength":200},"templateDescription":{"type":"string","maxLength":2000}},"required":["question","outputSchema","maxSpendKopecks"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Job accepted"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/web-intelligence/jobs/{id}":{"get":{"operationId":"webIntelligenceJobGet","tags":["Web Intelligence Jobs"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/web-intelligence/templates":{"get":{"operationId":"webIntelligenceTemplateList","tags":["Web Intelligence Jobs"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"post":{"operationId":"webIntelligenceTemplateCreate","tags":["Web Intelligence Jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"question":{"type":"string","minLength":3,"maxLength":20000},"urls":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}},"domain":{"type":"string","maxLength":2048,"format":"uri"},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"outputFormat":{"default":"json","type":"string","enum":["json","table"]},"filters":{"type":"object","properties":{"topic":{"default":"general","type":"string","enum":["general","news","finance"]},"language":{"type":"string","minLength":2,"maxLength":16},"country":{"type":"string","minLength":2,"maxLength":2},"timeRange":{"type":"string","enum":["day","week","month","year"]},"startDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"includeDomains":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":253}},"excludeDomains":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":253}},"includePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}},"excludePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}}},"additionalProperties":false},"maxAgeHours":{"default":168,"type":"integer","minimum":-1,"maximum":8760},"maxSources":{"default":20,"type":"integer","minimum":1,"maximum":100},"maxSpendKopecks":{"type":"integer","minimum":1,"maximum":1000000},"model":{"default":"auto","type":"string","enum":["mini","pro","auto"]},"webhookEndpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2000},"intervalMinutes":{"default":null,"anyOf":[{"type":"integer","minimum":15,"maximum":43200},{"type":"null"}]},"runImmediately":{"default":false,"type":"boolean"}},"required":["question","outputSchema","maxSpendKopecks","name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Job accepted"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/web-intelligence/templates/{id}":{"get":{"operationId":"webIntelligenceTemplateGet","tags":["Web Intelligence Jobs"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"patch":{"operationId":"webIntelligenceTemplateUpdate","tags":["Web Intelligence Jobs"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"question":{"type":"string","minLength":3,"maxLength":20000},"urls":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}},"domain":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"outputFormat":{"type":"string","enum":["json","table"]},"filters":{"type":"object","properties":{"topic":{"default":"general","type":"string","enum":["general","news","finance"]},"language":{"type":"string","minLength":2,"maxLength":16},"country":{"type":"string","minLength":2,"maxLength":2},"timeRange":{"type":"string","enum":["day","week","month","year"]},"startDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"includeDomains":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":253}},"excludeDomains":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":253}},"includePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}},"excludePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}}},"additionalProperties":false},"maxAgeHours":{"type":"integer","minimum":-1,"maximum":8760},"maxSources":{"type":"integer","minimum":1,"maximum":100},"maxSpendKopecks":{"type":"integer","minimum":1,"maximum":1000000},"model":{"type":"string","enum":["mini","pro","auto"]},"webhookEndpointId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"intervalMinutes":{"anyOf":[{"type":"integer","minimum":15,"maximum":43200},{"type":"null"}]},"status":{"type":"string","enum":["active","paused"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"delete":{"operationId":"webIntelligenceTemplateDelete","tags":["Web Intelligence Jobs"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/web-intelligence/templates/{id}/runs":{"get":{"operationId":"webIntelligenceTemplateRunList","tags":["Web Intelligence Jobs"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"post":{"operationId":"webIntelligenceTemplateRunCreate","tags":["Web Intelligence Jobs"],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Job accepted"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/agent/runs":{"post":{"operationId":"agentRunCreate","tags":["Agent"],"parameters":[{"in":"header","name":"Idempotency-Key","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":20000},"systemPrompt":{"type":"string","minLength":1,"maxLength":8000},"input":{"type":"object","properties":{"data":{"default":[],"maxItems":1000,"type":"array","items":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":200},"additionalProperties":{}}},"exclusion":{"default":[],"maxItems":1000,"type":"array","items":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":200},"additionalProperties":{}}}}},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"effort":{"default":"auto","type":"string","enum":["minimal","low","medium","high","xhigh","auto","max"]},"previousRunId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metadata":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"type":"string","maxLength":2000}},"maxSources":{"default":20,"type":"integer","minimum":3,"maximum":100},"maxSpendKopecks":{"type":"integer","minimum":1,"maximum":1000000},"webhookEndpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["query"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"get":{"operationId":"agentRunList","tags":["Agent"],"parameters":[{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"in":"query","name":"cursor","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/agent/runs/{id}":{"get":{"operationId":"agentRunGet","tags":["Agent"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"delete":{"operationId":"agentRunDelete","tags":["Agent"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/agent/runs/{id}/cancel":{"post":{"operationId":"agentRunCancel","tags":["Agent"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/agent/runs/{id}/events":{"get":{"operationId":"agentRunEvents","tags":["Agent"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/jobs/{id}":{"get":{"operationId":"jobGet","tags":["Jobs"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"delete":{"operationId":"jobCancel","tags":["Jobs"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/jobs/{id}/results":{"get":{"operationId":"jobResults","tags":["Jobs"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/rerank":{"post":{"operationId":"rerank","tags":["Rerank"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"model":{"default":"semantic-rerank-v1","type":"string","minLength":1},"query":{"type":"string","minLength":1,"maxLength":8000},"documents":{"minItems":1,"maxItems":100,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":100000},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"text":{"type":"string","minLength":1,"maxLength":100000},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["text"]}]}},"topN":{"type":"integer","minimum":1,"maximum":100},"top_n":{"type":"integer","minimum":1,"maximum":100},"returnDocuments":{"type":"boolean"},"return_documents":{"type":"boolean"}},"required":["query","documents"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/audio/speech":{"post":{"operationId":"audioSpeech","tags":["Audio"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"model":{"type":"string","minLength":1},"input":{"type":"string","minLength":1,"maxLength":4096},"voice":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":160}},"required":["id"]}]},"instructions":{"type":"string","maxLength":4096},"response_format":{"default":"mp3","type":"string","enum":["mp3","opus","aac","flac","wav","pcm"]},"speed":{"default":1,"type":"number","minimum":0.25,"maximum":4},"stream_format":{"default":"audio","type":"string","enum":["audio","sse"]}},"required":["model","input","voice"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/audio/transcriptions":{"post":{"operationId":"audioTranscription","tags":["Audio"],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file","model"],"properties":{"file":{"type":"string","format":"binary"},"model":{"type":"string"},"language":{"type":"string"},"response_format":{"type":"string","enum":["json","text","srt","verbose_json","vtt"]}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/webhook-endpoints":{"get":{"operationId":"webhookList","tags":["Webhooks"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"post":{"operationId":"webhookCreate","tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"description":{"type":"string","maxLength":300},"eventTypes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["job.queued","job.running","job.progress","job.completed","job.failed","job.cancelled","research.progress","research.completed","research.failed","research.cancelled","knowledge.file.ready","knowledge.file.failed","monitor.changed","monitor.failed","browser.started","browser.stopped","browser.failed","sandbox.started","sandbox.stopped","sandbox.failed"]}}},"required":["url","eventTypes"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Endpoint created; secret is returned once"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/knowledge-bases":{"get":{"operationId":"knowledgeBaseList","tags":["Knowledge"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"post":{"operationId":"knowledgeBaseCreate","tags":["Knowledge"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2000}},"required":["name"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Knowledge base created"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/knowledge-bases/{id}/files":{"get":{"operationId":"knowledgeFileList","tags":["Knowledge"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"post":{"operationId":"knowledgeFileUpload","tags":["Knowledge"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Job accepted"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/knowledge-bases/{id}/status":{"get":{"operationId":"knowledgeBaseStatus","tags":["Knowledge"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/knowledge-bases/{id}/search":{"post":{"operationId":"knowledgeSearch","tags":["Knowledge"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":8000},"topK":{"default":10,"type":"integer","minimum":1,"maximum":50},"rerank":{"default":true,"type":"boolean"}},"required":["query"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/knowledge-bases/{id}/answer":{"post":{"operationId":"knowledgeAnswer","tags":["Knowledge"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":8000},"topK":{"default":10,"type":"integer","minimum":1,"maximum":50},"rerank":{"default":true,"type":"boolean"},"model":{"default":"auto","type":"string","minLength":1,"maxLength":200},"maxOutputTokens":{"default":2048,"type":"integer","minimum":64,"maximum":32000}},"required":["query"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/knowledge-bases/{id}/sources":{"get":{"operationId":"knowledgeSourceList","tags":["Website Knowledge Sync"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"post":{"operationId":"knowledgeSourceCreate","tags":["Website Knowledge Sync"],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"name":{"type":"string","minLength":1,"maxLength":200},"includePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}},"excludePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}},"maxPages":{"default":100,"type":"integer","minimum":1,"maximum":10000},"maxDepth":{"default":5,"type":"integer","minimum":0,"maximum":20},"intervalMinutes":{"default":1440,"anyOf":[{"type":"integer","minimum":15,"maximum":43200},{"type":"null"}]},"maxSpendKopecks":{"type":"integer","minimum":1,"maximum":1000000},"webhookEndpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"syncNow":{"default":true,"type":"boolean"}},"required":["url","maxSpendKopecks"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Job accepted"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/knowledge-bases/{id}/sources/{sourceId}":{"get":{"operationId":"knowledgeSourceGet","tags":["Website Knowledge Sync"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"sourceId","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"patch":{"operationId":"knowledgeSourceUpdate","tags":["Website Knowledge Sync"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"sourceId","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"name":{"type":"string","minLength":1,"maxLength":200},"includePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}},"excludePaths":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000}},"maxPages":{"default":100,"type":"integer","minimum":1,"maximum":10000},"maxDepth":{"default":5,"type":"integer","minimum":0,"maximum":20},"intervalMinutes":{"anyOf":[{"type":"integer","minimum":15,"maximum":43200},{"type":"null"}]},"maxSpendKopecks":{"type":"integer","minimum":1,"maximum":1000000},"webhookEndpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","paused"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"delete":{"operationId":"knowledgeSourceDelete","tags":["Website Knowledge Sync"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"sourceId","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/knowledge-bases/{id}/sources/{sourceId}/sync":{"post":{"operationId":"knowledgeSourceSync","tags":["Website Knowledge Sync"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"sourceId","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Job accepted"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/knowledge-bases/{id}/sources/{sourceId}/runs":{"get":{"operationId":"knowledgeSourceRunList","tags":["Website Knowledge Sync"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"sourceId","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/monitors":{"get":{"operationId":"monitorList","tags":["Monitors"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}},"post":{"operationId":"monitorCreate","tags":["Monitors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"name":{"type":"string","minLength":1,"maxLength":200},"intervalMinutes":{"default":60,"type":"integer","minimum":15,"maximum":43200},"selector":{"type":"string","maxLength":1000}},"required":["url","name"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Monitor created"},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"}}}},"/v1/browser/sessions":{"post":{"operationId":"browserSessionCreate","tags":["Browser"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ttlSeconds":{"default":600,"type":"integer","minimum":60,"maximum":1800},"profileId":{"type":"string","minLength":1,"maxLength":200}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"503":{"description":"Required isolated execution node is not connected"}}}},"/v1/browser/sessions/{id}":{"get":{"operationId":"browserSessionGet","tags":["Browser"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"503":{"description":"Required isolated execution node is not connected"}}},"delete":{"operationId":"browserSessionClose","tags":["Browser"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"503":{"description":"Required isolated execution node is not connected"}}}},"/v1/browser/sessions/{id}/actions":{"post":{"operationId":"browserAction","tags":["Browser"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["navigate","click","type","wait","evaluate","screenshot","pdf"]},"url":{"type":"string","format":"uri"},"selector":{"type":"string","maxLength":2000},"text":{"type":"string","maxLength":100000},"script":{"type":"string","maxLength":100000},"timeoutMs":{"default":15000,"type":"integer","minimum":100,"maximum":60000}},"required":["type"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"503":{"description":"Required isolated execution node is not connected"}}}},"/v1/sandboxes":{"post":{"operationId":"sandboxCreate","tags":["Sandboxes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"template":{"default":"base","type":"string","minLength":1,"maxLength":200},"ttlSeconds":{"default":900,"type":"integer","minimum":60,"maximum":7200},"cpu":{"default":1,"type":"integer","minimum":1,"maximum":8},"memoryMb":{"default":1024,"type":"integer","minimum":256,"maximum":16384}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"503":{"description":"Required isolated execution node is not connected"}}}},"/v1/sandboxes/{id}":{"get":{"operationId":"sandboxGet","tags":["Sandboxes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"503":{"description":"Required isolated execution node is not connected"}}},"delete":{"operationId":"sandboxDelete","tags":["Sandboxes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"503":{"description":"Required isolated execution node is not connected"}}}},"/v1/sandboxes/{id}/commands":{"post":{"operationId":"sandboxCommand","tags":["Sandboxes"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"command":{"type":"string","minLength":1,"maxLength":20000},"timeoutMs":{"default":30000,"type":"integer","minimum":100,"maximum":120000}},"required":["command"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Invalid API key"},"403":{"description":"Insufficient scope"},"503":{"description":"Required isolated execution node is not connected"}}}}}}