{"openapi":"3.1.0","info":{"title":"Aius approved agent setup","version":"1.0.0","description":"Opt-in pilot. Human browser approval of an immutable manifest; this is not OAuth or MCP. No domain ownership proof. See /agents.md for URL policy, retry and readiness semantics."},"servers":[{"url":"https://aius.dk"}],"components":{"securitySchemes":{"setupToken":{"type":"http","scheme":"bearer","description":"Secret returned once by createSetup. Before approval it can only poll its own pending setup. Expires two hours after approval; revocable."}},"schemas":{"SetupRequest":{"type":"object","properties":{"clientName":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[^\\x00-\\x1f\\x7f]*$"},"manifest":{"type":"object","properties":{"version":{"type":"number","const":1},"siteUrl":{"type":"string","minLength":1,"maxLength":2048},"bot":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"agentName":{"type":"string","minLength":1,"maxLength":80},"siteName":{"type":"string","maxLength":80},"defaultLang":{"type":"string","enum":["da","en","sv","no","de"]},"theme":{"type":"string","enum":["light","dark","auto"]},"position":{"type":"string","enum":["left","right"]},"welcomeText":{"type":"string","maxLength":500},"inputPlaceholder":{"type":"string","maxLength":120},"launcherText":{"type":"string","maxLength":80},"primaryColor":{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"},"style":{"type":"object","properties":{"v":{"type":"number","const":1},"light":{"type":"object","properties":{"panel":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"panelOpacity":{"type":"number","minimum":0.3,"maximum":1},"blur":{"type":"number","minimum":0,"maximum":40},"header":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"headerOpacity":{"type":"number","minimum":0,"maximum":1},"headerText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"text":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"muted":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"line":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"lineOpacity":{"type":"number","minimum":0,"maximum":1},"accent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accentText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"avatar":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"avatarText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"link":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"linkOpacity":{"type":"number","minimum":0,"maximum":1},"linkText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"userBubble":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"userText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"botBubble":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"botBubbleOpacity":{"type":"number","minimum":0,"maximum":1},"botText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"input":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"inputOpacity":{"type":"number","minimum":0,"maximum":1},"launcher":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"launcherText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["panel","panelOpacity","blur","header","headerOpacity","headerText","text","muted","line","lineOpacity","accent","accentText","link","linkOpacity","linkText","userBubble","userText","botBubble","botBubbleOpacity","botText","input","inputOpacity","launcher","launcherText"],"additionalProperties":false},"dark":{"type":"object","properties":{"panel":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"panelOpacity":{"type":"number","minimum":0.3,"maximum":1},"blur":{"type":"number","minimum":0,"maximum":40},"header":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"headerOpacity":{"type":"number","minimum":0,"maximum":1},"headerText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"text":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"muted":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"line":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"lineOpacity":{"type":"number","minimum":0,"maximum":1},"accent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accentText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"avatar":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"avatarText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"link":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"linkOpacity":{"type":"number","minimum":0,"maximum":1},"linkText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"userBubble":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"userText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"botBubble":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"botBubbleOpacity":{"type":"number","minimum":0,"maximum":1},"botText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"input":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"inputOpacity":{"type":"number","minimum":0,"maximum":1},"launcher":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"launcherText":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["panel","panelOpacity","blur","header","headerOpacity","headerText","text","muted","line","lineOpacity","accent","accentText","link","linkOpacity","linkText","userBubble","userText","botBubble","botBubbleOpacity","botText","input","inputOpacity","launcher","launcherText"],"additionalProperties":false},"radius":{"type":"number","minimum":8,"maximum":28},"flow":{"type":"string","enum":["bottom","top"],"default":"bottom"},"avatars":{"type":"boolean","default":true},"showCompanyName":{"type":"boolean","default":true}},"required":["v","light","dark","radius"],"additionalProperties":false},"textsByLang":{"type":"object","properties":{"da":{"type":"object","properties":{"welcomeText":{"type":"string","maxLength":500},"inputPlaceholder":{"type":"string","maxLength":120},"launcherText":{"type":"string","maxLength":80},"disclaimerText":{"type":"string","maxLength":400},"fallbackMessage":{"type":"string","maxLength":500},"ctaLabel":{"type":"string","maxLength":80}},"required":[],"additionalProperties":false},"en":{"type":"object","properties":{"welcomeText":{"type":"string","maxLength":500},"inputPlaceholder":{"type":"string","maxLength":120},"launcherText":{"type":"string","maxLength":80},"disclaimerText":{"type":"string","maxLength":400},"fallbackMessage":{"type":"string","maxLength":500},"ctaLabel":{"type":"string","maxLength":80}},"required":[],"additionalProperties":false},"sv":{"type":"object","properties":{"welcomeText":{"type":"string","maxLength":500},"inputPlaceholder":{"type":"string","maxLength":120},"launcherText":{"type":"string","maxLength":80},"disclaimerText":{"type":"string","maxLength":400},"fallbackMessage":{"type":"string","maxLength":500},"ctaLabel":{"type":"string","maxLength":80}},"required":[],"additionalProperties":false},"no":{"type":"object","properties":{"welcomeText":{"type":"string","maxLength":500},"inputPlaceholder":{"type":"string","maxLength":120},"launcherText":{"type":"string","maxLength":80},"disclaimerText":{"type":"string","maxLength":400},"fallbackMessage":{"type":"string","maxLength":500},"ctaLabel":{"type":"string","maxLength":80}},"required":[],"additionalProperties":false},"de":{"type":"object","properties":{"welcomeText":{"type":"string","maxLength":500},"inputPlaceholder":{"type":"string","maxLength":120},"launcherText":{"type":"string","maxLength":80},"disclaimerText":{"type":"string","maxLength":400},"fallbackMessage":{"type":"string","maxLength":500},"ctaLabel":{"type":"string","maxLength":80}},"required":[],"additionalProperties":false}},"required":[],"additionalProperties":false}},"required":["name"],"additionalProperties":false}},"required":["version","siteUrl","bot"],"additionalProperties":false}},"required":["clientName","manifest"],"additionalProperties":false}}},"paths":{"/api/v1/agent/capabilities":{"get":{"operationId":"getCapabilities","responses":{"200":{"description":"Current limits, style presets, supported operations and execution model.","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}}}}},"/api/v1/agent/setups":{"post":{"operationId":"createSetup","description":"No website fetch or customer account changes. Give only approvalUrl and matchCode to the human. A new call creates a separate pending intent.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupRequest"}}}},"responses":{"201":{"description":"Pending intent; token is secret and returned once.","content":{"application/json":{"schema":{"type":"object","required":["id","token","state","approvalUrl","matchCode","statusUrl","expiresAt"],"properties":{"id":{"type":"string"},"token":{"type":"string","writeOnly":true},"state":{"const":"pending"},"approvalUrl":{"type":"string","format":"uri"},"matchCode":{"type":"string"},"manifestHash":{"type":"string"},"statusUrl":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"},"pollAfterSeconds":{"type":"number"}}}}}},"400":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"401":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"403":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"404":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"409":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"413":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"415":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"429":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"503":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}}}}},"/api/v1/agent/setups/{id}":{"get":{"security":[{"setupToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"getSetupStatus","responses":{"200":{"description":"Pending or approved state, saved result and readiness. Poll at most once per three seconds. Inactive grants return 401, not a result.","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"enum":["pending","approved"]},"applied":{"type":"boolean"},"approvedAccount":{"type":["object","null"],"description":"The account that approved: company name and masked approver email. Confirm it with the customer before installing the snippet.","properties":{"companyName":{"type":"string"},"approverEmail":{"type":"string"}}},"result":{"type":"object","description":"The saved configuration, actual public key, language, style, source, embed and preview URL. No visitor or account data."},"readiness":{"type":"object","description":"configurationSaved, sourceHasExcerpts, mayAnswerVisitors, websiteChatObserved, operation and source.latestReport. Latest source report may come from a later admin run; operation identifies this setup's job."}}}}}},"400":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"401":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"403":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"404":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"409":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"413":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"415":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"429":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"503":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}}}}},"/api/v1/agent/setups/{id}/apply":{"post":{"security":[{"setupToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[!-~]+$"}}],"operationId":"applySetup","description":"NO request body. Save only the approved manifest, atomically. Retry with the SAME key; another key conflicts. Does not start indexing.","responses":{"200":{"description":"Saved result or identical replay.","content":{"application/json":{"schema":{"type":"object","required":["applied","result"],"properties":{"applied":{"const":true},"approvedAccount":{"type":["object","null"],"description":"The account that approved: company name and masked approver email. Confirm it with the customer before installing the snippet.","properties":{"companyName":{"type":"string"},"approverEmail":{"type":"string"}}},"result":{"type":"object","description":"The saved configuration, actual public key, language, style, source, embed and preview URL. No visitor or account data."}}}}}},"400":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"401":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"403":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"404":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"409":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"413":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"415":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"429":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"503":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}}}}},"/api/v1/agent/setups/{id}/index":{"post":{"security":[{"setupToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[!-~]+$"}}],"operationId":"indexSource","description":"NO body. Await one request-based crawl. Allow a 240s client timeout; after timeout GET setup status. SAME key never starts a second job. No durable queue or automatic retry. Partial crawl is a finished job, not permission to loop.","responses":{"200":{"description":"Terminal operation status. succeeded means a committed run; inspect the crawl report for complete/partial and retained older excerpts.","content":{"application/json":{"schema":{"type":"object","required":["operation"],"properties":{"operation":{"type":"object","required":["state"],"properties":{"state":{"enum":["not_started","starting","running","succeeded","interrupted","cancelled","failed"]},"jobId":{"type":"string"},"sourceId":{"type":"string"},"pagesFetched":{"type":"number"},"pageLimit":{"type":"number"},"indexedPages":{"type":"number"},"chunks":{"type":"number"},"stopReason":{"type":["string","null"]},"failReason":{"type":["string","null"]},"retrySameKey":{"type":"boolean"}}}}}}}},"202":{"description":"Another request is starting/running the same operation. Poll setup status; this response is not a queue acknowledgement.","content":{"application/json":{"schema":{"type":"object","required":["operation"],"properties":{"operation":{"type":"object","required":["state"],"properties":{"state":{"enum":["not_started","starting","running","succeeded","interrupted","cancelled","failed"]},"jobId":{"type":"string"},"sourceId":{"type":"string"},"pagesFetched":{"type":"number"},"pageLimit":{"type":"number"},"indexedPages":{"type":"number"},"chunks":{"type":"number"},"stopReason":{"type":["string","null"]},"failReason":{"type":["string","null"]},"retrySameKey":{"type":"boolean"}}}}}}}},"400":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"401":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"403":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"404":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"409":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"413":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"415":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"429":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"503":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}}}}},"/api/v1/agent/setups/{id}/embed":{"get":{"security":[{"setupToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"getEmbed","responses":{"200":{"description":"Actual bot snippet, language, installation URL and CSP instructions. Installing needs separate customer repo/CMS authorization.","content":{"application/json":{"schema":{"type":"object","properties":{"snippet":{"type":"string"},"defaultLang":{"enum":["da","en","sv","no","de"]},"installationUrl":{"type":"string","format":"uri"},"instructions":{"type":"string"},"csp":{"type":"string"}}}}}},"400":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"401":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"403":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"404":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"409":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"413":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"415":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"429":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}},"503":{"description":"Use code, not the localized error string. 401 stop; 403 stop or ask human; 409 inspect code/status and seek a new approval if the plan changed; 429/503 honor Retry-After. Never loop a crawl.","content":{"application/json":{"schema":{"type":"object","required":["code","error"],"properties":{"code":{"type":"string"},"error":{"type":"string"}}}}}}}}}}}