{"openapi": "3.1.0", "info": {"title": "Officely public API", "version": "v1", "description": "Chatbots, AI flows, customers, conversations, messages and webhooks of your Officely account. Base URL https://api.officely.ai/v1/public; send your API key in the x-officely-token header. Errors are problem+json; personal data is masked unless the key has conversations:read_pii and the request says redact=false. Scopes: account:manage, account:read, account:write, ai_flows:publish, ai_flows:read, ai_flows:write, ai_keys:manage, builders:publish, builders:read, builders:test, builders:write, channels:manage, conversations:read, conversations:read_pii, conversations:write, customers:block, customers:erase, customers:read, customers:write, integrations:manage, messages:send, schedules:read, schedules:write, webhooks:manage."}, "servers": [{"url": "https://api.officely.ai/v1/public"}], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "paths": {"/account/alerts": {"get": {"operationId": "list_account_alerts", "summary": "List account alerts", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). Open account incidents, as the dashboard banner shows them: {enabled, checks, auto_repair, alerts: [{id, kind, severity, ...}]} (Green API watchdog: green_disconnected, green_webhook_conflict, ...; blocking notices). Fixing them is done in Dashboard > Channels.", "tags": ["account"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_whatsapp_health_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/agents": {"get": {"operationId": "list_agents", "summary": "List agents", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["agents"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_builders_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/ai-credits": {"get": {"operationId": "ai_credits", "summary": "Ai credits", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-credits"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/ai-credits/bot-limits/{agent_id}": {"put": {"operationId": "set_ai_credit_bot_limit", "summary": "Set ai credit bot limit", "description": "Scopes: account:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {monthly_cap_credits: whole credits | null}. agent_id is an AI flow of the account (GET /ai-credits/settings lists them under bots); 404 ai-flow-not-found otherwise.", "tags": ["ai-credits"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_account_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_credits.bot_limit.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-credits/settings": {"get": {"operationId": "get_ai_credit_settings", "summary": "Get ai credit settings", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-credits"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "put": {"operationId": "update_ai_credit_settings", "summary": "Update ai credit settings", "description": "Scopes: account:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {monthly_cap_credits?, low_balance_credits?, allowed_models?}: fields left out keep their value; null removes that limit (allowed_models null = every model). A reached monthly cap stops AI answers until the month resets or the cap is raised. Auto top-up, packs and cards are not in the API (400 not-in-api).", "tags": ["ai-credits"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_account_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_credits.settings.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-credits/usage": {"get": {"operationId": "ai_credits_usage", "summary": "Ai credits usage", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-credits"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/ai-credits/usage.csv": {"get": {"operationId": "ai_credits_usage_csv", "summary": "Ai credits usage csv", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). Answers text/csv (not JSON): date, chatbot_id, chatbot, model, ai_calls, credits, usd per day x bot x model for ?month=YYYY-MM (default: this month, UTC).", "tags": ["ai-credits"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/ai-flows": {"get": {"operationId": "list_flows", "summary": "List flows", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "post": {"operationId": "create_flow", "summary": "Create flow", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}": {"get": {"operationId": "get_flow", "summary": "Get flow", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "delete": {"operationId": "delete_flow", "summary": "Delete flow", "description": "Scopes: ai_flows:publish. Rate limit: 10 requests per 600 s per key (publish). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:publish"], "x-rate-limit-bucket": "publish", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.delete"}}, "/ai-flows/{agent_id}/build": {"post": {"operationId": "build", "summary": "Build", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.build", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/chatbots": {"post": {"operationId": "create_chatbot", "summary": "Create chatbot", "description": "Scopes: ai_flows:read, builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Creates a NEW draft chatbot around the flow (Start -> AI step -> one step per Exit). Nothing is published and no existing chatbot changes. 403 chatbot-limit at the plan's chatbot cap. Undo: DELETE /builders/{builder_id} with {\"confirm\": true}.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read", "builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.chatbot.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/duplicate": {"post": {"operationId": "duplicate", "summary": "Duplicate", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Copies the flow (graph, settings, knowledge, picture) under a new id and re-indexes the copy's knowledge (then builders:test is needed too). The copy is a draft that no chatbot uses: customers don't see it until it is put in a chatbot that is published.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.duplicate", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/knowledge": {"get": {"operationId": "get_knowledge", "summary": "Get knowledge", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read). Every source of the flow's knowledge with its state: included (searched), excluded (kept, not searched) or failed (the last re-index couldn't read it; include it again to retry). A website page's id is its URL, a file's id is its loader id. knowledge_steps: searches all (no selection) or only selected_sources. website: the latest scan of a flow built from a website, else null.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "patch": {"operationId": "update_knowledge", "summary": "Update knowledge", "description": "Scopes: ai_flows:write, ai_flows:publish, builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. Excludes (keeps, stops searching), includes again or removes sources by id, then re-indexes. Removing needs {\"confirm\": true}: a removed uploaded file is deleted. Applies to live chatbots too, so it needs ai_flows:publish (with ai_flows:write and builders:test).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write", "ai_flows:publish", "builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.knowledge.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/knowledge/discover": {"post": {"operationId": "discover_pages", "summary": "Discover pages", "description": "Scopes: ai_flows:read, builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read", "builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.knowledge.discover", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/knowledge/files": {"post": {"operationId": "upload_knowledge_file", "summary": "Upload knowledge file", "description": "Scopes: ai_flows:write, ai_flows:publish. Rate limit: 30 requests per 60 s per key (upload). Write: send an Idempotency-Key; audited. Form fields: file (PDF / TXT / CSV / XLSX, up to 100 MB), node_id? (a Knowledge step that must search it), confirm?, expected_revision?. Adds the file to the flow's knowledge and reads the knowledge again (same ingestion as the dashboard; returns when done). Knowledge has no draft, so this always needs ai_flows:publish (founder decision 2026-10-22); when a live chatbot uses the flow, or the flow has no drafts, it also needs confirm=true. 409 file-exists: rename the file. 403 knowledge-limit: over the plan's knowledge size. Upload: multipart/form-data, the file in `file`, up to 100 MB per request (413).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write", "ai_flows:publish"], "x-rate-limit-bucket": "upload", "x-source": "routes.public_uploads_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}, "411": {"$ref": "#/components/responses/Problem"}, "413": {"$ref": "#/components/responses/Problem"}, "415": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.knowledge_file", "requestBody": {"required": true, "content": {"multipart/form-data": {"schema": {"type": "object", "required": ["file"], "properties": {"file": {"type": "string", "format": "binary"}}, "additionalProperties": {"type": "string"}}}}}, "x-max-body-bytes": 105119744}}, "/ai-flows/{agent_id}/knowledge/pages": {"get": {"operationId": "knowledge_pages", "summary": "Knowledge pages", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/ai-flows/{agent_id}/knowledge/rescan": {"post": {"operationId": "rescan_website", "summary": "Rescan website", "description": "Scopes: ai_flows:write, ai_flows:publish, builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write", "ai_flows:publish", "builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.knowledge.rescan", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/knowledge/sync": {"get": {"operationId": "get_knowledge_sync", "summary": "Get knowledge sync", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read). Keep knowledge up to date: schedule is when the flow re-reads its website pages - {mode: off | hourly | every_n_hours (n 2-23) | daily | weekly (weekday 0=Monday) | monthly (day 1-28), time HH:MM and tz (IANA) for the clock modes}; only pages that changed (ETag / Last-Modified / content hash) are re-indexed. last_update {status: done | held | failed, note, checked_at, changed_at}: note is the owner's line, e.g. \"3 pages updated, 1 removed, 12 unchanged.\"; held means more than half of the pages were missing or moved, so nothing was applied. Free: allowed_modes is [off] and upgrade says why. 503 knowledge-sync-off while the feature is off.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "patch": {"operationId": "set_knowledge_sync", "summary": "Set knowledge sync", "description": "Scopes: ai_flows:write, ai_flows:publish. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {schedule} or the short form {interval: off | hourly | daily | weekly | monthly, tz?} (the clock time is then picked for you in the early morning). Clock times are wall-clock times in tz, so 08:00 stays 08:00 across daylight saving. Every scheduled update changes live answers (knowledge has no draft), so it needs ai_flows:publish. 400 invalid-schedule | invalid-timezone | schedule-too-frequent (min_hours); 403 plan-required: Free has Update now only. A run that is still going is never started twice.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write", "ai_flows:publish"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.knowledge.sync_interval", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/knowledge/sync/run": {"post": {"operationId": "run_knowledge_sync", "summary": "Run knowledge sync", "description": "Scopes: ai_flows:write, ai_flows:publish, builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. Update now: queues a re-check in the background (202) or returns the update already running (already_running: true). Poll GET .../knowledge/sync. Changes apply to live chatbots at once, so it needs ai_flows:publish and builders:test (it reads websites and spends AI on changed pages). 409 no-website-knowledge; 429 update-limit (per flow and per account per 24 hours; available_at).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write", "ai_flows:publish", "builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.knowledge.sync_run", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/knowledge/urls": {"post": {"operationId": "add_knowledge_urls", "summary": "Add knowledge urls", "description": "Scopes: ai_flows:write, ai_flows:publish, builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. Adds website pages and re-indexes the flow's knowledge (reads every included page again, embeds, replaces the vectors). Knowledge has no draft: live chatbots search the new pages as soon as this answers, so it needs ai_flows:publish (with ai_flows:write and builders:test). Every URL passes the SSRF guard first (400 url-blocked: private, loopback, link-local, IP literal or blocked host). 409 knowledge-too-large over 50 included pages: exclude pages or use /knowledge/rescan. A Knowledge step with selected_sources searches the new pages only after you add them to its filter (update_ai_node).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write", "ai_flows:publish", "builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.knowledge.add_urls", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/knowledge/website": {"patch": {"operationId": "set_website_knowledge", "summary": "Set website knowledge", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.knowledge.weekly_recrawl", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/nodes": {"post": {"operationId": "add_node", "summary": "Add node", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.node.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/nodes/{node_id}": {"patch": {"operationId": "update_node", "summary": "Update node", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "node_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.node.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "delete_node", "summary": "Delete node", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "node_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.node.delete"}}, "/ai-flows/{agent_id}/nodes/{node_id}/output-schema": {"put": {"operationId": "output_schema", "summary": "Output schema", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "node_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.node.schema", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/profile": {"patch": {"operationId": "set_profile", "summary": "Set profile", "description": "Scopes: ai_flows:write, ai_flows:publish. Rate limit: 10 requests per 600 s per key (publish). Write: send an Idempotency-Key; audited. Flows built from a website only: name, greeting, tone, contact rewrite the answer step's system prompt and start message. Goes live at once and publishes the flow's draft with it, so it needs ai_flows:publish and {\"confirm\": true}.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write", "ai_flows:publish"], "x-rate-limit-bucket": "publish", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.profile.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/publish": {"post": {"operationId": "publish", "summary": "Publish", "description": "Scopes: ai_flows:publish. Rate limit: 10 requests per 600 s per key (publish). Write: send an Idempotency-Key; audited. Makes the flow's draft its live version: every chatbot whose AI step uses the flow answers with it. An AI flow has no link or widget of its own; put it in a chatbot to reach customers.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:publish"], "x-rate-limit-bucket": "publish", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.publish", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/retrieval-preview": {"post": {"operationId": "retrieval_preview", "summary": "Retrieval preview", "description": "Scopes: ai_flows:read, builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read", "builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.retrieval_preview", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/rollback": {"post": {"operationId": "rollback", "summary": "Rollback", "description": "Scopes: ai_flows:publish. Rate limit: 10 requests per 600 s per key (publish). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:publish"], "x-rate-limit-bucket": "publish", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.rollback", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/settings": {"patch": {"operationId": "settings", "summary": "Settings", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.settings", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/test": {"post": {"operationId": "run_test", "summary": "Run test", "description": "Scopes: ai_flows:read, builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read", "builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/{agent_id}/validation": {"get": {"operationId": "get_validation", "summary": "Get validation", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/ai-flows/{agent_id}/versions": {"get": {"operationId": "get_versions", "summary": "Get versions", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/ai-flows/{agent_id}/versions/enable": {"post": {"operationId": "enable_versions", "summary": "Enable versions", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "agent_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_flow.versions.enable", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-flows/node-types": {"get": {"operationId": "node_types", "summary": "Node types", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-flows"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/ai-keys": {"get": {"operationId": "list_ai_keys", "summary": "List ai keys", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-keys"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/ai-keys/{provider}": {"put": {"operationId": "save_ai_key", "summary": "Save ai key", "description": "Scopes: ai_keys:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {api_key}. The key is checked with the provider (a free list-models call), sealed and stored; 201 when new, 200 when it replaced a key. Write-only: answers carry the provider, set, last4, status and dates, never the key. 422 key-rejected: the provider refused it. Pro only (403 upgrade-required).", "tags": ["ai-keys"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_keys:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_account_bp", "parameters": [{"name": "provider", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_keys.save", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "delete_ai_key", "summary": "Delete ai key", "description": "Scopes: ai_keys:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Removes the key: AI calls to this provider use AI credits again. Allowed on every plan.", "tags": ["ai-keys"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_keys:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_account_bp", "parameters": [{"name": "provider", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_keys.delete"}}, "/ai-keys/{provider}/test": {"post": {"operationId": "test_ai_key", "summary": "Test ai key", "description": "Scopes: ai_keys:manage. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. Checks the saved key with the provider again and records the result: {provider, ok, detail}.", "tags": ["ai-keys"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_keys:manage"], "x-rate-limit-bucket": "test", "x-source": "routes.public_account_bp", "parameters": [{"name": "provider", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "ai_keys.test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/ai-models": {"get": {"operationId": "ai_models", "summary": "Ai models", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["ai-models"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/api-keys": {"get": {"operationId": "api_keys", "summary": "Api keys", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["api-keys"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_extras_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/blocked-numbers": {"get": {"operationId": "list_blocked_numbers", "summary": "List blocked numbers", "description": "Scopes: customers:read. Rate limit: 300 requests per 60 s per key (read). Numbers the bot doesn't answer: {data: [{phone, customer_id, blocked_at}], next_cursor, redacted}, most recently blocked first. Phones are masked unless redact=false (needs conversations:read_pii).", "tags": ["blocked-numbers"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["customers:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_customers_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/blocked-numbers/{phone}": {"put": {"operationId": "block_number", "summary": "Block number", "description": "Scopes: customers:block. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. No body. The bot stops answering this number on every WhatsApp channel of the account (the website chat has no number) and never sends it anything; its messages still show in the Inbox as Not answered: blocked number (one owner notice per customer per day, saying how to unblock). Needs customers:block (customers:write alone can't block). Human mode, opt-out and the conversation don't change, and messages you send yourself still go (use opted_out on PATCH /customers to stop API sends). Works for a number that never wrote. Idempotent: already blocked keeps its blocked_at. 409 block-list-full at 5000 numbers. Not the legacy POST /insert_black_list (a legacy transaction marker).", "tags": ["blocked-numbers"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["customers:block"], "x-rate-limit-bucket": "write", "x-source": "routes.public_customers_bp", "parameters": [{"name": "phone", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "customer.block", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "unblock_number", "summary": "Unblock number", "description": "Scopes: customers:block. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. No body. The bot answers this number's next message, continuing where the conversation was. previously_blocked false: it wasn't blocked (nothing changed).", "tags": ["blocked-numbers"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["customers:block"], "x-rate-limit-bucket": "write", "x-source": "routes.public_customers_bp", "parameters": [{"name": "phone", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "customer.unblock"}}, "/bot-messages/account": {"get": {"operationId": "get_account_messages", "summary": "Get account messages", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["bot-messages"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "put": {"operationId": "put_account_messages", "summary": "Put account messages", "description": "Scopes: account:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["bot-messages"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_account_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "bot_messages.account.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/bot-messages/catalog": {"get": {"operationId": "bot_messages_catalog", "summary": "Bot messages catalog", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["bot-messages"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builder-folders": {"get": {"operationId": "list_folders", "summary": "List folders", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builder-folders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.bot_folders_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "post": {"operationId": "create_folder", "summary": "Create folder", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builder-folders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.bot_folders_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder_folder.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builder-folders/{folder_id}": {"patch": {"operationId": "rename_folder", "summary": "Rename folder", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builder-folders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.bot_folders_bp", "parameters": [{"name": "folder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder_folder.rename", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "delete_folder", "summary": "Delete folder", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builder-folders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.bot_folders_bp", "parameters": [{"name": "folder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder_folder.delete"}}, "/builder-templates": {"get": {"operationId": "list_templates", "summary": "List templates", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builder-templates"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.bot_templates_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builder-templates/{template_id}": {"get": {"operationId": "get_template", "summary": "Get template", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builder-templates"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.bot_templates_bp", "parameters": [{"name": "template_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builder-templates/{template_id}/create": {"post": {"operationId": "create_from_template", "summary": "Create from template", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builder-templates"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.bot_templates_bp", "parameters": [{"name": "template_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder_template.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builder-templates/{template_id}/preview": {"post": {"operationId": "preview_template", "summary": "Preview template", "description": "Scopes: builders:test. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builder-templates"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:test"], "x-rate-limit-bucket": "read", "x-source": "routes.bot_templates_bp", "parameters": [{"name": "template_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders": {"get": {"operationId": "list_builders", "summary": "List builders", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_builders_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "post": {"operationId": "create_builder", "summary": "Create builder", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}": {"get": {"operationId": "get_builder", "summary": "Get builder", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "patch": {"operationId": "rename", "summary": "Rename", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.rename", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "delete_bot", "summary": "Delete bot", "description": "Scopes: builders:write. Rate limit: 10 requests per 600 s per key (publish). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "publish", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.delete"}}, "/builders/{builder_id}/bot-messages": {"get": {"operationId": "get_bot_messages", "summary": "Get bot messages", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "put": {"operationId": "set_bot_messages", "summary": "Set bot messages", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.bot_messages", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/bricks": {"post": {"operationId": "create_brick", "summary": "Create brick", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.brick.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/bricks/{brick_id}": {"patch": {"operationId": "update_brick", "summary": "Update brick", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "brick_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.brick.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "delete_brick", "summary": "Delete brick", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "brick_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.brick.delete"}}, "/builders/{builder_id}/build": {"post": {"operationId": "build_post", "summary": "Build", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.build", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/doctor": {"get": {"operationId": "doctor_report", "summary": "Doctor report", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builders/{builder_id}/doctor/copy": {"post": {"operationId": "doctor_copy", "summary": "Doctor copy", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.doctor.copy", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/duplicate": {"post": {"operationId": "duplicate_bot", "summary": "Duplicate bot", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.duplicate", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/edges": {"post": {"operationId": "add_edge", "summary": "Add edge", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.edge.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/edges/{edge_id}": {"delete": {"operationId": "delete_edge", "summary": "Delete edge", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "edge_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.edge.delete"}}, "/builders/{builder_id}/flow": {"get": {"operationId": "get_flow_get", "summary": "Get flow", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builders/{builder_id}/layout": {"post": {"operationId": "auto_layout", "summary": "Auto layout", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.layout", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/logo": {"post": {"operationId": "set_widget_logo", "summary": "Set widget logo", "description": "Scopes: builders:write. Rate limit: 30 requests per 60 s per key (upload). Write: send an Idempotency-Key; audited. Form fields: file (JPG / PNG / WEBP, up to 5 MB), confirm?, expected_revision?. Sets the website chat's logo (settings.logo). A live chatbot shows it at once: builders:publish and confirm=true (400 confirm-required changes nothing). Answers the bot's settings. Upload: multipart/form-data, the file in `file`, up to 5 MB per request (413).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "upload", "x-source": "routes.public_uploads_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}, "411": {"$ref": "#/components/responses/Problem"}, "413": {"$ref": "#/components/responses/Problem"}, "415": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.logo", "requestBody": {"required": true, "content": {"multipart/form-data": {"schema": {"type": "object", "required": ["file"], "properties": {"file": {"type": "string", "format": "binary"}}, "additionalProperties": {"type": "string"}}}}}, "x-max-body-bytes": 5505024}}, "/builders/{builder_id}/nodes": {"post": {"operationId": "add_node_post", "summary": "Add node", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.node.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/nodes/{node_id}": {"patch": {"operationId": "update_node_patch", "summary": "Update node", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "node_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.node.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "delete_node_delete", "summary": "Delete node", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "node_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.node.delete"}}, "/builders/{builder_id}/nodes/{node_id}/duplicate": {"post": {"operationId": "duplicate_node", "summary": "Duplicate node", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "node_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.node.duplicate", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/nodes/{node_id}/test-http": {"post": {"operationId": "test_http_step", "summary": "Test http step", "description": "Scopes: builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "node_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.http_test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/nodes/delete": {"post": {"operationId": "delete_nodes", "summary": "Delete nodes", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.nodes.delete", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/publish": {"post": {"operationId": "publish_post", "summary": "Publish", "description": "Scopes: builders:publish. Rate limit: 10 requests per 600 s per key (publish). Write: send an Idempotency-Key; audited. Without channels the chatbot replaces the account's live chatbot (one live chatbot answers every channel). Several live chatbots: channels [{kind, ref}] (GET /channels lists them) makes this chatbot answer those channels while the chatbot that answers today keeps every other channel (the default; make_default true makes this one the default). A chatbot's own widget code alone is not a channel: the publish replaces the live chatbot. 409 multi-bot-unavailable: several live chatbots isn't on for this account yet; nothing changed, publish without channels to replace the live chatbot. 409 no-answering-chatbot: no live chatbot answers customers today; nothing changed. 403 live-chatbot-limit: the plan's live chatbot limit. 422 invalid-channel: not one of the account's channels.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:publish"], "x-rate-limit-bucket": "publish", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.publish", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/publish-plan": {"get": {"operationId": "publish_plan", "summary": "Publish plan", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builders/{builder_id}/settings": {"get": {"operationId": "get_settings", "summary": "Get settings", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read). appearance holds the website chat's look and chat experience; badge {shown, can_hide, rule} says whether visitors see the \"Powered by\" badge. Free (and legacy Basic) always show it; Pro hides it unless appearance.showBadge is true. appearance.rememberConversations (off|24h|7d|30d, unset = off) is how long a visitor's browser keeps the website conversation across refreshes and pages. whatsapp_formatting (auto|as_written, default auto): auto converts Markdown in the bot's texts and AI answers to WhatsApp formatting on WhatsApp channels ([label](url) -> \"label: url\", **x** -> *x*, # headings -> *bold*, HTML removed) and tells AI steps to write WhatsApp formatting; as_written sends texts exactly as written. The website chat always renders Markdown. whatsapp_long_menus (list|numbered; unset on bots created before it existed = numbered, new bots start with list): on the WhatsApp Cloud API, list sends an Options step's 1-3 options as reply buttons (titles up to 20 characters) and 4-10 options as a WhatsApp list (row title up to 24 characters, cut at a word, the full text as the row description); more than 10 stay numbered text. A Buttons step with 4-10 buttons is sent as a list too. The automatic Main menu option counts toward the limits. Green API, May-Tapi and the website chat are unchanged.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "patch": {"operationId": "update_settings", "summary": "Update settings", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. appearance is merged (a null value removes a field). appearance.showBadge: true shows the \"Powered by\" badge on a paid plan; false or null hides it. On Free (and legacy Basic) the badge always shows: the value is kept for later but has no effect, and custom CSS is not applied. whatsapp_formatting: auto (default) or as_written. whatsapp_long_menus: list or numbered.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.settings", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/test": {"post": {"operationId": "run_test_post", "summary": "Run test", "description": "Scopes: builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. channel (optional) simulates where the conversation runs: website, whatsapp_official, whatsapp_green, whatsapp_maytapi or api (default). It sets the #channel_type variable, decides Filter conditions \"Channel is ...\" and, on a WhatsApp channel, applies WhatsApp formatting. The response echoes channel.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/texts": {"post": {"operationId": "rewrite_texts", "summary": "Rewrite texts", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.texts", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/unpublish": {"post": {"operationId": "unpublish", "summary": "Unpublish", "description": "Scopes: builders:publish. Rate limit: 10 requests per 600 s per key (publish). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:publish"], "x-rate-limit-bucket": "publish", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.unpublish", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/validation": {"get": {"operationId": "get_validation_get", "summary": "Get validation", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builders/{builder_id}/variables": {"get": {"operationId": "variables", "summary": "Variables", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "put": {"operationId": "set_default_variables", "summary": "Set default variables", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Replaces the chatbot's default variables (the whole list; [] removes them all). Every new conversation starts with them, used in texts as {{#key}}. They are read without a publish, so on a live chatbot this is a live change: it also needs builders:publish and {\"confirm\": true}.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_chatbots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.variables", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/versions": {"get": {"operationId": "list_versions", "summary": "List versions", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builders/{builder_id}/versions/{version}": {"get": {"operationId": "get_version", "summary": "Get version", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "version", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builders/{builder_id}/versions/{version}/duplicate": {"post": {"operationId": "duplicate_version", "summary": "Duplicate version", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "version", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.version.duplicate", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/versions/{version}/preview": {"post": {"operationId": "preview_version", "summary": "Preview version", "description": "Scopes: builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. Runs a saved version with the preview engine, in memory: nothing is written. HTTP steps call out; AI steps are shown as a note naming the AI flow version and spend no AI credits.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "version", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.version.preview", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/versions/{version}/publish": {"post": {"operationId": "publish_version", "summary": "Publish version", "description": "Scopes: builders:publish. Rate limit: 10 requests per 600 s per key (publish). Write: send an Idempotency-Key; audited. Publishes a saved version again with the AI flow versions it ran (the same as /rollback). 409 ai-flow-version-missing | ai-flow-missing | ai-flow-versions-off with restore_to_draft: true when it can't go live exactly as it was.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:publish"], "x-rate-limit-bucket": "publish", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "version", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.version.publish", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/versions/{version}/restore": {"post": {"operationId": "restore_version", "summary": "Restore version", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. The version becomes the DRAFT; the live chatbot and its AI flows are unchanged. The draft it replaces is kept as a draft backup (draft_backups in the versions list): restore that backup to undo.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "version", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.version.restore", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/versions/{version}/rollback": {"post": {"operationId": "rollback_version", "summary": "Rollback version", "description": "Scopes: builders:publish. Rate limit: 10 requests per 600 s per key (publish). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:publish"], "x-rate-limit-bucket": "publish", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "version", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.version.rollback", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/versions/backups/{backup_id}/restore": {"post": {"operationId": "restore_version_backup", "summary": "Restore version backup", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_builders_bp", "parameters": [{"name": "backup_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.version.restore_backup", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/versions/diff": {"get": {"operationId": "diff_versions", "summary": "Diff versions", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_builders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/builders/{builder_id}/folder": {"put": {"operationId": "move_builder", "summary": "Move builder", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.bot_folders_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.move_to_folder", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/builders/{builder_id}/widget-code": {"post": {"operationId": "widget_code", "summary": "Widget code", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["builders"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.channel_bots_bp", "parameters": [{"name": "builder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "builder.widget_code", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/catch-hook-events": {"get": {"operationId": "list_catch_hook_events", "summary": "List catch hook events", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["catch-hook-events"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/catch-hook-events/{hook_key}/{event_id}": {"get": {"operationId": "get_catch_hook_event", "summary": "Get catch hook event", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["catch-hook-events"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [{"name": "event_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "hook_key", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/catch-hook-events/test": {"post": {"operationId": "test_catch_hook", "summary": "Test catch hook", "description": "Scopes: builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. Body {hook_key, channel?, customer_phone?, data?, builder_id?}. Sends the dashboard's test request into your own Catch Hook (POST /sendMessage) so it shows in GET /catch-hook-events. channel preview (the only channel) runs the step's draft and messages only your own number (the default customer_phone). A live channel (meta, greenAPI, mayTapi) is refused with 400 preview-only: the test never messages a real customer; a live run is a real POST /sendMessage from your system. data defaults to a sample order. The Catch Hook's own errors are the answer: {started: false, status, response}.", "tags": ["catch-hook-events"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_catch_hooks_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "catch_hook.test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/channel-bots": {"get": {"operationId": "overview", "summary": "Overview", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["channel-bots"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.channel_bots_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/channels": {"get": {"operationId": "channels", "summary": "Channels", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["channels"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/channels/{kind}/{ref}/activity": {"get": {"operationId": "activity", "summary": "Activity", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["channels"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.inbound_activity_bp", "parameters": [{"name": "kind", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "ref", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/channels/{kind}/{ref}/activity/settings": {"put": {"operationId": "activity_settings", "summary": "Activity settings", "description": "Scopes: channels:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["channels"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["channels:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.inbound_activity_bp", "parameters": [{"name": "kind", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "ref", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "channel.activity_settings", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/channels/{kind}/{ref}/bot": {"put": {"operationId": "assign", "summary": "Assign", "description": "Scopes: channels:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["channels"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["channels:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.channel_bots_bp", "parameters": [{"name": "kind", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "ref", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "channel.assign_bot", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "unassign", "summary": "Unassign", "description": "Scopes: channels:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["channels"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["channels:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.channel_bots_bp", "parameters": [{"name": "kind", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "ref", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "channel.unassign_bot"}}, "/channels/{kind}/{ref}/replies": {"put": {"operationId": "set_channel_replies", "summary": "Set channel replies", "description": "Scopes: channels:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {enabled: bool}: false turns the bot's replies on this channel off, true turns them back on (idempotent). While off, customers' messages are still stored and show in the Inbox as Not answered (unanswered_reason channel_off), with one notice per channel per day. Human mode is never changed: turned back on, every conversation continues where it was. kind and ref as GET /channels/replies lists them; 404 channel-not-found for a channel the account doesn't have.", "tags": ["channels"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["channels:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.channel_switch_bp", "parameters": [{"name": "kind", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "ref", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "channel.set_replies", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/channels/green-api/health": {"get": {"operationId": "get_green_api_health", "summary": "Get green api health", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). The Green API instance: {connected, owner, id_instance, state, live, broken, broken_reason, replace_allowed, replacement}. Never the token or the QR code; reconnect and replace are in the dashboard.", "tags": ["channels"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_whatsapp_health_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/channels/green-api/state": {"get": {"operationId": "get_green_api_state", "summary": "Get green api state", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). Green API's live authorization state: {id_instance, state} (authorized | notAuthorized | blocked | starting | ...). 404 no-instance; 409 instance-invalid; 503 green-unavailable.", "tags": ["channels"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_whatsapp_health_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/channels/replies": {"get": {"operationId": "list_channel_replies", "summary": "List channel replies", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). The account's connected channels: {channels: [{kind (meta | green_api | maytapi | web), ref, label, provider, enabled, changed_at}], available}. enabled false: the bot doesn't answer on that channel. Every channel is on until its owner turns it off.", "tags": ["channels"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.channel_switch_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/chats": {"get": {"operationId": "list_chats", "summary": "List chats", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["chats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_customers_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/chats/{chat_id}": {"get": {"operationId": "get_chat", "summary": "Get chat", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["chats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_customers_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/chats/{chat_id}/delivery": {"get": {"operationId": "get_chat_delivery", "summary": "Get chat delivery", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read). Sent / delivered / read / failed of the bot's messages in one chat over the last 7 days: {chat_id, channel, enabled, days, data: [{message_id, sent_time, status, status_time, reason_key}]}. Only WhatsApp Cloud API (meta) chats have ticks. enabled false: ticks aren't recorded for this account.", "tags": ["chats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_whatsapp_health_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/chats/{chat_id}/flows": {"get": {"operationId": "list_chat_flows", "summary": "List chat flows", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read). Send a flow: {chat_id, channel, bot_id, can_start, blocked: null | {code, detail}, human_mode, window: {applies, open}, flows: [{id, kind: catch_hook | step, name, ques_name, first_message_preview, first_is_template, variables: [{name, label, prefill}]}]}. The steps are the live chatbot's that answers this chat (Catch Hooks first). Website chats too (no window, every plan).", "tags": ["chats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "post": {"operationId": "start_chat_flow", "summary": "Start chat flow", "description": "Scopes: messages:send. Rate limit: 60 requests per 60 s per key (send). Write: send an Idempotency-Key; audited. Body {step: <ques_name> | catch_hook: <name>, data?: {variable: text}, return_to_bot?: bool, visitor_id? (website chats)}. 201 {started, chat_id, kind, step, released} (website chats add visitor_id, flow_id, delivery; the visitor's widget picks the flow up with its poll; 409 web-visitor-unknown / -inactive / -ambiguous as for website replies). A paused customer: 409 human-mode with nothing sent or changed unless return_to_bot is true (needs conversations:write too): then the customer is returned to the bot (recorded) and the flow starts. 409 outside-window: Meta, window closed and the first message isn't a template. 404 step-not-found, 409 channel-not-connected, 403 plan-no-api-send, 422 channel-not-supported (legacy channels).", "tags": ["chats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["messages:send"], "x-rate-limit-bucket": "send", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "chat.start_flow", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/chats/{chat_id}/pause": {"post": {"operationId": "pause_chat", "summary": "Pause chat", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["chats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "conversation.pause", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/chats/{chat_id}/resume": {"post": {"operationId": "resume_chat", "summary": "Resume chat", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["chats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "conversation.resume", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/chats/resume-all": {"post": {"operationId": "resume_all_chats", "summary": "Resume all chats", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["chats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_messaging_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "conversation.resume_all", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/chats/waiting": {"get": {"operationId": "list_waiting_chats", "summary": "List waiting chats", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read). The chats that are with a person now (the dashboard's Waiting for you), newest activity first: {count (first page), data: [{chat_id, channel, customer, last_updated, message_count, human_mode {active, since, source, until}}], next_cursor, redacted}. source owner_phone | handoff | api | dashboard | keyword; until null = until someone gives it back. Read only: nothing is released.", "tags": ["chats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_human_mode_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/conversations": {"get": {"operationId": "list_conversations", "summary": "List conversations", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["conversations"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/conversations/{conversation_id}": {"get": {"operationId": "get_conversation", "summary": "Get conversation", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["conversations"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [{"name": "conversation_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/conversations/activity": {"get": {"operationId": "conversation_activity", "summary": "Conversation activity", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read). Every conversation active since `since` (default 30 days ago, at most 800), newest first, at most `limit` (1-200, default 50): {data: [{chat_id, channel, customer, last_updated, messages: [{role, time, is_error, step_type, has_buttons}]}], since, truncated, redacted}. No message texts; role notice is an owner notice (read it with GET /conversations/{conversation_id}).", "tags": ["conversations"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_human_mode_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/customers": {"get": {"operationId": "list_customers", "summary": "List customers", "description": "Scopes: customers:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["customers"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["customers:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_customers_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/customers/{phone}": {"get": {"operationId": "get_customer", "summary": "Get customer", "description": "Scopes: customers:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["customers"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["customers:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_customers_bp", "parameters": [{"name": "phone", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "delete": {"operationId": "erase_customer", "summary": "Erase customer", "description": "Scopes: customers:erase. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {\"confirm\": true}. Permanently deletes the customer's data on THIS account: conversations, tags, attributes, human mode, opt-out, block and the live bot session. Other accounts' data for the same number is never touched; the shared contact is removed only when no account uses it. Kept: usage and billing counters, logs, and webhook deliveries already queued or sent. 400 confirm-required without confirm (nothing deleted). Export first if you need a copy.", "tags": ["customers"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["customers:erase"], "x-rate-limit-bucket": "write", "x-source": "routes.public_customers_bp", "parameters": [{"name": "phone", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "customer.erase"}, "patch": {"operationId": "update_customer", "summary": "Update customer", "description": "Scopes: customers:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["customers"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["customers:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "phone", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "customer.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/customers/{phone}/export": {"get": {"operationId": "export_customer", "summary": "Export customer", "description": "Scopes: customers:read, conversations:read_pii. Rate limit: 300 requests per 60 s per key (read). Everything this account stores about the customer, unmasked (a data-subject access request): the contact, the account's link (first seen, human mode, opt-out, block), tags, attributes, every conversation with all its messages, and the live bot sessions (variables, answers, current step). 404 customer-not-found when the account has nothing for this number.", "tags": ["customers"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["customers:read", "conversations:read_pii"], "x-rate-limit-bucket": "read", "x-source": "routes.public_customers_bp", "parameters": [{"name": "phone", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/default-bot": {"put": {"operationId": "default_bot", "summary": "Default bot", "description": "Scopes: channels:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["default-bot"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["channels:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.channel_bots_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "channel.default_bot", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/expressions/test": {"post": {"operationId": "test_expression", "summary": "Test expression", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["expressions"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/features": {"get": {"operationId": "features", "summary": "Features", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["features"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/google/audit": {"get": {"operationId": "google_audit", "summary": "Google audit", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["google"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_google_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/google/connections": {"get": {"operationId": "google_connections", "summary": "Google connections", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["google"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_google_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/google/connections/{connection_id}": {"delete": {"operationId": "disconnect_google_connection", "summary": "Disconnect google connection", "description": "Scopes: integrations:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {confirm: true}. Removes the Google account from this account (Google's grant is revoked when no other account uses it). Without confirm: 400 confirm-required with steps_using and nothing changes. The answer lists steps_using [{version (draft | live), builder_id, builder_name, step_id, step_name, type}]: those steps fail (their Error output runs) until another Google account is chosen in them. Reconnecting is only possible in the dashboard. Workspace members need the owner or admin role.", "tags": ["google"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["integrations:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_google_bp", "parameters": [{"name": "connection_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "google.connection.disconnect"}}, "/google/connections/{connection_id}/calendars": {"get": {"operationId": "google_calendars", "summary": "Google calendars", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["google"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_google_bp", "parameters": [{"name": "connection_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/google/connections/{connection_id}/check": {"post": {"operationId": "check_google_connection", "summary": "Check google connection", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). Health check of one connected Google account: gets a fresh access token and reads the profile. status becomes active, or needs_reauth when Google asks the owner to sign in again (reconnect in the dashboard). Changes no setting; no token is ever returned.", "tags": ["google"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_google_bp", "parameters": [{"name": "connection_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/google/connections/{connection_id}/spreadsheets/{spreadsheet_id}": {"get": {"operationId": "google_spreadsheet", "summary": "Google spreadsheet", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["google"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_google_bp", "parameters": [{"name": "connection_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "spreadsheet_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/google/steps/test": {"post": {"operationId": "test_google_step", "summary": "Test google step", "description": "Scopes: builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. Body {type: GOOGLE_SHEETS | GOOGLE_CALENDAR | GMAIL, google: the step's settings, sample?: {answers, data}, step_id?}. REALLY runs the action once against the connected Google account. Write actions change real data: append_row / update_row / clear_range / add_tab write to the spreadsheet, create_event / update_event / delete_event change the calendar (guests may be emailed, per sendUpdates), send_email / reply_email send the email. find_rows, get_rows, find_events, list_day, free_busy, suggest_slots and search_emails only read. Google's failures are the answer: {ok: false, error: {code, message}}.", "tags": ["google"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_google_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "google.step.test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/google/triggers/runs": {"get": {"operationId": "google_trigger_runs", "summary": "Google trigger runs", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["google"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_google_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/google/triggers/test": {"post": {"operationId": "test_google_trigger", "summary": "Test google trigger", "description": "Scopes: builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. Body {trigger: the TRIGGER step's settings, step_id?}. Reads only: a sample of what would start the flow (the latest changed calendar event, the last sheet row, a sample form submission, the next schedule runs) with the phone it would message and the fields it saves. Nothing is sent.", "tags": ["google"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_google_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "google.trigger.test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/http-steps/secrets": {"get": {"operationId": "list_http_secrets", "summary": "List http secrets", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["http-steps"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_extras_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/http-steps/secrets/{name}": {"put": {"operationId": "save_http_secret", "summary": "Save http secret", "description": "Scopes: builders:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["http-steps"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_account_extras_bp", "parameters": [{"name": "name", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "http_secret.save", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "delete_http_secret", "summary": "Delete http secret", "description": "Scopes: builders:publish. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["http-steps"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:publish"], "x-rate-limit-bucket": "write", "x-source": "routes.public_account_extras_bp", "parameters": [{"name": "name", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "http_secret.delete"}}, "/inbox/changes": {"get": {"operationId": "inbox_changes", "summary": "Inbox changes", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.inbox_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/inbox/chats/{chat_id}": {"get": {"operationId": "get_inbox_chat", "summary": "Get inbox chat", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.inbox_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/inbox/chats/{chat_id}/assignee": {"put": {"operationId": "set_inbox_chat_assignee", "summary": "Set inbox chat assignee", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.inbox_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "inbox.set_assignee", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/inbox/chats/{chat_id}/labels": {"put": {"operationId": "set_inbox_chat_labels", "summary": "Set inbox chat labels", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.inbox_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "inbox.set_labels", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/inbox/chats/{chat_id}/read": {"post": {"operationId": "mark_inbox_chat_read", "summary": "Mark inbox chat read", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.inbox_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "inbox.mark_read", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/inbox/chats/{chat_id}/reminders": {"post": {"operationId": "add_inbox_reminder", "summary": "Add inbox reminder", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.inbox_bp", "parameters": [{"name": "chat_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "inbox.add_reminder", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/inbox/labels": {"get": {"operationId": "list_inbox_labels", "summary": "List inbox labels", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.inbox_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/inbox/members": {"get": {"operationId": "list_inbox_members", "summary": "List inbox members", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.inbox_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/inbox/quick-replies": {"get": {"operationId": "list_inbox_quick_replies", "summary": "List inbox quick replies", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.inbox_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "post": {"operationId": "add_inbox_quick_reply", "summary": "Add inbox quick reply", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.inbox_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "inbox.add_quick_reply", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/inbox/quick-replies/{reply_id}": {"delete": {"operationId": "delete_inbox_quick_reply", "summary": "Delete inbox quick reply", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.inbox_bp", "parameters": [{"name": "reply_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "inbox.delete_quick_reply"}}, "/inbox/reminders": {"get": {"operationId": "list_inbox_reminders", "summary": "List inbox reminders", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.inbox_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/inbox/reminders/{reminder_id}": {"delete": {"operationId": "cancel_inbox_reminder", "summary": "Cancel inbox reminder", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.inbox_bp", "parameters": [{"name": "reminder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "inbox.cancel_reminder"}}, "/inbox/reminders/{reminder_id}/done": {"post": {"operationId": "finish_inbox_reminder", "summary": "Finish inbox reminder", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["inbox"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.inbox_bp", "parameters": [{"name": "reminder_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "inbox.finish_reminder", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/make/audit": {"get": {"operationId": "make_audit", "summary": "Make audit", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["make"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_make_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/make/connection": {"get": {"operationId": "make_connection", "summary": "Make connection", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). Connection status only: the Make API token is never returned (token_hint shows its last four characters). Connecting and disconnecting Make happen in the dashboard.", "tags": ["make"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_make_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/make/hooks": {"get": {"operationId": "make_hooks", "summary": "Make hooks", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["make"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_make_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "post": {"operationId": "create_make_hook", "summary": "Create make hook", "description": "Scopes: integrations:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {name} (up to 128 characters). Creates a webhook in the chosen Make team; its URL is never returned (it is a bearer secret). Use the hook id in a MAKE_RUN step (action send_webhook).", "tags": ["make"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["integrations:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_make_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "make.hook.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/make/scenarios": {"get": {"operationId": "make_scenarios", "summary": "Make scenarios", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["make"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_make_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/make/scenarios/{scenario_id}": {"get": {"operationId": "make_scenario", "summary": "Make scenario", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["make"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_make_bp", "parameters": [{"name": "scenario_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/make/steps/test": {"post": {"operationId": "test_make_step", "summary": "Test make step", "description": "Scopes: builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited. Body {make: the MAKE_RUN step's settings, sample?: {answers, data}, step_id?}. REALLY runs the Make scenario once (run_scenario) or posts the mapped data to the Make webhook (send_webhook): whatever the scenario does (write to a sheet, a CRM, send an email) happens. Make's failures are the answer: {ok: false, error: {code, message}}.", "tags": ["make"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_make_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "make.step.test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/make/target": {"put": {"operationId": "choose_make_target", "summary": "Choose make target", "description": "Scopes: integrations:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {organization_id, team_id} from GET /make/targets. Every Make call uses that team from then on; Make steps set to scenarios or webhooks of the previous team stop working (make-other-team) until they are set again. Nothing created in the previous team is changed. Workspace members need the owner or admin role.", "tags": ["make"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["integrations:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_make_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "make.target.choose", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/make/targets": {"get": {"operationId": "make_targets", "summary": "Make targets", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["make"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_make_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/me": {"get": {"operationId": "me", "summary": "Me", "description": "Scopes: any valid key. Rate limit: 300 requests per 60 s per key (read).", "tags": ["me"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": [], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "patch": {"operationId": "update_profile", "summary": "Update profile", "description": "Scopes: account:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {business_name?, logo_url?}: only the fields sent change. logo_url is a public https image URL or null (no logo). The email and the phone (the account id) can't change here: sending them is a 400 email-change-in-dashboard / phone-change-in-dashboard (they need verification in the dashboard). GET /me keeps describing the key; read the profile with GET /me/profile. Owner only inside a workspace.", "tags": ["me"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_account_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "account.profile.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/me/profile": {"get": {"operationId": "get_profile", "summary": "Get profile", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["me"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/media": {"post": {"operationId": "upload_media", "summary": "Upload media", "description": "Scopes: builders:write. Rate limit: 30 requests per 60 s per key (upload). Write: send an Idempotency-Key; audited. Form fields: file, kind? (image|video|audio|document|sticker). Same limits as the dashboard upload (WhatsApp's: images 5 MB, video / audio 16 MB, documents 100 MB, WEBP stickers 500 KB; the content must match the extension). Answers 201 {url, file_name, kind, content_type, size}: use url as the media URL of a MEDIA step, a media header or a message. A retry with the same Idempotency-Key and file stores nothing twice. Upload: multipart/form-data, the file in `file`, up to 100 MB per request (413).", "tags": ["media"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write"], "x-rate-limit-bucket": "upload", "x-source": "routes.public_uploads_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}, "411": {"$ref": "#/components/responses/Problem"}, "413": {"$ref": "#/components/responses/Problem"}, "415": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "media.upload", "requestBody": {"required": true, "content": {"multipart/form-data": {"schema": {"type": "object", "required": ["file"], "properties": {"file": {"type": "string", "format": "binary"}}, "additionalProperties": {"type": "string"}}}}}, "x-max-body-bytes": 105119744}}, "/messages": {"post": {"operationId": "send_message", "summary": "Send message", "description": "Scopes: messages:send. Rate limit: 60 requests per 60 s per key (send). Write: send an Idempotency-Key; audited.", "tags": ["messages"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["messages:send"], "x-rate-limit-bucket": "send", "x-source": "routes.public_messaging_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "message.send", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/node-types": {"get": {"operationId": "node_types_get", "summary": "Node types", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["node-types"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_builders_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/notifications": {"get": {"operationId": "list_notifications", "summary": "List notifications", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["notifications"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.notifications_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/notifications/read": {"post": {"operationId": "mark_notifications_read", "summary": "Mark notifications read", "description": "Scopes: account:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["notifications"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:write"], "x-rate-limit-bucket": "write", "x-source": "routes.notifications_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "notifications.read", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/notifications/read-all": {"post": {"operationId": "mark_all_notifications_read", "summary": "Mark all notifications read", "description": "Scopes: account:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["notifications"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:write"], "x-rate-limit-bucket": "write", "x-source": "routes.notifications_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "notifications.read_all", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/onboarding/builds": {"post": {"operationId": "start_build", "summary": "Start build", "description": "Scopes: builders:write, builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited.", "tags": ["onboarding"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:write", "builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_ai_flows_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "onboarding.build", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/onboarding/jobs/{job_id}": {"get": {"operationId": "job_status", "summary": "Job status", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read). Deprecated fields: bot.share_url and bot.embed_snippet when they point at the AI flow itself (/#/ai-chat/<id>, addAIWidget; the bot has no live chatbot yet). They keep working, but new integrations use the chatbot's link and widget: bot.chatbot (status live) or POST /ai-flows/{agent_id}/chatbots.", "tags": ["onboarding"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_ai_flows_bp", "parameters": [{"name": "job_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-deprecated-fields": ["bot.share_url (AI flow link)", "bot.embed_snippet (addAIWidget)"]}}, "/plan": {"get": {"operationId": "plan", "summary": "Plan", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["plan"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/python-steps": {"get": {"operationId": "guide", "summary": "Guide", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["python-steps"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_python_steps_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/python-steps/keys": {"get": {"operationId": "list_keys", "summary": "List keys", "description": "Scopes: ai_flows:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["python-steps"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_python_steps_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/python-steps/keys/{name}": {"put": {"operationId": "save_key", "summary": "Save key", "description": "Scopes: ai_flows:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["python-steps"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_python_steps_bp", "parameters": [{"name": "name", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "python_key.save", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "delete_key", "summary": "Delete key", "description": "Scopes: ai_flows:publish. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["python-steps"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:publish"], "x-rate-limit-bucket": "write", "x-source": "routes.public_python_steps_bp", "parameters": [{"name": "name", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "python_key.delete"}}, "/python-steps/test": {"post": {"operationId": "test_run", "summary": "Test run", "description": "Scopes: ai_flows:read, builders:test. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited.", "tags": ["python-steps"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["ai_flows:read", "builders:test"], "x-rate-limit-bucket": "test", "x-source": "routes.public_python_steps_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "python_step.test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/settings/owner-replies": {"get": {"operationId": "get_owner_replies", "summary": "Get owner replies", "description": "Scopes: conversations:read. Rate limit: 300 requests per 60 s per key (read). \"When I reply from my phone\": {mode, hours, is_default, updated_at, available}. mode until_thanks (default): the owner's reply from their phone pauses the bot for that customer until they send #thanks; hours: pauses it for `hours` hours (1-72, each further reply extends it); off: the owner's replies never pause the bot.", "tags": ["settings"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_human_mode_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "put": {"operationId": "set_owner_replies", "summary": "Set owner replies", "description": "Scopes: conversations:write. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Body {mode: until_thanks | hours | off, hours: 1-72 (mode hours only)}. Changes the setting only: no conversation is paused or released, and a conversation already with a person keeps its pause (the setting applies to the owner's replies from then on). Hand a chat back with POST /chats/{chat_id}/resume. 422 invalid-setting; 503 not-migrated.", "tags": ["settings"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["conversations:write"], "x-rate-limit-bucket": "write", "x-source": "routes.public_human_mode_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "settings.owner_replies.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/stats": {"get": {"operationId": "stats", "summary": "Stats", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). The dashboard home numbers for whole UTC days ?from=YYYY-MM-DD&to=YYYY-MM-DD (default the last 30 days, at most 366): conversations, messages, inbound / outbound, errors and error_rate, ai_replies, median_first_response_seconds, avg_response_seconds, new / returning customers, by_day, channels, previous_period, ai_usage (tokens per model per month) and recent chatbots / AI flows.", "tags": ["stats"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/step-types": {"get": {"operationId": "step_types", "summary": "Step types", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["step-types"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_chatbots_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/team": {"get": {"operationId": "team", "summary": "Team", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["team"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_extras_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/team/invites": {"post": {"operationId": "team_invite", "summary": "Team invite", "description": "Scopes: account:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Invites a person by email or WhatsApp number (body {email | phone, role, confirm_charge}). When the invite would add a paid user it answers 402 seat-confirmation-required (field seat: amount, currency, interval, timing) and nothing is sent or charged; send again with {\"confirm_charge\": true} to agree. The charge starts only when the person accepts. 402 upgrade-required on Free (1 user). 503 seat-check-unavailable when the plan can't be checked: retry later. Returns the invite and its link.", "tags": ["team"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_account_extras_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "team.invite", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/team/seats": {"get": {"operationId": "team_seats", "summary": "Team seats", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). Per-user pricing of the account. plan: free (1 user; limit), pro (3 users included, then a paid extra user each; price is per extra user and interval) or other (legacy and custom plans: no seat limit or charge). users = owner + members; pending_invites hold a seat. grandfathered: users the account had before per-user pricing, never charged. next_invite.charge says whether the next invite needs confirm_charge; timing next_invoice (monthly: prorated on the next invoice) or now (yearly).", "tags": ["team"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_extras_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/webhooks": {"get": {"operationId": "list_webhooks", "summary": "List webhooks", "description": "Scopes: webhooks:manage. Rate limit: 300 requests per 60 s per key (read).", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "read", "x-source": "routes.public_messaging_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "post": {"operationId": "create_webhook", "summary": "Create webhook", "description": "Scopes: webhooks:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_messaging_bp", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "webhook.create", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/webhooks/{webhook_id}": {"get": {"operationId": "get_webhook", "summary": "Get webhook", "description": "Scopes: webhooks:manage. Rate limit: 300 requests per 60 s per key (read).", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "read", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "webhook_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}, "patch": {"operationId": "update_webhook", "summary": "Update webhook", "description": "Scopes: webhooks:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "webhook_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "webhook.update", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}, "delete": {"operationId": "delete_webhook", "summary": "Delete webhook", "description": "Scopes: webhooks:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "webhook_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "webhook.delete"}}, "/webhooks/{webhook_id}/deliveries": {"get": {"operationId": "list_webhook_deliveries", "summary": "List webhook deliveries", "description": "Scopes: webhooks:manage. Rate limit: 300 requests per 60 s per key (read).", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "read", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "webhook_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/webhooks/{webhook_id}/deliveries/{delivery_id}/redeliver": {"post": {"operationId": "redeliver_webhook", "summary": "Redeliver webhook", "description": "Scopes: webhooks:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "delivery_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "webhook_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "webhook.redeliver", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/webhooks/{webhook_id}/rotate-secret": {"post": {"operationId": "rotate_webhook_secret", "summary": "Rotate webhook secret", "description": "Scopes: webhooks:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited.", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "webhook_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "webhook.rotate_secret", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/webhooks/{webhook_id}/test": {"post": {"operationId": "send_webhook_test", "summary": "Send webhook test", "description": "Scopes: webhooks:manage. Rate limit: 30 requests per 600 s per key (test). Write: send an Idempotency-Key; audited.", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "test", "x-source": "routes.public_messaging_bp", "parameters": [{"name": "webhook_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "webhook.test", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}, "/webhooks/event-types": {"get": {"operationId": "webhook_event_types", "summary": "Webhook event types", "description": "Scopes: webhooks:manage. Rate limit: 300 requests per 60 s per key (read).", "tags": ["webhooks"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["webhooks:manage"], "x-rate-limit-bucket": "read", "x-source": "routes.public_messaging_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/whatsapp-templates": {"get": {"operationId": "whatsapp_templates", "summary": "Whatsapp templates", "description": "Scopes: builders:read. Rate limit: 300 requests per 60 s per key (read).", "tags": ["whatsapp-templates"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["builders:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_account_extras_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/whatsapp/alerts": {"get": {"operationId": "list_whatsapp_alerts", "summary": "List whatsapp alerts", "description": "Scopes: account:read. Rate limit: 300 requests per 60 s per key (read). Open Meta alerts, worst first: {enabled, data: [{id, kind, severity, state, template_name, opened_at, expires_at, action_url, copy: {en, he}}]}. kind meta_template | meta_template_quality | meta_template_category | meta_phone_quality | meta_messaging_limit | meta_account | meta_note.", "tags": ["whatsapp"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:read"], "x-rate-limit-bucket": "read", "x-source": "routes.public_whatsapp_health_bp", "parameters": [], "responses": {"200": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}}}, "/whatsapp/alerts/{alert_id}/dismiss": {"post": {"operationId": "dismiss_whatsapp_alert", "summary": "Dismiss whatsapp alert", "description": "Scopes: account:manage. Rate limit: 120 requests per 60 s per key (write). Write: send an Idempotency-Key; audited. Hides one banner in the dashboard (it comes back on the next state change). Doesn't fix the cause. 404 alert-not-found: already closed or not this account's.", "tags": ["whatsapp"], "security": [{"ApiKey": []}, {"ApiKeyAlternateHeader": []}], "x-required-scopes": ["account:manage"], "x-rate-limit-bucket": "write", "x-source": "routes.public_whatsapp_health_bp", "parameters": [{"name": "alert_id", "in": "path", "required": true, "schema": {"type": "string"}}, {"$ref": "#/components/parameters/IdempotencyKey"}], "responses": {"2XX": {"description": "Success (JSON). Lists: {data, next_cursor}; pass next_cursor as `cursor`.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}}, "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"$ref": "#/components/responses/Problem"}, "401": {"$ref": "#/components/responses/Problem"}, "403": {"$ref": "#/components/responses/Problem"}, "404": {"$ref": "#/components/responses/Problem"}, "409": {"$ref": "#/components/responses/Problem"}, "429": {"description": "Too many requests: wait Retry-After seconds.", "headers": {"RateLimit-Limit": {"$ref": "#/components/headers/RateLimit-Limit"}, "RateLimit-Remaining": {"$ref": "#/components/headers/RateLimit-Remaining"}, "RateLimit-Reset": {"$ref": "#/components/headers/RateLimit-Reset"}, "X-Request-ID": {"$ref": "#/components/headers/X-Request-ID"}, "Retry-After": {"schema": {"type": "integer"}}}, "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}, "503": {"$ref": "#/components/responses/Problem"}}, "x-audit-action": "whatsapp.alert.dismiss", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}}}}, "components": {"securitySchemes": {"ApiKey": {"type": "apiKey", "in": "header", "name": "x-officely-token", "description": "An account API key (ofl_live_...) with the scopes listed on each operation. Create keys in Developers > API keys. x-agentim-token also works. Send one of the two: both with different values is a 400 conflicting-token-headers."}, "ApiKeyAlternateHeader": {"type": "apiKey", "in": "header", "name": "x-agentim-token", "description": "Also accepted: x-agentim-token carries the same key as x-officely-token. Send one of the two: both with different values is a 400 conflicting-token-headers."}}, "parameters": {"IdempotencyKey": {"name": "Idempotency-Key", "in": "header", "required": true, "description": "8-128 characters (letters, digits, - _ . :). A retry with the same key and body gets the first answer (Idempotent-Replayed: true) and changes nothing; keys live 24 hours.", "schema": {"type": "string", "pattern": "^[A-Za-z0-9_\\-.:]{8,128}$"}}}, "headers": {"RateLimit-Limit": {"schema": {"type": "integer"}, "description": "Requests allowed in the window."}, "RateLimit-Remaining": {"schema": {"type": "integer"}, "description": "Requests left in the window."}, "RateLimit-Reset": {"schema": {"type": "integer"}, "description": "Seconds until a request frees up."}, "X-Request-ID": {"schema": {"type": "string"}, "description": "Identifies the request: log it with each failed call."}}, "schemas": {"Problem": {"type": "object", "required": ["type", "title", "status", "detail", "code"], "properties": {"type": {"type": "string", "format": "uri"}, "title": {"type": "string"}, "status": {"type": "integer"}, "detail": {"type": "string", "description": "What happened and what to do."}, "code": {"type": "string"}, "instance": {"type": "string"}, "request_id": {"type": "string"}}, "additionalProperties": true}}, "responses": {"Problem": {"description": "Error (problem+json). `code` is stable; `detail` says what to do.", "content": {"application/problem+json": {"schema": {"$ref": "#/components/schemas/Problem"}}}}}}}