{"items":[{"type":"link","label":"3Chat Open Platform API","link":"/apis/3chat-api","routeSlug":"/apis/3chat-api","content":{"contentType":"overview","meta":{"name":"3Chat Open Platform API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"3chat-api.json","url":"/_bundle/apis/3chat-api.json?download"},{"kind":"download","label":"3chat-api.yaml","url":"/_bundle/apis/3chat-api.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"3Chat Open Platform API (1.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":"Server-side APIs for integrating external systems with 3Chat."}],"sectionId":"/apis/3chat-api"}],"sectionId":"/apis/3chat-api"}]}]}},{"type":"group","label":"Authentication","link":"/apis/3chat-api/authentication-api","routeSlug":"/apis/3chat-api/authentication-api","items":[{"label":"Create Token","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/authentication-api/paths/~1api~1open~1v3~1token/post","routeSlug":"/apis/3chat-api/authentication-api/paths/~1api~1open~1v3~1token/post","metadata":{"seo":{"title":"Create Token","description":"Create an access token."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Create Token","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1token/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Token","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Create an access token."},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterTokenRequest"}},"schemaId":"components/schemas/RequestParameterTokenRequest","pointer":"/paths/~1api~1open~1v3~1token/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/token","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/RequestParameterTokenRequest"}},"responseCodes":["200"],"pointer":"/api/open/v3/token","href":"authentication-api/paths/~1api~1open~1v3~1token/post","summary":"Create Token"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/RequestParameterTokenRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterTokenRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseOpenApiTokenDTO","exampleIds":["paths/~1api~1open~1v3~1token/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/EntityResponseOpenApiTokenDTO","exampleIds":["paths/~1api~1open~1v3~1token/post/responses/200/content/application~1json/example"]}],"pointer":"/paths/~1api~1open~1v3~1token/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/EntityResponseOpenApiTokenDTO","exampleIds":["paths/~1api~1open~1v3~1token/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseOpenApiTokenDTO","exampleIds":["paths/~1api~1open~1v3~1token/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/authentication-api/paths/~1api~1open~1v3~1token/post"}],"panels":[]}]},"httpPath":"/api/open/v3/token"},{"label":"Refresh Token","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/authentication-api/paths/~1api~1open~1v3~1token/put","routeSlug":"/apis/3chat-api/authentication-api/paths/~1api~1open~1v3~1token/put","metadata":{"seo":{"title":"Refresh Token","description":"Obtain a new access token after the current access_token expires."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Refresh Token","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1token/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Refresh Token","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Obtain a new access token after the current access_token expires."},"children":[]}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterTokenRefresh"}},"schemaId":"components/schemas/RequestParameterTokenRefresh","pointer":"/paths/~1api~1open~1v3~1token/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/api/open/v3/token","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/RequestParameterTokenRefresh"}},"responseCodes":["200"],"pointer":"/api/open/v3/token","href":"authentication-api/paths/~1api~1open~1v3~1token/put","summary":"Refresh Token"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/RequestParameterTokenRefresh","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterTokenRefresh"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseOpenApiTokenDTO","exampleIds":["paths/~1api~1open~1v3~1token/put/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/EntityResponseOpenApiTokenDTO","exampleIds":["paths/~1api~1open~1v3~1token/put/responses/200/content/application~1json/example"]}],"pointer":"/paths/~1api~1open~1v3~1token/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/EntityResponseOpenApiTokenDTO","exampleIds":["paths/~1api~1open~1v3~1token/put/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseOpenApiTokenDTO","exampleIds":["paths/~1api~1open~1v3~1token/put/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/authentication-api/paths/~1api~1open~1v3~1token/put"}],"panels":[]}]},"httpPath":"/api/open/v3/token"},{"label":"Check Access Permission","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/authentication-api/paths/~1api~1open~1authority~1certify/post","routeSlug":"/apis/3chat-api/authentication-api/paths/~1api~1open~1authority~1certify/post","metadata":{"seo":{"title":"Check Access Permission","description":"Validate whether a specified user's session or token is authorized to access a target API."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Check Access Permission","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1authority~1certify/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Check Access Permission","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Validate whether a specified user's "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"session"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is authorized to access a target API."},"children":[]}]}]},{"$$mdtype":"Node","type":"hr","attributes":{},"children":[]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"authentication-api/paths/~1api~1open~1authority~1certify/post/request/request-example","deepLinkHash":"/authentication-api/paths/~1api~1open~1authority~1certify/post#authentication-api/paths/~1api~1open~1authority~1certify/post/request/request-example"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Request example"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"curl 'https://app.3chat.ai/api/open/authority/certify' \\\n  -X PUT \\\n  -H 'content-type: application/json' \\\n  --data-raw '{\n    \"body\": {\n      \"method\": \"POST\",\n      \"uri\": \"/api/manufacture/workOrder/list\",\n      \"session\": \"NWM0YWQxODgtNmM5Yy00MDg3LWIyOTktNTNmMmFlZDQ0ZTZj\",\n      \"token\": \"7383A52EDC64E8FDFC35A444086924D6\"\n    }\n  }'\n","language":"bash"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"curl 'https://app.3chat.ai/api/open/authority/certify' \\\n  -X PUT \\\n  -H 'content-type: application/json' \\\n  --data-raw '{\n    \"body\": {\n      \"method\": \"POST\",\n      \"uri\": \"/api/manufacture/workOrder/list\",\n      \"session\": \"NWM0YWQxODgtNmM5Yy00MDg3LWIyOTktNTNmMmFlZDQ0ZTZj\",\n      \"token\": \"7383A52EDC64E8FDFC35A444086924D6\"\n    }\n  }'\n"},"children":[]}]},{"$$mdtype":"Node","type":"hr","attributes":{},"children":[]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"authentication-api/paths/~1api~1open~1authority~1certify/post/request/request-body","deepLinkHash":"/authentication-api/paths/~1api~1open~1authority~1certify/post#authentication-api/paths/~1api~1open~1authority~1certify/post/request/request-body"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Request body"},"children":[]}]}]},{"$$mdtype":"Node","type":"table","attributes":{},"children":[{"$$mdtype":"Node","type":"thead","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Field"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Type"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Required"},"children":[]}]}]},{"$$mdtype":"Node","type":"th","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Description"},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"tbody","attributes":{},"children":[{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"method"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"string"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Yes"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTTP method of the target API. Allowed values: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"GET"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"POST"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"PUT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DELETE"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"uri"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"string"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Yes"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Path of the target API without the domain, for example "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/manufacture/workOrder/list"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"session"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"string"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"User Session ID. Provide either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"session"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or both."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"tr","attributes":{},"children":[{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"token"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"string"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"No"},"children":[]}]}]},{"$$mdtype":"Node","type":"td","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"User Token. Provide either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"session"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or both."},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"hr","attributes":{},"children":[]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"authentication-api/paths/~1api~1open~1authority~1certify/post/request/where-to-obtain-the-values","deepLinkHash":"/authentication-api/paths/~1api~1open~1authority~1certify/post#authentication-api/paths/~1api~1open~1authority~1certify/post/request/where-to-obtain-the-values"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Where to obtain the values"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For browser requests, these values are stored in cookies. Open Developer Tools → Network → any request → Request Headers → Cookie, and locate:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"SESSION=..."},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" → use as "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"session"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"TOKEN=..."},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" → use as "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"token"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"method"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" → use the HTTP method of the API you want to authorize"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"uri"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" → use the target API path without the domain"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"blockquote","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This endpoint itself still uses the standard OpenAPI authentication mechanism."},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CertifyParams"}},"schemaId":"components/schemas/CertifyParams","pointer":"/paths/~1api~1open~1authority~1certify/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/authority/certify","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CertifyParams"}},"responseCodes":["200"],"pointer":"/api/open/authority/certify","href":"authentication-api/paths/~1api~1open~1authority~1certify/post","summary":"Check Access Permission"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/CertifyParams","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CertifyParams"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseCertifyResponseDTO"}},"schemaId":"components/schemas/EntityResponseCertifyResponseDTO","headers":{}}],"pointer":"/paths/~1api~1open~1authority~1certify/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/EntityResponseCertifyResponseDTO","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseCertifyResponseDTO"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/authentication-api/paths/~1api~1open~1authority~1certify/post"}],"panels":[]}]},"httpPath":"/api/open/authority/certify"}],"content":{"contentType":"group","meta":{"name":"Authentication API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Authentication","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v3/token","summary":"Create Token","prefix":{"name":"post","color":"post"},"badges":[],"link":"/authentication-api/paths/~1api~1open~1v3~1token/post","deprecated":false},{"title":"/api/open/v3/token","summary":"Refresh Token","prefix":{"name":"put","color":"put"},"badges":[],"link":"/authentication-api/paths/~1api~1open~1v3~1token/put","deprecated":false},{"title":"/api/open/authority/certify","summary":"Check Access Permission","prefix":{"name":"post","color":"post"},"badges":[],"link":"/authentication-api/paths/~1api~1open~1authority~1certify/post","deprecated":false}]}]}]}]}},{"type":"group","label":"Agent","link":"/apis/3chat-api/agentapi","routeSlug":"/apis/3chat-api/agentapi","items":[{"label":"Send Message to Agent","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post","routeSlug":"/apis/3chat-api/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post","metadata":{"seo":{"title":"Send Message to Agent","description":"Overview"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Send Message to Agent","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1chat~1completions/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Send Message to Agent","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/overview","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/overview"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Overview"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Send a user message ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"query"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":") to a 3Chat Agent and receive the Agent's response. The API supports both synchronous responses and asynchronous callbacks, and can include attachments and an explicit channel type. It is intended for integrations that use messaging channels not natively supported by 3Chat."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/key-parameters","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/key-parameters"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Key parameters"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/dialogid-dialog-id","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/dialogid-dialog-id"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — Dialog ID"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Optional."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When provided, the system looks up the specified dialog."},"children":[]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the dialog exists and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"userId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is also provided, the system verifies that the dialog belongs to the same contact identified by "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"userId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". A mismatch returns an error."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the dialog does not exist, the request returns an error."},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/userid-contact-id","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/userid-contact-id"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"userId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — Contact ID"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Optional."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When provided, the system looks up the corresponding contact."},"children":[]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is also provided, the system verifies that the dialog belongs to the same contact identified by "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"userId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". A mismatch returns an error."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the contact exists and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is omitted, the system reuses the dialog associated with that contact."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If the contact does not exist and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is omitted, the system creates a new contact and a new dialog."},"children":[]}]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When omitted:"},"children":[]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is provided, the system uses the contact associated with that dialog."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is also omitted, the system creates a new "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"anonymous"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" contact and a new dialog."},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/async-processing-mode","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/async-processing-mode"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"async"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — Processing mode"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Synchronous mode (default):"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" Set "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"async=false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or omit "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"async"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". The request remains open until Agent processing is complete and then returns the result. This mode is suitable for direct client rendering and lower-concurrency integrations."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Asynchronous mode:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" Set "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"async=true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". The API returns immediately, and after Agent processing completes:"},"children":[]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"sendWebhook"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" was provided, 3Chat sends the Agent response to that webhook."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"sendWebhook"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" was omitted, 3Chat sends the response back through the default mechanism for the current dialog's "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"channelType"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/sendwebhook-asynchronous-callback-url","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/sendwebhook-asynchronous-callback-url"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"sendWebhook"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — Asynchronous callback URL"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"only when "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"async=true"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Callback format:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"id\": \"message ID\",\n  \"content\": \"Agent response content\",\n  \"createdAt\": \"message timestamp\",\n  \"agentLogs\": \"Agent activity logs\",\n  \"attachments\": {\n    \"key\": \"\",\n    \"name\": \"attachment name\",\n    \"url\": \"attachment URL\",\n    \"contentType\": \"attachment content type\"\n  }\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"id\": \"message ID\",\n  \"content\": \"Agent response content\",\n  \"createdAt\": \"message timestamp\",\n  \"agentLogs\": \"Agent activity logs\",\n  \"attachments\": {\n    \"key\": \"\",\n    \"name\": \"attachment name\",\n    \"url\": \"attachment URL\",\n    \"contentType\": \"attachment content type\"\n  }\n}\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The callback is sent with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"POST"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". See the API response schema for details about "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"agentLogs"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"start":3,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Recommended webhook practices:"},"children":[]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Return HTTP 200 after successful receipt to prevent retries."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Make processing idempotent, for example by deduplicating on "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Respond within a short timeout window, such as 3–5 seconds."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Log the original request payload for troubleshooting, especially "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"agentLogs"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/channeltype-channel-attribution","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/channeltype-channel-attribution"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"channelType"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — Channel attribution"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Use this object when you need to explicitly identify the channel and proxy source for the dialog. If omitted, the default value is "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"OPENAPI"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". The selected channel information is shown anywhere 3Chat displays the message channel."},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/proxy-channel-proxy","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/proxy-channel-proxy"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"proxy"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — Channel proxy"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Determines the allowed values of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":":"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"CHATLY"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"MANYCHAT"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/type-channel-type","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/type-channel-type"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — Channel type"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"proxy=CHATLY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", supported values are:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"WECHAT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": WeChat"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"QYWECHAT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": WeCom"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"WECHAT_PUBLIC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": WeChat Official Account / Service Account"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"WECHAT_CUSTOMER_SERVICE"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": WeChat Customer Service"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"FEISHU"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Feishu"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"MICRO_APP"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Mini Program"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DINGDING"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": DingTalk"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"RED_BOOK"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Xiaohongshu (RED)"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"proxy=MANYCHAT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", supported values are:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"TIKTOK"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"WHATSAPP"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"MESSENGER"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"INSTAGRAM"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"SMS"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"TELEGRAM"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/files-attachments","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/files-attachments"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"files"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — Attachments"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"files"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is an array of attachment objects."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Use a standard MIME type for "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", such as "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image/png"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"application/pdf"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"url"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must point to a file that the 3Chat server can access under the applicable authentication policy."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"size"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the file size; use the unit expected by the implementation, typically bytes."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":3,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/options-optional-settings","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/options-optional-settings"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"options"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" — Optional settings"},"children":[]}]}]},{"$$mdtype":"Node","type":"heading","attributes":{"level":4,"id":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/options.user","deepLinkHash":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post#agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post/request/options.user"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"options.user"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Contact profile data in this object is applied "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"only when a new contact is created"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". It does not update an existing contact."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_63"}},"schemaId":"schema_63","pointer":"/paths/~1api~1open~1v4~1butler~1chat~1completions/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/chat/completions","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_63"}},"responseCodes":["200"],"pointer":"/api/open/v4/butler/chat/completions","href":"agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post","summary":"Send Message to Agent"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_63","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_63"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseChatDTO","exampleIds":["paths/~1api~1open~1v4~1butler~1chat~1completions/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/EntityResponseChatDTO","exampleIds":["paths/~1api~1open~1v4~1butler~1chat~1completions/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1chat~1completions/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/EntityResponseChatDTO","exampleIds":["paths/~1api~1open~1v4~1butler~1chat~1completions/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseChatDTO","exampleIds":["paths/~1api~1open~1v4~1butler~1chat~1completions/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/chat/completions"},{"label":"Deploy Agent","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/agentapi/paths/~1api~1open~1v4~1butler~1agent~1enable/post","routeSlug":"/apis/3chat-api/agentapi/paths/~1api~1open~1v4~1butler~1agent~1enable/post","metadata":{"seo":{"title":"Deploy Agent","description":"Enable or disable an Agent."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Deploy Agent","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1agent~1enable/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Deploy Agent","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Enable or disable an Agent."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/AgentEnableParams"}},"schemaId":"components/schemas/AgentEnableParams","pointer":"/paths/~1api~1open~1v4~1butler~1agent~1enable/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/agent/enable","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/AgentEnableParams"}},"responseCodes":["200"],"pointer":"/api/open/v4/butler/agent/enable","href":"agentapi/paths/~1api~1open~1v4~1butler~1agent~1enable/post","summary":"Deploy Agent"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/AgentEnableParams","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/AgentEnableParams"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Object"}},"schemaId":"components/schemas/Object","headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1agent~1enable/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Object","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Object"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/agentapi/paths/~1api~1open~1v4~1butler~1agent~1enable/post"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/agent/enable"}],"content":{"contentType":"group","meta":{"name":"Agent/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Agent","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v4/butler/chat/completions","summary":"Send Message to Agent","prefix":{"name":"post","color":"post"},"badges":[],"link":"/agentapi/paths/~1api~1open~1v4~1butler~1chat~1completions/post","deprecated":false},{"title":"/api/open/v4/butler/agent/enable","summary":"Deploy Agent","prefix":{"name":"post","color":"post"},"badges":[],"link":"/agentapi/paths/~1api~1open~1v4~1butler~1agent~1enable/post","deprecated":false}]}]}]}]}},{"type":"group","label":"Channel","link":"/apis/3chat-api/channelapi","routeSlug":"/apis/3chat-api/channelapi","items":[{"label":"[Facebook] Get Post Details","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/channelapi/paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post","routeSlug":"/apis/3chat-api/channelapi/paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post","metadata":{"seo":{"title":"[Facebook] Get Post Details","description":"Get details for the specified post."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"[Facebook] Get Post Details","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"[Facebook] Get Post Details","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Get details for the specified post."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameter_PostDetailParams_"}},"schemaId":"components/schemas/RequestParameter_PostDetailParams_","pointer":"/paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butler/meta/post/detail","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/RequestParameter_PostDetailParams_"}},"responseCodes":["200"],"pointer":"/api/open/v3/butler/meta/post/detail","href":"channelapi/paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post","summary":"[Facebook] Get Post Details"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/RequestParameter_PostDetailParams_","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameter_PostDetailParams_"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/channelapi/paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post"}],"panels":[]}]},"httpPath":"/api/open/v3/butler/meta/post/detail"},{"label":"[Facebook] Send Direct Message","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/channelapi/paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post","routeSlug":"/apis/3chat-api/channelapi/paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post","metadata":{"seo":{"title":"[Facebook] Send Direct Message","description":"Send a direct message to the specified user."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"[Facebook] Send Direct Message","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"[Facebook] Send Direct Message","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Send a direct message to the specified user."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameter_PrivateMessageSendParams_"}},"schemaId":"components/schemas/RequestParameter_PrivateMessageSendParams_","pointer":"/paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butler/meta/private-message/send","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/RequestParameter_PrivateMessageSendParams_"}},"responseCodes":["200"],"pointer":"/api/open/v3/butler/meta/private-message/send","href":"channelapi/paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post","summary":"[Facebook] Send Direct Message"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/RequestParameter_PrivateMessageSendParams_","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameter_PrivateMessageSendParams_"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/channelapi/paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post"}],"panels":[]}]},"httpPath":"/api/open/v3/butler/meta/private-message/send"},{"label":"[Facebook] Reply to Comment","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/channelapi/paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post","routeSlug":"/apis/3chat-api/channelapi/paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post","metadata":{"seo":{"title":"[Facebook] Reply to Comment","description":"Reply to a comment on a post."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"[Facebook] Reply to Comment","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"[Facebook] Reply to Comment","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Reply to a comment on a post."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameter_CommentReplyParams_"}},"schemaId":"components/schemas/RequestParameter_CommentReplyParams_","pointer":"/paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butler/meta/comment/reply","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/RequestParameter_CommentReplyParams_"}},"responseCodes":["200"],"pointer":"/api/open/v3/butler/meta/comment/reply","href":"channelapi/paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post","summary":"[Facebook] Reply to Comment"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/RequestParameter_CommentReplyParams_","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameter_CommentReplyParams_"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponse_Object_","exampleIds":["paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/channelapi/paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post"}],"panels":[]}]},"httpPath":"/api/open/v3/butler/meta/comment/reply"},{"label":"Send Message","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/channelapi/paths/~1api~1open~1v3~1butler~1channel~1message~1send/post","routeSlug":"/apis/3chat-api/channelapi/paths/~1api~1open~1v3~1butler~1channel~1message~1send/post","metadata":{"seo":{"title":"Send Message","description":"Send a message to a channel dialog."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Send Message","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butler~1channel~1message~1send/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Send Message","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Send a message to a channel dialog."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Parameter notes:"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"attachment.type"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must use a standard MIME type: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterChannelMessageSendParams"}},"schemaId":"components/schemas/RequestParameterChannelMessageSendParams","pointer":"/paths/~1api~1open~1v3~1butler~1channel~1message~1send/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butler/channel/message/send","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/RequestParameterChannelMessageSendParams"}},"responseCodes":["200"],"pointer":"/api/open/v3/butler/channel/message/send","href":"channelapi/paths/~1api~1open~1v3~1butler~1channel~1message~1send/post","summary":"Send Message"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/RequestParameterChannelMessageSendParams","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterChannelMessageSendParams"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseChannelMessageSendDTO","exampleIds":["paths/~1api~1open~1v3~1butler~1channel~1message~1send/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/EntityResponseChannelMessageSendDTO","exampleIds":["paths/~1api~1open~1v3~1butler~1channel~1message~1send/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butler~1channel~1message~1send/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/EntityResponseChannelMessageSendDTO","exampleIds":["paths/~1api~1open~1v3~1butler~1channel~1message~1send/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/EntityResponseChannelMessageSendDTO","exampleIds":["paths/~1api~1open~1v3~1butler~1channel~1message~1send/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/channelapi/paths/~1api~1open~1v3~1butler~1channel~1message~1send/post"}],"panels":[]}]},"httpPath":"/api/open/v3/butler/channel/message/send"},{"label":"List Channels","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/channelapi/querybutlerchannellist","routeSlug":"/apis/3chat-api/channelapi/querybutlerchannellist","metadata":{"seo":{"title":"List Channels","description":"List Channels"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"QUERYbutlerchannelList","name":"List Channels","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butlerchannel~1query/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Channels","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_64"}},"schemaId":"schema_64","pointer":"/paths/~1api~1open~1v3~1butlerchannel~1query/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butlerchannel/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_64"}},"responseCodes":["200"],"pointer":"/api/open/v3/butlerchannel/query","href":"channelapi/querybutlerchannellist","openApiOperationId":"QUERYbutlerchannelList","summary":"List Channels"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_64","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_64"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_65","exampleIds":["paths/~1api~1open~1v3~1butlerchannel~1query/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_65","exampleIds":["paths/~1api~1open~1v3~1butlerchannel~1query/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butlerchannel~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_65","exampleIds":["paths/~1api~1open~1v3~1butlerchannel~1query/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_65","exampleIds":["paths/~1api~1open~1v3~1butlerchannel~1query/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/channelapi/querybutlerchannellist"}],"panels":[]}]},"httpPath":"/api/open/v3/butlerchannel/query"}],"content":{"contentType":"group","meta":{"name":"Channel/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Channel","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v3/butler/meta/post/detail","summary":"[Facebook] Get Post Details","prefix":{"name":"post","color":"post"},"badges":[],"link":"/channelapi/paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post","deprecated":false},{"title":"/api/open/v3/butler/meta/private-message/send","summary":"[Facebook] Send Direct Message","prefix":{"name":"post","color":"post"},"badges":[],"link":"/channelapi/paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post","deprecated":false},{"title":"/api/open/v3/butler/meta/comment/reply","summary":"[Facebook] Reply to Comment","prefix":{"name":"post","color":"post"},"badges":[],"link":"/channelapi/paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post","deprecated":false},{"title":"/api/open/v3/butler/channel/message/send","summary":"Send Message","prefix":{"name":"post","color":"post"},"badges":[],"link":"/channelapi/paths/~1api~1open~1v3~1butler~1channel~1message~1send/post","deprecated":false},{"title":"/api/open/v3/butlerchannel/query","summary":"List Channels","prefix":{"name":"post","color":"post"},"badges":[],"link":"/channelapi/querybutlerchannellist","deprecated":false}]}]}]}]}},{"type":"group","label":"Dialog","link":"/apis/3chat-api/dialogapi","routeSlug":"/apis/3chat-api/dialogapi","items":[{"label":"List Dialogs","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/dialogapi/querybutlersessionlist","routeSlug":"/apis/3chat-api/dialogapi/querybutlersessionlist","metadata":{"seo":{"title":"List Dialogs","description":"List Dialogs"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"QUERYbutlersessionList","name":"List Dialogs","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butlersession~1query/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Dialogs","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_66"}},"schemaId":"schema_66","pointer":"/paths/~1api~1open~1v3~1butlersession~1query/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butlersession/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_66"}},"responseCodes":["200"],"pointer":"/api/open/v3/butlersession/query","href":"dialogapi/querybutlersessionlist","openApiOperationId":"QUERYbutlersessionList","summary":"List Dialogs"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_66","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_66"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_67"}},"schemaId":"schema_67","headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butlersession~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_67","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_67"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/dialogapi/querybutlersessionlist"}],"panels":[]}]},"httpPath":"/api/open/v3/butlersession/query"}],"content":{"contentType":"group","meta":{"name":"Dialog/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Dialog","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v3/butlersession/query","summary":"List Dialogs","prefix":{"name":"post","color":"post"},"badges":[],"link":"/dialogapi/querybutlersessionlist","deprecated":false}]}]}]}]}},{"type":"group","label":"Visitor","link":"/apis/3chat-api/visitorapi","routeSlug":"/apis/3chat-api/visitorapi","items":[{"label":"List Visitors","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/visitorapi/querybutlervisitorlist","routeSlug":"/apis/3chat-api/visitorapi/querybutlervisitorlist","metadata":{"seo":{"title":"List Visitors","description":"List Visitors"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"QUERYbutlervisitorList","name":"List Visitors","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butlervisitor~1query/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Visitors","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_68"}},"schemaId":"schema_68","pointer":"/paths/~1api~1open~1v3~1butlervisitor~1query/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butlervisitor/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_68"}},"responseCodes":["200"],"pointer":"/api/open/v3/butlervisitor/query","href":"visitorapi/querybutlervisitorlist","openApiOperationId":"QUERYbutlervisitorList","summary":"List Visitors"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_68","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_68"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_69","exampleIds":["paths/~1api~1open~1v3~1butlervisitor~1query/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_69","exampleIds":["paths/~1api~1open~1v3~1butlervisitor~1query/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butlervisitor~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_69","exampleIds":["paths/~1api~1open~1v3~1butlervisitor~1query/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_69","exampleIds":["paths/~1api~1open~1v3~1butlervisitor~1query/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/visitorapi/querybutlervisitorlist"}],"panels":[]}]},"httpPath":"/api/open/v3/butlervisitor/query"},{"label":"Update Visitor","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/visitorapi/paths/~1api~1open~1v3~1butler~1visitor~1update/post","routeSlug":"/apis/3chat-api/visitorapi/paths/~1api~1open~1v3~1butler~1visitor~1update/post","metadata":{"seo":{"title":"Update Visitor","description":"Update visitor fields."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Update Visitor","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butler~1visitor~1update/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update Visitor","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Update visitor fields."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_70"}},"schemaId":"schema_70","pointer":"/paths/~1api~1open~1v3~1butler~1visitor~1update/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butler/visitor/update","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_70"}},"responseCodes":["200"],"pointer":"/api/open/v3/butler/visitor/update","href":"visitorapi/paths/~1api~1open~1v3~1butler~1visitor~1update/post","summary":"Update Visitor"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_70","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_70"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_71","exampleIds":["paths/~1api~1open~1v3~1butler~1visitor~1update/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_71","exampleIds":["paths/~1api~1open~1v3~1butler~1visitor~1update/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butler~1visitor~1update/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_71","exampleIds":["paths/~1api~1open~1v3~1butler~1visitor~1update/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_71","exampleIds":["paths/~1api~1open~1v3~1butler~1visitor~1update/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/visitorapi/paths/~1api~1open~1v3~1butler~1visitor~1update/post"}],"panels":[]}]},"httpPath":"/api/open/v3/butler/visitor/update"},{"label":"Create Visitor","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/visitorapi/paths/~1api~1open~1v4~1butler~1visitor~1create/post","routeSlug":"/apis/3chat-api/visitorapi/paths/~1api~1open~1v4~1butler~1visitor~1create/post","metadata":{"seo":{"title":"Create Visitor","description":"Create Visitor"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Create Visitor","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1visitor~1create/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Visitor","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_72"}},"schemaId":"schema_72","pointer":"/paths/~1api~1open~1v4~1butler~1visitor~1create/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/visitor/create","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_72"}},"responseCodes":["200"],"pointer":"/api/open/v4/butler/visitor/create","href":"visitorapi/paths/~1api~1open~1v4~1butler~1visitor~1create/post","summary":"Create Visitor"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_72","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_72"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_73"}},"schemaId":"schema_73","headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1visitor~1create/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_73","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_73"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/visitorapi/paths/~1api~1open~1v4~1butler~1visitor~1create/post"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/visitor/create"}],"content":{"contentType":"group","meta":{"name":"Visitor/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Visitor","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v3/butlervisitor/query","summary":"List Visitors","prefix":{"name":"post","color":"post"},"badges":[],"link":"/visitorapi/querybutlervisitorlist","deprecated":false},{"title":"/api/open/v3/butler/visitor/update","summary":"Update Visitor","prefix":{"name":"post","color":"post"},"badges":[],"link":"/visitorapi/paths/~1api~1open~1v3~1butler~1visitor~1update/post","deprecated":false},{"title":"/api/open/v4/butler/visitor/create","summary":"Create Visitor","prefix":{"name":"post","color":"post"},"badges":[],"link":"/visitorapi/paths/~1api~1open~1v4~1butler~1visitor~1create/post","deprecated":false}]}]}]}]}},{"type":"group","label":"Conversation","link":"/apis/3chat-api/conversationapi","routeSlug":"/apis/3chat-api/conversationapi","items":[{"label":"Transfer to Human Agent (1:1 Chat)","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/conversationapi/paths/~1api~1open~1v3~1butler~1transfertohuman/post","routeSlug":"/apis/3chat-api/conversationapi/paths/~1api~1open~1v3~1butler~1transfertohuman/post","metadata":{"seo":{"title":"Transfer to Human Agent (1:1 Chat)","description":"Transfer to Human Agent (1:1 Chat)"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Transfer to Human Agent (1:1 Chat)","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butler~1transferToHuman/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Transfer to Human Agent (1:1 Chat)","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterTransferToHumanParams"}},"schemaId":"components/schemas/RequestParameterTransferToHumanParams","pointer":"/paths/~1api~1open~1v3~1butler~1transferToHuman/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butler/transferToHuman","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/RequestParameterTransferToHumanParams"}},"responseCodes":["200"],"pointer":"/api/open/v3/butler/transferToHuman","href":"conversationapi/paths/~1api~1open~1v3~1butler~1transfertohuman/post","summary":"Transfer to Human Agent (1:1 Chat)"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/RequestParameterTransferToHumanParams","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterTransferToHumanParams"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_74","exampleIds":["paths/~1api~1open~1v3~1butler~1transferToHuman/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_74","exampleIds":["paths/~1api~1open~1v3~1butler~1transferToHuman/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butler~1transferToHuman/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_74","exampleIds":["paths/~1api~1open~1v3~1butler~1transferToHuman/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_74","exampleIds":["paths/~1api~1open~1v3~1butler~1transferToHuman/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationapi/paths/~1api~1open~1v3~1butler~1transfertohuman/post"}],"panels":[]}]},"httpPath":"/api/open/v3/butler/transferToHuman"},{"label":"Transfer to Human Agent (Group Chat)","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/conversationapi/paths/~1api~1butler~1open~1v2~1group~1transfertohuman/post","routeSlug":"/apis/3chat-api/conversationapi/paths/~1api~1butler~1open~1v2~1group~1transfertohuman/post","metadata":{"seo":{"title":"Transfer to Human Agent (Group Chat)","description":"Parameter rules:"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Transfer to Human Agent (Group Chat)","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1butler~1open~1v2~1group~1transferToHuman/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Transfer to Human Agent (Group Chat)","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Parameter rules:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Provide at least one of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"groupId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"externalGroupId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to identify the group."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Provide "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"visitorId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to transfer a single contact to a human agent."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Provide "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"visitorId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" together with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"transferAccountId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to transfer a single contact and limit the handoff to one or more managed accounts in the list."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"visitorId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"imBotId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" cannot be provided together."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Provide only "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"imBotId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to transfer a managed account to a human agent."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"participantId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is not required. The API automatically resolves the corresponding group participant."},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_75"}},"schemaId":"schema_75","pointer":"/paths/~1api~1butler~1open~1v2~1group~1transferToHuman/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/butler/open/v2/group/transferToHuman","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_75"}},"responseCodes":["200"],"pointer":"/api/butler/open/v2/group/transferToHuman","href":"conversationapi/paths/~1api~1butler~1open~1v2~1group~1transfertohuman/post","summary":"Transfer to Human Agent (Group Chat)"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_75","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_75"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_76","exampleIds":["paths/~1api~1butler~1open~1v2~1group~1transferToHuman/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_76","exampleIds":["paths/~1api~1butler~1open~1v2~1group~1transferToHuman/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1butler~1open~1v2~1group~1transferToHuman/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_76","exampleIds":["paths/~1api~1butler~1open~1v2~1group~1transferToHuman/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_76","exampleIds":["paths/~1api~1butler~1open~1v2~1group~1transferToHuman/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationapi/paths/~1api~1butler~1open~1v2~1group~1transfertohuman/post"}],"panels":[]}]},"httpPath":"/api/butler/open/v2/group/transferToHuman"},{"label":"Assign Human Agent","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/conversationapi/paths/~1api~1open~1v4~1butler~1conversations~1assign/post","routeSlug":"/apis/3chat-api/conversationapi/paths/~1api~1open~1v4~1butler~1conversations~1assign/post","metadata":{"seo":{"title":"Assign Human Agent","description":"Assign Human Agent"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Assign Human Agent","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1conversations~1assign/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Assign Human Agent","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_77"}},"schemaId":"schema_77","pointer":"/paths/~1api~1open~1v4~1butler~1conversations~1assign/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/conversations/assign","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_77"}},"responseCodes":["200"],"pointer":"/api/open/v4/butler/conversations/assign","href":"conversationapi/paths/~1api~1open~1v4~1butler~1conversations~1assign/post","summary":"Assign Human Agent"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_77","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_77"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_78","exampleIds":["paths/~1api~1open~1v4~1butler~1conversations~1assign/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_78","exampleIds":["paths/~1api~1open~1v4~1butler~1conversations~1assign/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1conversations~1assign/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_78","exampleIds":["paths/~1api~1open~1v4~1butler~1conversations~1assign/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_78","exampleIds":["paths/~1api~1open~1v4~1butler~1conversations~1assign/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationapi/paths/~1api~1open~1v4~1butler~1conversations~1assign/post"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/conversations/assign"},{"label":"Close Conversation Manually","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1closed/post","routeSlug":"/apis/3chat-api/conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1closed/post","metadata":{"seo":{"title":"Close Conversation Manually","description":"Manually close the specified dialog."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Close Conversation Manually","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1conversation~1closed/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Close Conversation Manually","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Manually close the specified dialog."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationClosedParams"}},"schemaId":"components/schemas/ConversationClosedParams","pointer":"/paths/~1api~1open~1v4~1butler~1conversation~1closed/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/conversation/closed","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/ConversationClosedParams"}},"responseCodes":["200"],"pointer":"/api/open/v4/butler/conversation/closed","href":"conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1closed/post","summary":"Close Conversation Manually"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/ConversationClosedParams","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ConversationClosedParams"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Object"}},"schemaId":"components/schemas/Object","headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1conversation~1closed/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Object","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Object"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1closed/post"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/conversation/closed"},{"label":"List Conversations","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/conversationapi/querybutlerconversationlist","routeSlug":"/apis/3chat-api/conversationapi/querybutlerconversationlist","metadata":{"seo":{"title":"List Conversations","description":"List Conversations"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"QUERYbutlerconversationList","name":"List Conversations","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butlerconversation~1query/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Conversations","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_79"}},"schemaId":"schema_79","pointer":"/paths/~1api~1open~1v3~1butlerconversation~1query/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butlerconversation/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_79"}},"responseCodes":["200"],"pointer":"/api/open/v3/butlerconversation/query","href":"conversationapi/querybutlerconversationlist","openApiOperationId":"QUERYbutlerconversationList","summary":"List Conversations"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_79","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_79"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_80","exampleIds":["paths/~1api~1open~1v3~1butlerconversation~1query/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_80","exampleIds":["paths/~1api~1open~1v3~1butlerconversation~1query/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butlerconversation~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_80","exampleIds":["paths/~1api~1open~1v3~1butlerconversation~1query/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_80","exampleIds":["paths/~1api~1open~1v3~1butlerconversation~1query/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationapi/querybutlerconversationlist"}],"panels":[]}]},"httpPath":"/api/open/v3/butlerconversation/query"},{"label":"Update Conversation","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1update/post","routeSlug":"/apis/3chat-api/conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1update/post","metadata":{"seo":{"title":"Update Conversation","description":"Update Conversation"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Update Conversation","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1conversation~1update/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update Conversation","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_81"}},"schemaId":"schema_81","pointer":"/paths/~1api~1open~1v4~1butler~1conversation~1update/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/conversation/update","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_81"}},"responseCodes":["200"],"pointer":"/api/open/v4/butler/conversation/update","href":"conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1update/post","summary":"Update Conversation"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_81","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_81"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_82"}},"schemaId":"schema_82","headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1conversation~1update/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_82","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_82"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1update/post"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/conversation/update"}],"content":{"contentType":"group","meta":{"name":"Conversation/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Conversation","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v3/butler/transferToHuman","summary":"Transfer to Human Agent (1:1 Chat)","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationapi/paths/~1api~1open~1v3~1butler~1transfertohuman/post","deprecated":false},{"title":"/api/butler/open/v2/group/transferToHuman","summary":"Transfer to Human Agent (Group Chat)","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationapi/paths/~1api~1butler~1open~1v2~1group~1transfertohuman/post","deprecated":false},{"title":"/api/open/v4/butler/conversations/assign","summary":"Assign Human Agent","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationapi/paths/~1api~1open~1v4~1butler~1conversations~1assign/post","deprecated":false},{"title":"/api/open/v4/butler/conversation/closed","summary":"Close Conversation Manually","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1closed/post","deprecated":false},{"title":"/api/open/v3/butlerconversation/query","summary":"List Conversations","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationapi/querybutlerconversationlist","deprecated":false},{"title":"/api/open/v4/butler/conversation/update","summary":"Update Conversation","prefix":{"name":"post","color":"post"},"badges":[],"link":"/conversationapi/paths/~1api~1open~1v4~1butler~1conversation~1update/post","deprecated":false}]}]}]}]}},{"type":"group","label":"Message","link":"/apis/3chat-api/messageapi","routeSlug":"/apis/3chat-api/messageapi","items":[{"label":"List Messages","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/messageapi/querybutlermessagelist","routeSlug":"/apis/3chat-api/messageapi/querybutlermessagelist","metadata":{"seo":{"title":"List Messages","description":"List Messages"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"QUERYbutlermessageList","name":"List Messages","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butlermessage~1query/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Messages","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_83"}},"schemaId":"schema_83","pointer":"/paths/~1api~1open~1v3~1butlermessage~1query/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butlermessage/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_83"}},"responseCodes":["200"],"pointer":"/api/open/v3/butlermessage/query","href":"messageapi/querybutlermessagelist","openApiOperationId":"QUERYbutlermessageList","summary":"List Messages"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_83","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_83"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_84","exampleIds":["paths/~1api~1open~1v3~1butlermessage~1query/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_84","exampleIds":["paths/~1api~1open~1v3~1butlermessage~1query/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butlermessage~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_84","exampleIds":["paths/~1api~1open~1v3~1butlermessage~1query/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_84","exampleIds":["paths/~1api~1open~1v3~1butlermessage~1query/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/messageapi/querybutlermessagelist"}],"panels":[]}]},"httpPath":"/api/open/v3/butlermessage/query"}],"content":{"contentType":"group","meta":{"name":"Message/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Message","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v3/butlermessage/query","summary":"List Messages","prefix":{"name":"post","color":"post"},"badges":[],"link":"/messageapi/querybutlermessagelist","deprecated":false}]}]}]}]}},{"type":"group","label":"Knowledge Base","link":"/apis/3chat-api/knowledge-baseapi","routeSlug":"/apis/3chat-api/knowledge-baseapi","items":[{"label":"Upload File","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/knowledge-baseapi/uploadfile","routeSlug":"/apis/3chat-api/knowledge-baseapi/uploadfile","metadata":{"seo":{"title":"Upload File","description":"Upload a source file for knowledge processing. The API returns a fileId and fileUrl that can be referenced by a knowledge-processing task."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"uploadFile","name":"Upload File","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1files/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Upload File","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Upload a source file for knowledge processing. The API returns a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fileId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fileUrl"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" that can be referenced by a knowledge-processing task."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Supported file types:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"PDF: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"application/pdf"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Word: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Excel: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"application/vnd.ms-excel"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"TXT: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text/plain"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Markdown: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text/markdown"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text/mdx"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"HTML: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text/html"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"CSV: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text/csv"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Limits:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Maximum file size: 15 MB"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Maximum file-name length: 256 characters"},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["multipart/form-data"],"mediaTypeSchemas":{"multipart/form-data":{"schemaId":"schema_85"}},"schemaId":"schema_85","pointer":"/paths/~1api~1open~1v4~1butler~1files/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/files","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"multipart/form-data":{"schemaId":"schema_85"}},"responseCodes":["200","400","413","415"],"pointer":"/api/open/v4/butler/files","href":"knowledge-baseapi/uploadfile","openApiOperationId":"uploadFile","summary":"Upload File"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_85","mediaTypes":["multipart/form-data"],"mediaTypeSchemas":{"multipart/form-data":{"schemaId":"schema_85"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Upload successful","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_86","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_86","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/200/content/application~1json/example"],"headers":{}},{"code":"400","description":"Invalid request parameters.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_87"}},"schemaId":"schema_87","headers":{}},{"code":"413","description":"File is too large.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_88","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/413/content/application~1json/example"]}},"schemaId":"schema_88","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/413/content/application~1json/example"],"headers":{}},{"code":"415","description":"Unsupported file type.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_89","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/415/content/application~1json/example"]}},"schemaId":"schema_89","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/415/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1files/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_86","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_86","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/200/content/application~1json/example"]}}},{"code":"400","schemaId":"schema_87","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_87"}}},{"code":"413","schemaId":"schema_88","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/413/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_88","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/413/content/application~1json/example"]}}},{"code":"415","schemaId":"schema_89","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/415/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_89","exampleIds":["paths/~1api~1open~1v4~1butler~1files/post/responses/415/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/knowledge-baseapi/uploadfile"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/files"},{"label":"Create Knowledge Processing Task","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/knowledge-baseapi/createknowledgetask","routeSlug":"/apis/3chat-api/knowledge-baseapi/createknowledgetask","metadata":{"seo":{"title":"Create Knowledge Processing Task","description":"Create an asynchronous knowledge-processing task. The task can include three source types, and the system automatically processes all sources and uploads the resulting content to the Knowledge Base."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createKnowledgeTask","name":"Create Knowledge Processing Task","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1knowledge~1tasks/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Knowledge Processing Task","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create an asynchronous knowledge-processing task. The task can include three source types, and the system automatically processes all sources and uploads the resulting content to the Knowledge Base."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Supported source types:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"uploaded_file"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": References a file previously uploaded through the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"/files"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" API. Requires "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"fileId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"remote_file"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Provides a publicly or otherwise accessible external file URL. The system downloads and processes the file automatically."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"raw_text"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Provides text directly in the request; no file upload is required."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Design notes:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"All input sources use a single "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"sources[]"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" array. A task may contain multiple sources for batch ingestion."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The API returns a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"taskId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" immediately. Processing continues asynchronously, and progress can be obtained through the task-query API or a callback."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"A failure for one file does not stop the task; the remaining files continue to be processed."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Task statuses:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task.progress"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The task is in progress."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task.completed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Processing has finished for all files. This status can still be returned when all individual files failed, provided there was no task-level error."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task.failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": The task failed because of a task-level error."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Callback example:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"{\n  \"id\": \"df53ce97-2138-4898-8926-919bd7e161e8\",\n  \"type\": \"file.completed\",\n  \"createdAt\": 1778050876442,\n  \"data\": {\n    \"task\": {\n      \"taskId\": \"07adc997-2ce8-4dc4-89b9-08ede5bd9356\",\n      \"status\": \"task.progress\",\n      \"sourceSummary\": {\n        \"total\": 1,\n        \"accepted\": 1,\n        \"rejected\": 0,\n        \"queued\": 0,\n        \"uploading\": 0,\n        \"parsing\": 0,\n        \"completed\": 1,\n        \"failed\": 0\n      },\n      \"entitlement\": {\n        \"resourceType\": \"knowledge_unit\",\n        \"estimatedConsume\": 1,\n        \"actualConsume\": 1,\n        \"balanceRemain\": 5\n      },\n      \"errors\": [],\n      \"createdAt\": 1778050592419,\n      \"updatedAt\": 1778050875495\n    },\n    \"file\": {\n      \"sourceId\": \"my_sr_x1\",\n      \"internalId\": \"7b06a742-8593-4246-9f74-45e4cbeebbaa\",\n      \"type\": \"uploaded_file\",\n      \"displayName\": \"multi-active-conversations-by-channel.pdf\",\n      \"status\": \"file.completed\"\n    }\n  }\n}\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"{\n  \"id\": \"df53ce97-2138-4898-8926-919bd7e161e8\",\n  \"type\": \"file.completed\",\n  \"createdAt\": 1778050876442,\n  \"data\": {\n    \"task\": {\n      \"taskId\": \"07adc997-2ce8-4dc4-89b9-08ede5bd9356\",\n      \"status\": \"task.progress\",\n      \"sourceSummary\": {\n        \"total\": 1,\n        \"accepted\": 1,\n        \"rejected\": 0,\n        \"queued\": 0,\n        \"uploading\": 0,\n        \"parsing\": 0,\n        \"completed\": 1,\n        \"failed\": 0\n      },\n      \"entitlement\": {\n        \"resourceType\": \"knowledge_unit\",\n        \"estimatedConsume\": 1,\n        \"actualConsume\": 1,\n        \"balanceRemain\": 5\n      },\n      \"errors\": [],\n      \"createdAt\": 1778050592419,\n      \"updatedAt\": 1778050875495\n    },\n    \"file\": {\n      \"sourceId\": \"my_sr_x1\",\n      \"internalId\": \"7b06a742-8593-4246-9f74-45e4cbeebbaa\",\n      \"type\": \"uploaded_file\",\n      \"displayName\": \"multi-active-conversations-by-channel.pdf\",\n      \"status\": \"file.completed\"\n    }\n  }\n}\n"},"children":[]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_90"}},"schemaId":"schema_90","pointer":"/paths/~1api~1open~1v4~1butler~1knowledge~1tasks/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/knowledge/tasks","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_90"}},"responseCodes":["200","400"],"pointer":"/api/open/v4/butler/knowledge/tasks","href":"knowledge-baseapi/createknowledgetask","openApiOperationId":"createKnowledgeTask","summary":"Create Knowledge Processing Task"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_90","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_90"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Task created successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_91","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_91","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks/post/responses/200/content/application~1json/example"],"headers":{}},{"code":"400","description":"Invalid request parameters.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_92"}},"schemaId":"schema_92","headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1knowledge~1tasks/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_91","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_91","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks/post/responses/200/content/application~1json/example"]}}},{"code":"400","schemaId":"schema_92","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_92"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/knowledge-baseapi/createknowledgetask"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/knowledge/tasks"},{"label":"Get Knowledge Processing Task","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/knowledge-baseapi/getknowledgetask","routeSlug":"/apis/3chat-api/knowledge-baseapi/getknowledgetask","metadata":{"seo":{"title":"Get Knowledge Processing Task","description":"Retrieve the details and processing progress of a knowledge-processing task by task ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getKnowledgeTask","name":"Get Knowledge Processing Task","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Knowledge Processing Task","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieve the details and processing progress of a knowledge-processing task by task ID."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Task statuses:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task.progress"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Processing"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task.completed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Completed"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task.failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Failed"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Per-file statuses:"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file.uploading"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Uploading"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file.parsing"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Parsing"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file.completed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Completed"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file.failed"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Failed"},"children":[]}]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"taskId","in":"path","schemaId":"schema_93","description":"Task ID","required":true,"example":""}],"pointer":"/paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/open/v4/butler/knowledge/tasks/{taskId}","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[{"name":"taskId","in":"path","required":true,"example":"","schemaId":"schema_93"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"responseCodes":["200","404"],"pointer":"/api/open/v4/butler/knowledge/tasks/{taskId}","href":"knowledge-baseapi/getknowledgetask","openApiOperationId":"getKnowledgeTask","summary":"Get Knowledge Processing Task"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Query successful","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_94","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/200/content/application~1json/example"]}},"schemaId":"schema_94","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/200/content/application~1json/example"],"headers":{}},{"code":"404","description":"Task not found.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_95","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/404/content/application~1json/example"]}},"schemaId":"schema_95","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/404/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_94","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_94","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/200/content/application~1json/example"]}}},{"code":"404","schemaId":"schema_95","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_95","exampleIds":["paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/404/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/knowledge-baseapi/getknowledgetask"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/knowledge/tasks/{taskId}"},{"label":"Delete Knowledge Bases","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/knowledge-baseapi/paths/~1api~1open~1v4~1butler~1knowledge~1delete/post","routeSlug":"/apis/3chat-api/knowledge-baseapi/paths/~1api~1open~1v4~1butler~1knowledge~1delete/post","metadata":{"seo":{"title":"Delete Knowledge Bases","description":"Delete Knowledge Bases in bulk by Knowledge Base ID."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Delete Knowledge Bases","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1knowledge~1delete/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete Knowledge Bases","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Delete Knowledge Bases in bulk by Knowledge Base ID."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/KnowledgeDeleteParams"}},"schemaId":"components/schemas/KnowledgeDeleteParams","pointer":"/paths/~1api~1open~1v4~1butler~1knowledge~1delete/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/knowledge/delete","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/KnowledgeDeleteParams"}},"responseCodes":["200"],"pointer":"/api/open/v4/butler/knowledge/delete","href":"knowledge-baseapi/paths/~1api~1open~1v4~1butler~1knowledge~1delete/post","summary":"Delete Knowledge Bases"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/KnowledgeDeleteParams","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/KnowledgeDeleteParams"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Object"}},"schemaId":"components/schemas/Object","headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1knowledge~1delete/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Object","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Object"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/knowledge-baseapi/paths/~1api~1open~1v4~1butler~1knowledge~1delete/post"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/knowledge/delete"}],"content":{"contentType":"group","meta":{"name":"Knowledge Base/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Knowledge Base","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v4/butler/files","summary":"Upload File","prefix":{"name":"post","color":"post"},"badges":[],"link":"/knowledge-baseapi/uploadfile","deprecated":false},{"title":"/api/open/v4/butler/knowledge/tasks","summary":"Create Knowledge Processing Task","prefix":{"name":"post","color":"post"},"badges":[],"link":"/knowledge-baseapi/createknowledgetask","deprecated":false},{"title":"/api/open/v4/butler/knowledge/tasks/{taskId}","summary":"Get Knowledge Processing Task","prefix":{"name":"get","color":"get"},"badges":[],"link":"/knowledge-baseapi/getknowledgetask","deprecated":false},{"title":"/api/open/v4/butler/knowledge/delete","summary":"Delete Knowledge Bases","prefix":{"name":"post","color":"post"},"badges":[],"link":"/knowledge-baseapi/paths/~1api~1open~1v4~1butler~1knowledge~1delete/post","deprecated":false}]}]}]}]}},{"type":"group","label":"Chat Group","link":"/apis/3chat-api/chat-groupapi","routeSlug":"/apis/3chat-api/chat-groupapi","items":[{"label":"Update Chat Group","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/chat-groupapi/paths/~1api~1open~1v4~1butler~1group~1update/post","routeSlug":"/apis/3chat-api/chat-groupapi/paths/~1api~1open~1v4~1butler~1group~1update/post","metadata":{"seo":{"title":"Update Chat Group","description":"Update the basic information and custom fields of a Butler chat group."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Update Chat Group","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1group~1update/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update Chat Group","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Update the basic information and custom fields of a Butler chat group."},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_96"}},"schemaId":"schema_96","pointer":"/paths/~1api~1open~1v4~1butler~1group~1update/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/group/update","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_96"}},"responseCodes":["200"],"pointer":"/api/open/v4/butler/group/update","href":"chat-groupapi/paths/~1api~1open~1v4~1butler~1group~1update/post","summary":"Update Chat Group"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_96","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_96"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_97"}},"schemaId":"schema_97","headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1group~1update/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_97","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_97"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/chat-groupapi/paths/~1api~1open~1v4~1butler~1group~1update/post"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/group/update"},{"label":"List Chat Groups","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/chat-groupapi/querybutlergrouplist","routeSlug":"/apis/3chat-api/chat-groupapi/querybutlergrouplist","metadata":{"seo":{"title":"List Chat Groups","description":"List Chat Groups"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"QUERYbutlergroupList","name":"List Chat Groups","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butlergroup~1query/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Chat Groups","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_98"}},"schemaId":"schema_98","pointer":"/paths/~1api~1open~1v3~1butlergroup~1query/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butlergroup/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_98"}},"responseCodes":["200"],"pointer":"/api/open/v3/butlergroup/query","href":"chat-groupapi/querybutlergrouplist","openApiOperationId":"QUERYbutlergroupList","summary":"List Chat Groups"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_98","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_98"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_99"}},"schemaId":"schema_99","headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butlergroup~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_99","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_99"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/chat-groupapi/querybutlergrouplist"}],"panels":[]}]},"httpPath":"/api/open/v3/butlergroup/query"}],"content":{"contentType":"group","meta":{"name":"Chat Group/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Chat Group","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v4/butler/group/update","summary":"Update Chat Group","prefix":{"name":"post","color":"post"},"badges":[],"link":"/chat-groupapi/paths/~1api~1open~1v4~1butler~1group~1update/post","deprecated":false},{"title":"/api/open/v3/butlergroup/query","summary":"List Chat Groups","prefix":{"name":"post","color":"post"},"badges":[],"link":"/chat-groupapi/querybutlergrouplist","deprecated":false}]}]}]}]}},{"type":"group","label":"Skill","link":"/apis/3chat-api/skillapi","routeSlug":"/apis/3chat-api/skillapi","items":[{"label":"Create or Update Skill","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/skillapi/paths/~1api~1open~1v4~1butler~1agent~1skills~1createorupdate/post","routeSlug":"/apis/3chat-api/skillapi/paths/~1api~1open~1v4~1butler~1agent~1skills~1createorupdate/post","metadata":{"seo":{"title":"Create or Update Skill","description":"Create or Update Skill"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Create or Update Skill","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v4~1butler~1agent~1skills~1createOrUpdate/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create or Update Skill","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_100"}},"schemaId":"schema_100","pointer":"/paths/~1api~1open~1v4~1butler~1agent~1skills~1createOrUpdate/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v4/butler/agent/skills/createOrUpdate","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_100"}},"responseCodes":["200"],"pointer":"/api/open/v4/butler/agent/skills/createOrUpdate","href":"skillapi/paths/~1api~1open~1v4~1butler~1agent~1skills~1createorupdate/post","summary":"Create or Update Skill"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_100","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_100"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Object"}},"schemaId":"components/schemas/Object","headers":{}}],"pointer":"/paths/~1api~1open~1v4~1butler~1agent~1skills~1createOrUpdate/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Object","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Object"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/skillapi/paths/~1api~1open~1v4~1butler~1agent~1skills~1createorupdate/post"}],"panels":[]}]},"httpPath":"/api/open/v4/butler/agent/skills/createOrUpdate"},{"label":"List Skills","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/skillapi/paths/~1api~1open~1v3~1butlerskill~1query/post","routeSlug":"/apis/3chat-api/skillapi/paths/~1api~1open~1v3~1butlerskill~1query/post","metadata":{"seo":{"title":"List Skills","description":"List Skills"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"List Skills","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1butlerskill~1query/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Skills","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_101"}},"schemaId":"schema_101","pointer":"/paths/~1api~1open~1v3~1butlerskill~1query/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/butlerskill/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_101"}},"responseCodes":["200"],"pointer":"/api/open/v3/butlerskill/query","href":"skillapi/paths/~1api~1open~1v3~1butlerskill~1query/post","summary":"List Skills"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_101","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_101"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_102"}},"schemaId":"schema_102","headers":{}}],"pointer":"/paths/~1api~1open~1v3~1butlerskill~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_102","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_102"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/skillapi/paths/~1api~1open~1v3~1butlerskill~1query/post"}],"panels":[]}]},"httpPath":"/api/open/v3/butlerskill/query"}],"content":{"contentType":"group","meta":{"name":"Skill/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Skill","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v4/butler/agent/skills/createOrUpdate","summary":"Create or Update Skill","prefix":{"name":"post","color":"post"},"badges":[],"link":"/skillapi/paths/~1api~1open~1v4~1butler~1agent~1skills~1createorupdate/post","deprecated":false},{"title":"/api/open/v3/butlerskill/query","summary":"List Skills","prefix":{"name":"post","color":"post"},"badges":[],"link":"/skillapi/paths/~1api~1open~1v3~1butlerskill~1query/post","deprecated":false}]}]}]}]}},{"type":"group","label":"User & Tenant Domain","link":"/apis/3chat-api/user-and-tenant-domainstaffapi","routeSlug":"/apis/3chat-api/user-and-tenant-domainstaffapi","items":[{"label":"Create Staff Member","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1create/post","routeSlug":"/apis/3chat-api/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1create/post","metadata":{"seo":{"title":"Create Staff Member","description":"Create Staff Member"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Create Staff Member","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1staffs~1create/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Staff Member","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Create Staff Member"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterStaffSaveV3Param"}},"schemaId":"components/schemas/RequestParameterStaffSaveV3Param","pointer":"/paths/~1api~1open~1v3~1staffs~1create/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/staffs/create","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/RequestParameterStaffSaveV3Param"}},"responseCodes":["200"],"pointer":"/api/open/v3/staffs/create","href":"user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1create/post","summary":"Create Staff Member"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/RequestParameterStaffSaveV3Param","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterStaffSaveV3Param"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/BaseResponse","exampleIds":["paths/~1api~1open~1v3~1staffs~1create/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/BaseResponse","exampleIds":["paths/~1api~1open~1v3~1staffs~1create/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1staffs~1create/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/BaseResponse","exampleIds":["paths/~1api~1open~1v3~1staffs~1create/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/BaseResponse","exampleIds":["paths/~1api~1open~1v3~1staffs~1create/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1create/post"}],"panels":[]}]},"httpPath":"/api/open/v3/staffs/create"},{"label":"Update Staff Member","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1update/post","routeSlug":"/apis/3chat-api/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1update/post","metadata":{"seo":{"title":"Update Staff Member","description":"Update Staff Member"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Update Staff Member","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1staffs~1update/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update Staff Member","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Update Staff Member"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterStaffSaveV3Param"}},"schemaId":"components/schemas/RequestParameterStaffSaveV3Param","pointer":"/paths/~1api~1open~1v3~1staffs~1update/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/staffs/update","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/RequestParameterStaffSaveV3Param"}},"responseCodes":["200"],"pointer":"/api/open/v3/staffs/update","href":"user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1update/post","summary":"Update Staff Member"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"components/schemas/RequestParameterStaffSaveV3Param","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/RequestParameterStaffSaveV3Param"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/BaseResponse","exampleIds":["paths/~1api~1open~1v3~1staffs~1update/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/BaseResponse","exampleIds":["paths/~1api~1open~1v3~1staffs~1update/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1staffs~1update/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/BaseResponse","exampleIds":["paths/~1api~1open~1v3~1staffs~1update/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/BaseResponse","exampleIds":["paths/~1api~1open~1v3~1staffs~1update/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1update/post"}],"panels":[]}]},"httpPath":"/api/open/v3/staffs/update"},{"label":"List Staff Members","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/user-and-tenant-domainstaffapi/querystafflist","routeSlug":"/apis/3chat-api/user-and-tenant-domainstaffapi/querystafflist","metadata":{"seo":{"title":"List Staff Members","description":"List Staff Members"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"QUERYstaffList","name":"List Staff Members","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1staff~1query/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Staff Members","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"viewKey","in":"query","schemaId":"schema_93","description":"","required":true,"example":""}],"pointer":"/paths/~1api~1open~1v3~1staff~1query/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_103"}},"schemaId":"schema_103","pointer":"/paths/~1api~1open~1v3~1staff~1query/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/staff/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[{"name":"viewKey","in":"query","required":true,"example":"","schemaId":"schema_93"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_103"}},"responseCodes":["200"],"pointer":"/api/open/v3/staff/query","href":"user-and-tenant-domainstaffapi/querystafflist","openApiOperationId":"QUERYstaffList","summary":"List Staff Members"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_103","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_103"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_104"}},"schemaId":"schema_104","headers":{}}],"pointer":"/paths/~1api~1open~1v3~1staff~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_104","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_104"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/user-and-tenant-domainstaffapi/querystafflist"}],"panels":[]}]},"httpPath":"/api/open/v3/staff/query"},{"label":"Get Current Staff Member","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1currentstaff~1query/post","routeSlug":"/apis/3chat-api/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1currentstaff~1query/post","metadata":{"seo":{"title":"Get Current Staff Member","description":"Create Staff Member"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Get Current Staff Member","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1currentStaff~1query/post","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Current Staff Member","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Create Staff Member"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/currentStaff/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/api/open/v3/currentStaff/query","href":"user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1currentstaff~1query/post","summary":"Get Current Staff Member"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_105","exampleIds":["paths/~1api~1open~1v3~1currentStaff~1query/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_105","exampleIds":["paths/~1api~1open~1v3~1currentStaff~1query/post/responses/200/content/application~1json/example"],"headers":{}}],"pointer":"/paths/~1api~1open~1v3~1currentStaff~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_105","exampleIds":["paths/~1api~1open~1v3~1currentStaff~1query/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_105","exampleIds":["paths/~1api~1open~1v3~1currentStaff~1query/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1currentstaff~1query/post"}],"panels":[]}]},"httpPath":"/api/open/v3/currentStaff/query"},{"label":"List Staff Members in Batches","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/user-and-tenant-domainstaffapi/search_afterstafflist","routeSlug":"/apis/3chat-api/user-and-tenant-domainstaffapi/search_afterstafflist","metadata":{"seo":{"title":"List Staff Members in Batches","description":"List Staff Members in Batches"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"SEARCH_AFTERstaffList","name":"List Staff Members in Batches","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1staff~1searchAfter/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List Staff Members in Batches","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"viewKey","in":"query","schemaId":"schema_93","description":"","required":true,"example":""}],"pointer":"/paths/~1api~1open~1v3~1staff~1searchAfter/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_106"}},"schemaId":"schema_106","pointer":"/paths/~1api~1open~1v3~1staff~1searchAfter/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/staff/searchAfter","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[{"name":"viewKey","in":"query","required":true,"example":"","schemaId":"schema_93"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_106"}},"responseCodes":["200"],"pointer":"/api/open/v3/staff/searchAfter","href":"user-and-tenant-domainstaffapi/search_afterstafflist","openApiOperationId":"SEARCH_AFTERstaffList","summary":"List Staff Members in Batches"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_106","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_106"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_107"}},"schemaId":"schema_107","headers":{}}],"pointer":"/paths/~1api~1open~1v3~1staff~1searchAfter/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_107","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_107"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/user-and-tenant-domainstaffapi/search_afterstafflist"}],"panels":[]}]},"httpPath":"/api/open/v3/staff/searchAfter"},{"label":"Query Staff-Department Relationships","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/user-and-tenant-domainstaffapi/querydepartment_staff_relationlist","routeSlug":"/apis/3chat-api/user-and-tenant-domainstaffapi/querydepartment_staff_relationlist","metadata":{"seo":{"title":"Query Staff-Department Relationships","description":"Query Staff-Department Relationships"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"QUERYdepartment_staff_relationList","name":"Query Staff-Department Relationships","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1department_staff_relation~1query/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Query Staff-Department Relationships","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"viewKey","in":"query","schemaId":"schema_93","description":"","required":true,"example":""}],"pointer":"/paths/~1api~1open~1v3~1department_staff_relation~1query/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_108"}},"schemaId":"schema_108","pointer":"/paths/~1api~1open~1v3~1department_staff_relation~1query/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/department_staff_relation/query","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[{"name":"viewKey","in":"query","required":true,"example":"","schemaId":"schema_93"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_108"}},"responseCodes":["200"],"pointer":"/api/open/v3/department_staff_relation/query","href":"user-and-tenant-domainstaffapi/querydepartment_staff_relationlist","openApiOperationId":"QUERYdepartment_staff_relationList","summary":"Query Staff-Department Relationships"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_108","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_108"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_109"}},"schemaId":"schema_109","headers":{}}],"pointer":"/paths/~1api~1open~1v3~1department_staff_relation~1query/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_109","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_109"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/user-and-tenant-domainstaffapi/querydepartment_staff_relationlist"}],"panels":[]}]},"httpPath":"/api/open/v3/department_staff_relation/query"},{"label":"Query Staff-Department Relationships in Batches","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/3chat-api/user-and-tenant-domainstaffapi/search_afterdepartment_staff_relationlist","routeSlug":"/apis/3chat-api/user-and-tenant-domainstaffapi/search_afterdepartment_staff_relationlist","metadata":{"seo":{"title":"Query Staff-Department Relationships in Batches","description":"Query Staff-Department Relationships in Batches"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"SEARCH_AFTERdepartment_staff_relationList","name":"Query Staff-Department Relationships in Batches","deprecated":false,"isWebhook":false,"pointer":"/paths/~1api~1open~1v3~1department_staff_relation~1searchAfter/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Query Staff-Department Relationships in Batches","isWebhook":false,"deprecated":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"bearerAuth","scopes":[],"type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"viewKey","in":"query","schemaId":"schema_93","description":"","required":true,"example":""}],"pointer":"/paths/~1api~1open~1v3~1department_staff_relation~1searchAfter/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_110"}},"schemaId":"schema_110","pointer":"/paths/~1api~1open~1v3~1department_staff_relation~1searchAfter/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/open/v3/department_staff_relation/searchAfter","servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"parameters":{"path":[],"query":[{"name":"viewKey","in":"query","required":true,"example":"","schemaId":"schema_93"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_110"}},"responseCodes":["200"],"pointer":"/api/open/v3/department_staff_relation/searchAfter","href":"user-and-tenant-domainstaffapi/search_afterdepartment_staff_relationlist","openApiOperationId":"SEARCH_AFTERdepartment_staff_relationList","summary":"Query Staff-Department Relationships in Batches"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/3chat-api","description":"Mock server","isMockServer":true},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"schemaId":"schema_110","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_110"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_111"}},"schemaId":"schema_111","headers":{}}],"pointer":"/paths/~1api~1open~1v3~1department_staff_relation~1searchAfter/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_111","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_111"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/user-and-tenant-domainstaffapi/search_afterdepartment_staff_relationlist"}],"panels":[]}]},"httpPath":"/api/open/v3/department_staff_relation/searchAfter"}],"content":{"contentType":"group","meta":{"name":"User & Tenant Domain/Staff/API"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"User & Tenant Domain","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/open/v3/staffs/create","summary":"Create Staff Member","prefix":{"name":"post","color":"post"},"badges":[],"link":"/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1create/post","deprecated":false},{"title":"/api/open/v3/staffs/update","summary":"Update Staff Member","prefix":{"name":"post","color":"post"},"badges":[],"link":"/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1staffs~1update/post","deprecated":false},{"title":"/api/open/v3/staff/query","summary":"List Staff Members","prefix":{"name":"post","color":"post"},"badges":[],"link":"/user-and-tenant-domainstaffapi/querystafflist","deprecated":false},{"title":"/api/open/v3/currentStaff/query","summary":"Get Current Staff Member","prefix":{"name":"post","color":"post"},"badges":[],"link":"/user-and-tenant-domainstaffapi/paths/~1api~1open~1v3~1currentstaff~1query/post","deprecated":false},{"title":"/api/open/v3/staff/searchAfter","summary":"List Staff Members in Batches","prefix":{"name":"post","color":"post"},"badges":[],"link":"/user-and-tenant-domainstaffapi/search_afterstafflist","deprecated":false},{"title":"/api/open/v3/department_staff_relation/query","summary":"Query Staff-Department Relationships","prefix":{"name":"post","color":"post"},"badges":[],"link":"/user-and-tenant-domainstaffapi/querydepartment_staff_relationlist","deprecated":false},{"title":"/api/open/v3/department_staff_relation/searchAfter","summary":"Query Staff-Department Relationships in Batches","prefix":{"name":"post","color":"post"},"badges":[],"link":"/user-and-tenant-domainstaffapi/search_afterdepartment_staff_relationlist","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/butlervisitor_sort":{"id":"components/schemas/butlervisitor_sort","kind":"json-schema","title":"butlervisitor_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: totalVisits, updatedTime, lastVisitTime, createdTime, firstVisitTime"}}}},"components/schemas/butlersession":{"id":"components/schemas/butlersession","kind":"json-schema","title":"butlersession","data":{"type":"object","properties":{"updatedTime":{"type":"integer","description":"updatedTime, Unix timestamp in milliseconds.","format":"int64"},"workSpaceId":{"type":"string","description":"workSpaceId"},"createdTime":{"type":"integer","description":"createdTime, Unix timestamp in milliseconds.","format":"int64"},"visitorId":{"type":"string","description":"visitorId"}}}},"components/schemas/butlersession_sort":{"id":"components/schemas/butlersession_sort","kind":"json-schema","title":"butlersession_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: updatedTime, createdTime"}}}},"components/schemas/butlervisitor":{"id":"components/schemas/butlervisitor","kind":"json-schema","title":"butlervisitor","data":{"type":"object","properties":{"dataId":{"type":"string","description":"Visitor data ID"},"totalVisits":{"type":"number","description":"Total visits","format":"double"},"updatedTime":{"type":"integer","description":"Last updated time, Unix timestamp in milliseconds.","format":"int64"},"firstTouch":{"type":"string","description":"First-touch information"},"language":{"type":"string","description":"Preferred language"},"lastTouch":{"type":"string","description":"Last-touch information"},"utmSourceLast":{"type":"string","description":"UTM"},"accountId":{"type":"string","description":"accountId"},"phoneNumber":{"type":"string","description":"Phone number"},"browserAgent":{"type":"string","description":"Browser information"},"lastVisitTime":{"type":"integer","description":"Last visit time, Unix timestamp in milliseconds.","format":"int64"},"externalReferrerLast":{"type":"string","description":"Source information"},"name":{"type":"string","description":"Name"},"createdTime":{"type":"integer","description":"Creation time, Unix timestamp in milliseconds.","format":"int64"},"lookup_35619bh169":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Channel type: chatly=Chatly, openApi=OpenAPI, lazadaSeller=Lazada, wechatPublic=WeChat Official Account, feishu=Feishu, qywechat=WeCom, liveChat=Live Chat, email=Email, unknown=Unknown."},"children":[]}]}]}]},"lastVisitIp":{"type":"string","description":"Last-visit IP address"},"landingPageLast":{"type":"string","description":"Last visited page"},"lookup_gd40h55ggc":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Source channel, 110=Shopify, 10=DingTalk, 11=Feishu, 12=Livechat (old), 13=WeChat Official Account (old), 14=Feishu (old), 15=Lazada (old), 16=openApi (old), 17=WeCom (old), 18=Chatly (old), 19=Unknown, 0=0, 1=WeChat, 101=Email, 2=WeCom, 102=Livechat, 3=WeChat Official Account, 103=WeChat Official Account, 4=WhatsApp, 104=Feishu, 5=WeChat Customer Service, 105=Lazada, 6=TikTok, 106=OpenAPI, 7=Mini Program, 107=WeCom, 8=Douyin, 108=Chatly, 9=Instagram, 109=Unknown, 20=Shopify (old)"},"children":[]}]}]}]},"email":{"type":"string","description":"Email address"},"firstVisitTime":{"type":"integer","description":"First visit time, Unix timestamp in milliseconds.","format":"int64"},"externalUserId":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Chatly channel "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"externalUserId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter."},"children":[]}]}]}]},{"type":"null"}]},"botUserId":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Chatly channel "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"botUserId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter."},"children":[]}]}]}]},{"type":"null"}]},"imBotId":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Chatly channel "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"imBotId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter."},"children":[]}]}]}]},{"type":"null"}]},"orgId":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Chatly channel "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"orgId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameter."},"children":[]}]}]}]},{"type":"null"}]}},"required":["dataId"]}},"components/schemas/staff":{"id":"components/schemas/staff","kind":"json-schema","title":"staff","data":{"type":"object","properties":{"name":{"type":"string","description":"Staff name"},"employeeId":{"type":"string","description":"Staff employee number"},"headPortrait":{"type":"string","description":"Staff avatar"}}}},"components/schemas/staff_filter":{"id":"components/schemas/staff_filter","kind":"json-schema","title":"staff_filter","data":{"type":"object","properties":{"id":{"description":"ID (supports multi-value filtering).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}}}}},"components/schemas/staff_sort":{"id":"components/schemas/staff_sort","kind":"json-schema","title":"staff_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: "}}}},"components/schemas/AccountParam":{"id":"components/schemas/AccountParam","kind":"json-schema","title":"AccountParam","data":{"type":"object","properties":{"account":{"anyOf":[{"type":"string","description":"Account"},{"type":"null"}]},"password":{"anyOf":[{"type":"string","description":"Password"},{"type":"null"}]}},"required":["account","password"]}},"components/schemas/StaffSaveV3Param":{"id":"components/schemas/StaffSaveV3Param","kind":"json-schema","title":"StaffSaveV3Param","data":{"type":"object","properties":{"code":{"anyOf":[{"type":"string","description":"Code"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"accountInfo":{"$ref":"#/components/schemas/AccountParam","description":"Account information. Optional. If provided, an account is enabled for the staff member; if omitted, the staff member does not have a login account."},"roleNames":{"type":"array","items":{"type":"string"},"description":"Role list"},"departmentNames":{"type":"array","items":{"type":"string"},"description":"Department list"}},"required":["code","name"]}},"components/schemas/RequestParameterStaffSaveV3Param":{"id":"components/schemas/RequestParameterStaffSaveV3Param","kind":"json-schema","title":"RequestParameterStaffSaveV3Param","data":{"type":"object","properties":{"body":{"anyOf":[{"description":"","$ref":"#/components/schemas/StaffSaveV3Param"},{"type":"null"}]}},"required":["body"]}},"components/schemas/ChannelMessageSendParams":{"id":"components/schemas/ChannelMessageSendParams","kind":"json-schema","title":"ChannelMessageSendParams","data":{"type":"object","properties":{"dialogId":{"type":"string","description":"Dialog ID"},"message":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Message content. At least one of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"attachments"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must be non-empty."},"children":[]}]}]}]},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentData","description":"Attachment metadata."},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Attachment list. At least one of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"attachments"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"message"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must be non-empty."},"children":[]}]}]}]},"emailOptions":{"$ref":"#/components/schemas/ChannelMessageSendEmailParams","description":""}}}},"components/schemas/ChannelMessageSendDTO":{"id":"components/schemas/ChannelMessageSendDTO","kind":"json-schema","title":"ChannelMessageSendDTO","data":{"type":"object","properties":{"messageId":{"type":"string","description":"Message ID"}}}},"components/schemas/EntityResponseDataChannelMessageSendDTO":{"id":"components/schemas/EntityResponseDataChannelMessageSendDTO","kind":"json-schema","title":"EntityResponseDataChannelMessageSendDTO","data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/ChannelMessageSendDTO","description":""}}}},"components/schemas/EntityResponseChannelMessageSendDTO":{"id":"components/schemas/EntityResponseChannelMessageSendDTO","kind":"json-schema","title":"EntityResponseChannelMessageSendDTO","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"$ref":"#/components/schemas/EntityResponseDataChannelMessageSendDTO","description":""}}}},"components/schemas/RequestParameterChannelMessageSendParams":{"id":"components/schemas/RequestParameterChannelMessageSendParams","kind":"json-schema","title":"RequestParameterChannelMessageSendParams","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/ChannelMessageSendParams","description":""}},"required":["body"]}},"components/schemas/AttachmentData":{"id":"components/schemas/AttachmentData","kind":"json-schema","title":"AttachmentData","data":{"type":"object","properties":{"name":{"type":"string","description":"Attachment name"},"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Attachment type. Use a standard HTTP media type: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types"},"children":[]}]}]}]},"url":{"type":"string","description":"Attachment URL"},"size":{"type":"integer","description":"Attachment size","format":"int64"}}}},"components/schemas/TransferToHumanParams":{"id":"components/schemas/TransferToHumanParams","kind":"json-schema","title":"TransferToHumanParams","data":{"type":"object","properties":{"dialogId":{"type":"string","description":"Dialog ID"}}}},"components/schemas/RequestParameterTransferToHumanParams":{"id":"components/schemas/RequestParameterTransferToHumanParams","kind":"json-schema","title":"RequestParameterTransferToHumanParams","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/TransferToHumanParams","description":""}},"required":["body"]}},"components/schemas/ChannelMessageSendEmailParams":{"id":"components/schemas/ChannelMessageSendEmailParams","kind":"json-schema","title":"ChannelMessageSendEmailParams","data":{"type":"object","properties":{"topic":{"type":"string","description":"Subject/title used for the email channel."},"useAttachmentBuffer":{"type":"boolean","description":"Whether to send attachment binary data for the email channel. When binary attachment data is included, each attachment must not exceed 10 MB."},"replyEmailMessageId":{"type":"string","description":"Email message ID to reply to."}}}},"components/schemas/butlermessage_sort":{"id":"components/schemas/butlermessage_sort","kind":"json-schema","title":"butlermessage_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: updatedTime, msgType, createdTime"}}}},"components/schemas/RecipientInfo":{"id":"components/schemas/RecipientInfo","kind":"json-schema","title":"RecipientInfo","data":{"type":"object","properties":{"commentId":{"anyOf":[{"type":"string","description":"Comment ID"},{"type":"null"}]},"id":{"anyOf":[{"type":"string","description":"Recipient ID"},{"type":"null"}]},"postId":{"anyOf":[{"type":"string","description":"Post ID"},{"type":"null"}]},"userRef":{"anyOf":[{"type":"string","description":"User reference"},{"type":"null"}]}}}},"components/schemas/PrivateMessageSendParams":{"id":"components/schemas/PrivateMessageSendParams","kind":"json-schema","title":"PrivateMessageSendParams","data":{"type":"object","properties":{"pageId":{"type":"string","description":"Page ID"},"recipient":{"$ref":"#/components/schemas/RecipientInfo","description":"Recipient information"},"message":{"type":"string","description":"Message content"}},"required":["pageId","recipient","message"]}},"components/schemas/RequestParameter_PrivateMessageSendParams_":{"id":"components/schemas/RequestParameter_PrivateMessageSendParams_","kind":"json-schema","title":"RequestParameter_PrivateMessageSendParams_","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/PrivateMessageSendParams","description":""}},"required":["body"]}},"components/schemas/CommentReplyParams":{"id":"components/schemas/CommentReplyParams","kind":"json-schema","title":"CommentReplyParams","data":{"type":"object","properties":{"pageId":{"type":"string","description":"Page ID"},"commentId":{"type":"string","description":"Comment ID"},"message":{"type":"string","description":"Reply content"}},"required":["pageId","commentId","message"]}},"components/schemas/RequestParameter_CommentReplyParams_":{"id":"components/schemas/RequestParameter_CommentReplyParams_","kind":"json-schema","title":"RequestParameter_CommentReplyParams_","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/CommentReplyParams","description":""}},"required":["body"]}},"components/schemas/PostDetailParams":{"id":"components/schemas/PostDetailParams","kind":"json-schema","title":"PostDetailParams","data":{"type":"object","properties":{"pageId":{"type":"string","description":"Page ID"},"postId":{"type":"string","description":"Post ID"},"fields":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Comma-separated list of fields to return. For example: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id,message,created_time,permalink_url,from{id,name},shares,comments,likes,attachments{media_type,media,subattachments}"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"type":"null"}]}},"required":["pageId","postId"]}},"components/schemas/RequestParameter_PostDetailParams_":{"id":"components/schemas/RequestParameter_PostDetailParams_","kind":"json-schema","title":"RequestParameter_PostDetailParams_","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/PostDetailParams","description":""}},"required":["body"]}},"components/schemas/EntityResponseData_Object_":{"id":"components/schemas/EntityResponseData_Object_","kind":"json-schema","title":"EntityResponseData_Object_","data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/Object","description":""}}}},"components/schemas/EntityResponse_Object_":{"id":"components/schemas/EntityResponse_Object_","kind":"json-schema","title":"EntityResponse_Object_","data":{"type":"object","properties":{"code":{"anyOf":[{"type":"integer","description":""},{"type":"null"}]},"message":{"anyOf":[{"type":"string","description":""},{"type":"null"}]},"data":{"$ref":"#/components/schemas/EntityResponseData_Object_","description":""}}}},"components/schemas/Object":{"id":"components/schemas/Object","kind":"json-schema","title":"Object","data":{"type":"object","properties":{}}},"components/schemas/butlerconversation":{"id":"components/schemas/butlerconversation","kind":"json-schema","title":"butlerconversation","data":{"type":"object","properties":{"convStatus":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Status: 2 = active, 3 = completed."},"children":[]}]}]}]},"summary":{"type":"string","description":"Current conversation summary"},"updatedTime":{"type":"integer","description":"Last updated time, Unix timestamp in milliseconds.","format":"int64"},"replyStrategy":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Reply strategy: 1 = human agent; 2 = 3Chat AI Agent; 3 = contact/visitor."},"children":[]}]}]}]},"completedTime":{"type":"integer","description":"Closed time, Unix timestamp in milliseconds.","format":"int64"},"solved":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Resolved status. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = resolved; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = unresolved."},"children":[]}]}]}]},"ratingComment":{"type":"string","description":"Contact rating"},"lookup_3g71fgh5f5":{"type":"string","description":"Contact name"},"duration":{"type":"number","description":"Conversation duration","format":"double"},"dataId":{"type":"string","description":"Database ID"},"userAccountId":{"type":"string","description":"Visitor platform ID"},"createdTime":{"type":"integer","description":"Creation time, Unix timestamp in milliseconds.","format":"int64"},"lookup_h70b811f83":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Channel type (new), 110=Shopify, 111=Facebook, 112=Instagram, 113=Sandbox, 114=SHOPLINE, 10=DingTalk, 11=Feishu, 12=Xiaohongshu (RED), 13=WeChat Official Account (old), 14=Feishu (old), 15=Lazada (old), 16=openApi (old), 17=WeCom (old), 18=Chatly (old), 19=Unknown, 0=0, 1=WeChat, 101=Email, 2=WeCom, 102=Livechat, 3=WeChat Official Account, 103=WeChat Official Account, 4=WhatsApp, 104=Feishu, 5=WeChat Customer Service, 105=Lazada, 6=TikTok, 106=OpenAPI, 7=WeChat Mini Program, 107=WeCom, 8=Douyin, 108=Chatly, 9=Instagram, 109=Unknown, 20=Shopify (old)"},"children":[]}]}]}]},"ratingLevels":{"type":"string","description":"Rating: 1, 2, 3, 4, or 5."},"lookup_02fghe5910":{"type":"string","description":"Contact email address"},"solverType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Resolver: 1 = 3Chat; 2 = human agent."},"children":[]}]}]}]}}}},"components/schemas/butlerconversation_sort":{"id":"components/schemas/butlerconversation_sort","kind":"json-schema","title":"butlerconversation_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: duration, updatedTime, completedTime, createdTime"}}}},"components/schemas/butlerchannel":{"id":"components/schemas/butlerchannel","kind":"json-schema","title":"butlerchannel","data":{"type":"object","properties":{"updatedTime":{"type":"integer","description":"updatedTime, Unix timestamp in milliseconds.","format":"int64"},"weChatPublicAppId":{"type":"string","description":"weChatPublicAppId"},"appName":{"type":"string","description":"appName"},"accountType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"accountType: [110=Shopify, 111=Facebook, 112=Instagram, 113=Sandbox, 114=SHOPLINE, 10=DingTalk, 11=Feishu, 12=Xiaohongshu (RED), 13=WeChat Official Account (old), 14=Feishu (old), 15=Lazada (old), 16=openApi (old), 17=WeCom (old), 18=Chatly (old), 19=Unknown, 0=0, 1=WeChat, 101=Email address, 2=WeCom, 102=Livechat, 3=WeChat Official Account, 103=WeChat Official Account, 4=WhatsApp, 104=Feishu, 5=WeChat Customer Service, 105=Lazada, 6=TikTok, 106=OpenAPI, 7=WeChat Mini Program, 107=WeCom, 8=Douyin, 108=Chatly, 9=Instagram, 109=Unknown, 20=Shopify (old)]"},"children":[]}]}]}]},"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"type: [chatly=Chatly, openApi=OpenAPI, lazadaSeller=Lazada, wechatPublic=WeChat Official Account, feishu=Feishu, qywechat=WeCom, liveChat=Live Chat, email=Email, meta=Facebook, instagram=Instagram, sandbox=Sandbox, unknown=Unknown]"},"children":[]}]}]}]},"accessToken":{"type":"string","description":"accessToken"},"feishuAppId":{"type":"string","description":"feishuAppId"},"dataId":{"type":"string","description":"dataId"},"feishuSecret":{"type":"string","description":"feishuSecret"},"authorizerRefreshToken":{"type":"string","description":"authorizerRefreshToken"},"feishuTenantAccessToken":{"type":"string","description":"feishuTenantAccessToken"},"workSpaceId":{"type":"string","description":"workSpaceId"},"createdTime":{"type":"integer","description":"createdTime, Unix timestamp in milliseconds.","format":"int64"},"lazadaSellerId":{"type":"string","description":"lazadaSellerId"},"liveChatType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"liveChatType: [shopify=Shopify, official=Official Website, shopline=SHOPLINE, shared=Shared Link]"},"children":[]}]}]}]}}}},"components/schemas/butlerchannel_filter":{"id":"components/schemas/butlerchannel_filter","kind":"json-schema","title":"butlerchannel_filter","data":{"type":"object","properties":{"updatedTime":{"description":"updatedTime, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"weChatPublicAppId":{"description":"weChatPublicAppId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"appName":{"description":"appName (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"accountType":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"accountType, 110=Shopify, 111=Facebook, 112=Instagram, 113=Sandbox, 114=SHOPLINE, 10=DingTalk, 11=Feishu, 12=Xiaohongshu (RED), 13=WeChat Official Account (old), 14=Feishu (old), 15=Lazada (old), 16=openApi (old), 17=WeCom (old), 18=Chatly (old), 19=Unknown, 0=0, 1=WeChat, 101=Email, 2=WeCom, 102=Livechat, 3=WeChat Official Account, 103=WeChat Official Account, 4=WhatsApp, 104=Feishu, 5=WeChat Customer Service, 105=Lazada, 6=TikTok, 106=OpenAPI, 7=WeChat Mini Program, 107=WeCom, 8=Douyin, 108=Chatly, 9=Instagram, 109=Unknown, 20=Shopify (old) (supports multi-value filtering)"},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"type":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"type: chatly=Chatly, openApi=OpenAPI, lazadaSeller=Lazada, wechatPublic=WeChat Official Account, feishu=Feishu, qywechat=WeCom, liveChat=Live Chat, email=Email, unknown=Unknown. Supports multi-value filtering."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"accessToken":{"description":"accessToken (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"feishuAppId":{"description":"feishuAppId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"dataId":{"description":"dataId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"feishuSecret":{"description":"feishuSecret (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"authorizerRefreshToken":{"description":"authorizerRefreshToken (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"feishuTenantAccessToken":{"description":"feishuTenantAccessToken (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"workSpaceId":{"description":"workSpaceId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"createdTime":{"description":"createdTime, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"lazadaSellerId":{"description":"lazadaSellerId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"liveChatType":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"liveChatType: shopify=Shopify, official=Official Website, shopline=SHOPLINE. Supports multi-value filtering."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"id":{"description":"ID (supports multi-value filtering).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}}}}},"components/schemas/butlerchannel_sort":{"id":"components/schemas/butlerchannel_sort","kind":"json-schema","title":"butlerchannel_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: updatedTime, createdTime"}}}},"components/schemas/butlermessage":{"id":"components/schemas/butlermessage","kind":"json-schema","title":"butlermessage","data":{"type":"object","properties":{"updatedTime":{"type":"integer","description":"updatedTime, Unix timestamp in milliseconds.","format":"int64"},"createdTime":{"type":"integer","description":"createdTime, Unix timestamp in milliseconds.","format":"int64"},"senderId":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sender ID. If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"senderType==1"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"senderId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is the contact ID; if "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"senderType==2"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", it is the platform sender ID; if "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"senderType==3"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", it is the Agent ID."},"children":[]}]}]}]},"workSpaceId":{"type":"string","description":"workSpaceId"},"senderType":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"senderType: -1 = unknown; 0 = system; 1 = contact (customer); 2 = human agent; 3 = 3Chat Agent."},"children":[]}]}]}]},"isEffectiveReply":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"isEffectiveReply: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = yes; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = no."},"children":[]}]}]}]},"email":{"type":"object","description":"email","properties":{"from":{"type":"string","description":"Sender address"},"fromName":{"anyOf":[{"type":"string","description":"Sender name"},{"type":"null"}]},"to":{"type":"array","items":{"type":"string"},"description":"Recipient address array"},"cc":{"type":"array","items":{"type":"string"},"description":"CC address array"},"bcc":{"type":"array","items":{"type":"string"},"description":"BCC address array"},"subject":{"type":"string","description":"Email subject"}},"required":["from","to","cc","bcc","subject"]},"content":{"type":"string","description":"content"},"id":{"type":"string","description":"Unique entry ID"},"dataId":{"type":"string","description":"Database ID"},"sessionId":{"type":"object","properties":{"id":{"type":"string","description":"Dialog ID"},"viewKey":{"type":"string","description":"View entity key"}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dialog ID; equivalent to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"required":["id","viewKey"]},"conversationId":{"type":"object","properties":{"id":{"type":"string","description":"Conversation ID"},"viewKey":{"type":"string","description":"View entity key"}},"description":"Conversation ID","required":["id","viewKey"]},"channelId":{"type":"object","properties":{"id":{"type":"string","description":"Channel ID"},"viewKey":{"type":"string","description":"View entity key"}},"description":"Channel ID","required":["id","viewKey"]},"attachments":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"contentType":{"type":"string","description":"Attachment MIME type"},"url":{"type":"string","description":"Attachment URL"},"size":{"anyOf":[{"type":"integer","description":"Attachment size"},{"type":"null"}]}},"required":["name","contentType","url"]},"description":"Attachment array"},{"type":"null"}]},"extendMap":{"type":"object","properties":{},"description":"Custom fields"},"agentLogs":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Log type: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"language"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (language detection) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"recall"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (memory recall) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (intent/task selection) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"knowledge"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (Knowledge Base retrieval) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"tool"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (MCP tool call) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"internalTool"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (internal tool call) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"systemTask"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (special system task)."},"children":[]}]}]}]},"name":{"type":"string","description":"Tool or task name"},"message":{"type":"string","description":"Log content"},"status":{"type":"string","description":"Language-detection status or tool execution status"},"kb":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string","description":"Knowledge Base chunk content"},"chunk_id":{"type":"string","description":"Chunk ID"},"document_id":{"type":"string","description":"Knowledge Base document ID"},"document_name":{"type":"string","description":"Knowledge Base document name"},"enabled":{"type":"boolean","description":"Whether enabled."},"lang":{"type":"string","description":"Knowledge Base language"},"score":{"type":"number","description":"Retrieval score"},"source":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Source: Document | FAQ | Sample (generated example) | Website content."},"children":[]}]}]}]},"created_at":{"type":"integer","description":"Knowledge Base creation time"}},"required":["document_id","enabled"]},"description":"Referenced Knowledge Base"},"entity":{"type":"object","properties":{"name":{"type":"string","description":"Entity name"},"values":{"type":"array","items":{"anyOf":[{},{"type":"null"}]},"description":"Entity value"}},"description":"Internal entity invocation","required":["name"]},"timestamp":{"type":"integer","description":"Log timestamp"}},"description":"Agent activity log content","required":["type","timestamp"]},"description":"Agent activity logs"},"processedBy":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Indicates how the message was answered: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"HUMAN_AGENT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = human reply; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"AI_AGENT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = AI reply; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"UNKNOWN"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = unclassified."},"children":[]}]}]}]}},"required":["id","sessionId","conversationId","channelId","extendMap","dataId"]}},"components/schemas/ChatDTO":{"id":"components/schemas/ChatDTO","kind":"json-schema","title":"ChatDTO","data":{"type":"object","properties":{"dialogId":{"type":"string","description":"Dialog ID"},"agentLogs":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Log type: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"language"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (language detection) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"recall"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (memory recall) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (intent/task selection) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"knowledge"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (Knowledge Base retrieval) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"tool"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (MCP tool call) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"internalTool"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (internal tool call) | "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"systemTask"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" (special system task)."},"children":[]}]}]}]},"name":{"type":"string","description":"Tool or task name"},"message":{"type":"string","description":"Log content"},"status":{"type":"string","description":"Language-detection status or tool execution status"},"kb":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string","description":"Knowledge Base chunk content"},"chunk_id":{"type":"string","description":"Chunk ID"},"document_id":{"type":"string","description":"Knowledge Base document ID"},"document_name":{"type":"string","description":"Knowledge Base document name"},"enabled":{"type":"boolean","description":"Whether enabled."},"lang":{"type":"string","description":"Knowledge Base language"},"score":{"type":"number","description":"Retrieval score"},"source":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Source: Document | FAQ | Sample (generated example) | Website content."},"children":[]}]}]}]},"created_at":{"type":"integer","description":"Knowledge Base creation time"}},"required":["document_id","enabled"]},"description":"Referenced Knowledge Base"},"entity":{"type":"object","properties":{"name":{"type":"string","description":"Entity name"},"values":{"type":"array","items":{"anyOf":[{},{"type":"null"}]},"description":"Entity value"}},"description":"Internal entity invocation","required":["name"]},"timestamp":{"type":"integer","description":"Log timestamp"}},"description":"Agent activity log content","required":["type","timestamp"]},"description":"Agent activity logs"},"messages":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Primary content type."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Used by clients to select the appropriate rendering component."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Allowed values:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Plain text"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Image"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Audio"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": Video"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": File or attachment"},"children":[]}]}]}]}]},"contentType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Media format (MIME type), using standard IANA media types."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Examples:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Text: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"text/plain"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Image: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image/jpeg"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image/png"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Audio/video: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio/mpeg"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video/mp4"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Used by players and browsers to determine how the resource should be decoded or rendered."},"children":[]}]}]}]}]},"text":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Display text / fallback text."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", this is the primary message content and supports Markdown."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", this value acts as alt text or the file name. Clients that cannot render the media should display this text instead."},"children":[]}]}]}]}]},"url":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Resource URL."},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"When "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", this is an empty string or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"For other types, this is the CDN URL used to access or download the media file."},"children":[]}]}]}]}]},"meta":{"type":"object","properties":{"width":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": image width in pixels. Clients can use this value to reserve layout space before the image loads."},"children":[]}]}]}]},"height":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": image height in pixels."},"children":[]}]}]}]},"size_kb":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"image"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/"},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"file"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": file size in KB, used for loading estimates or data-usage hints."},"children":[]}]}]}]},"duration":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/"},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": media duration in seconds, which can be used to render the progress bar before the media finishes loading."},"children":[]}]}]}]},"format":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"audio"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"/"},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": file extension. Some legacy players may use this value to identify the media format."},"children":[]}]}]}]},"coverUrl":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Applies to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"video"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":": optional video poster/thumbnail URL."},"children":[]}]}]}]}},"description":"Metadata containing non-business attributes of the media resource."}},"description":"Agent message content"},"description":"Agent message list"}}}},"components/schemas/EntityResponseChatDTO":{"id":"components/schemas/EntityResponseChatDTO","kind":"json-schema","title":"EntityResponseChatDTO","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"$ref":"#/components/schemas/ChatDTO"}}}},"components/schemas/CertifyResponseDTO":{"id":"components/schemas/CertifyResponseDTO","kind":"json-schema","title":"CertifyResponseDTO","data":{"type":"object","properties":{"staffId":{"type":"integer","description":"staff id\nStaff ID","format":"int64"},"tenantId":{"type":"string","description":"Tenant ID"},"agent":{"type":"string","description":"Device type","enum":["WEB","APP","PAD","BOARD","OTHER","FEISHU","WECOM","DINGTALK"]}}}},"components/schemas/EntityResponseDataCertifyResponseDTO":{"id":"components/schemas/EntityResponseDataCertifyResponseDTO","kind":"json-schema","title":"EntityResponseDataCertifyResponseDTO","data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/CertifyResponseDTO","description":""}}}},"components/schemas/EntityResponseCertifyResponseDTO":{"id":"components/schemas/EntityResponseCertifyResponseDTO","kind":"json-schema","title":"EntityResponseCertifyResponseDTO","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"$ref":"#/components/schemas/EntityResponseDataCertifyResponseDTO","description":""}}}},"components/schemas/CertifyParams":{"id":"components/schemas/CertifyParams","kind":"json-schema","title":"CertifyParams","data":{"type":"object","properties":{"method":{"type":"string","description":"HTTP method","enum":["GET","POST","PUT","DELETE"]},"uri":{"type":"string","description":"Request URL"},"session":{"type":"string","description":"Session ID"},"token":{"type":"string","description":"Token"}},"required":["method","uri"]}},"components/schemas/TokenRequest":{"id":"components/schemas/TokenRequest","kind":"json-schema","title":"TokenRequest","data":{"type":"object","properties":{"appKey":{"type":"string","description":"App key"},"appSecret":{"type":"string","description":"App secret"}},"required":["appKey","appSecret"]}},"components/schemas/OpenApiTokenDTO":{"id":"components/schemas/OpenApiTokenDTO","kind":"json-schema","title":"OpenApiTokenDTO","data":{"type":"object","properties":{"accessToken":{"type":"string","description":"Credential"},"accessTokenExpireIn":{"type":"integer","description":"Credential expiration time","format":"int64"},"refreshToken":{"type":"string","description":"Refresh token"},"refreshTokenExpireIn":{"type":"integer","description":"Refresh-token expiration time","format":"int64"}}}},"components/schemas/EntityResponseDataOpenApiTokenDTO":{"id":"components/schemas/EntityResponseDataOpenApiTokenDTO","kind":"json-schema","title":"EntityResponseDataOpenApiTokenDTO","data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/OpenApiTokenDTO","description":""}}}},"components/schemas/EntityResponseOpenApiTokenDTO":{"id":"components/schemas/EntityResponseOpenApiTokenDTO","kind":"json-schema","title":"EntityResponseOpenApiTokenDTO","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"$ref":"#/components/schemas/EntityResponseDataOpenApiTokenDTO","description":""}}}},"components/schemas/RequestParameterTokenRequest":{"id":"components/schemas/RequestParameterTokenRequest","kind":"json-schema","title":"RequestParameterTokenRequest","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/TokenRequest","description":""}},"required":["body"]}},"components/schemas/TokenRefresh":{"id":"components/schemas/TokenRefresh","kind":"json-schema","title":"TokenRefresh","data":{"type":"object","properties":{"refreshToken":{"type":"string","description":"Refresh Token"}},"required":["refreshToken"]}},"components/schemas/RequestParameterTokenRefresh":{"id":"components/schemas/RequestParameterTokenRefresh","kind":"json-schema","title":"RequestParameterTokenRefresh","data":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/TokenRefresh","description":""}},"required":["body"]}},"components/schemas/department_staff_relation":{"id":"components/schemas/department_staff_relation","kind":"json-schema","title":"department_staff_relation","data":{"type":"object","properties":{"createTime":{"type":"integer","description":"Creation time, Unix timestamp in milliseconds.","format":"int64"},"departmentId":{"type":"string","description":"Department"},"inCharge":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Whether this staff member is the owner. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = yes; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = no."},"children":[]}]}]}]},"staffId":{"type":"string","description":"Staff member"}}}},"components/schemas/department_staff_relation_filter":{"id":"components/schemas/department_staff_relation_filter","kind":"json-schema","title":"department_staff_relation_filter","data":{"type":"object","properties":{"id":{"description":"ID (supports multi-value filtering).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}}}}},"components/schemas/department_staff_relation_sort":{"id":"components/schemas/department_staff_relation_sort","kind":"json-schema","title":"department_staff_relation_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: "}}}},"components/schemas/KnowledgeDeleteParams":{"id":"components/schemas/KnowledgeDeleteParams","kind":"json-schema","title":"KnowledgeDeleteParams","data":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"},"description":"List of Knowledge Base IDs to delete."}},"required":["ids"]}},"components/schemas/ConversationClosedParams":{"id":"components/schemas/ConversationClosedParams","kind":"json-schema","title":"ConversationClosedParams","data":{"type":"object","properties":{"conversationId":{"type":"string","description":"Dialog ID"},"dialogId":{"type":"string","description":"Conversation ID"}}}},"components/schemas/AgentEnableParams":{"id":"components/schemas/AgentEnableParams","kind":"json-schema","title":"AgentEnableParams","data":{"type":"object","properties":{"enable":{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Whether the Agent is deployed/enabled. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = enabled; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = disabled."},"children":[]}]}]}]}},"required":["enable"]}},"components/schemas/BaseResponse":{"id":"components/schemas/BaseResponse","kind":"json-schema","title":"BaseResponse","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""}}}},"components/schemas/butlergroup_sort":{"id":"components/schemas/butlergroup_sort","kind":"json-schema","title":"butlergroup_sort","data":{"type":"object","properties":{"sortOrder":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Sort order: use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"ASC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for ascending order and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"DESC"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for descending order."},"children":[]}]}]}],"enum":["ASC","DESC"]},"sortFieldKey":{"type":"string","description":"Sortable fields: updatedTime, createdTime"}}}},"components/schemas/WebhookEntityId":{"id":"components/schemas/WebhookEntityId","kind":"json-schema","title":"WebhookEntityId","data":{"type":"object","properties":{"id":{"type":"string","description":"Entity ID."}}}},"components/schemas/DialogCreatedWebhookData":{"id":"components/schemas/DialogCreatedWebhookData","kind":"json-schema","title":"DialogCreatedWebhookData","data":{"type":"object","description":"Dialog data included in the Dialog Created event.","properties":{"id":{"type":"string","example":"sess_p2p_001"},"workSpaceId":{"type":"string","example":"ws_001"},"type":{"type":"string","example":"p2p"},"channelId":{"$ref":"#/components/schemas/WebhookEntityId","example":{"id":"ch_livechat_01"}},"visitorId":{"$ref":"#/components/schemas/WebhookEntityId","example":{"id":"visitor_123"}},"lastMessageId":{"$ref":"#/components/schemas/WebhookEntityId","example":{"id":"msg_202"}},"createdTime":{"type":"integer","example":1690000000,"format":"int64"},"updatedTime":{"type":"integer","example":1690003600,"format":"int64"}}}},"components/schemas/DialogCreatedWebhookEvent":{"id":"components/schemas/DialogCreatedWebhookEvent","kind":"json-schema","title":"DialogCreatedWebhookEvent","data":{"type":"object","required":["requestId","businessType","data"],"properties":{"requestId":{"type":"string","description":"Unique ID of this webhook delivery.","example":"03703d30-50f2-4103-bdb6-8aa331f36cc5"},"businessType":{"type":"integer","description":"Business type code. 15013 represents the Dialog Created event.","example":15013},"data":{"$ref":"#/components/schemas/DialogCreatedWebhookData"}},"example":{"requestId":"03703d30-50f2-4103-bdb6-8aa331f36cc5","businessType":15013,"data":{"id":"sess_p2p_001","workSpaceId":"ws_001","type":"p2p","channelId":{"id":"ch_livechat_01"},"visitorId":{"id":"visitor_123"},"lastMessageId":{"id":"msg_202"},"createdTime":1690000000,"updatedTime":1690003600}}}},"schema_63":{"kind":"json-schema","data":{"description":"","title":"RequestParameterChatParams","type":"object","properties":{"query":{"type":"string","description":"Input content"},"dialogId":{"anyOf":[{"type":"string","description":"ID of an existing dialog in 3Chat."},{"type":"null"}]},"userId":{"anyOf":[{"type":"string","description":"Contact/visitor accountId"},{"type":"null"}]},"channelType":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","description":"Channel type"},"proxy":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Channel proxy type: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"CHATLY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = Chatly; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"MANYCHAT"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = Manychat."},"children":[]}]}]}]}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Channel type. See the documentation above. Defaults to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"OPENAPI"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"required":["type","proxy"]},{"type":"null"}]},"async":{"anyOf":[{"type":"boolean","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Whether to process the request asynchronously. Defaults to "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},{"type":"null"}]},"sendWebhook":{"anyOf":[{"type":"string","description":"Webhook URL used to deliver the message for asynchronous requests."},{"type":"null"}]},"files":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentData","description":"Attachment metadata."},"description":"Attachments"},"options":{"anyOf":[{"type":"object","properties":{"user":{"anyOf":[{"type":"object","properties":{"avatarUrl":{"anyOf":[{"type":"string","description":"Contact avatar"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","description":"Contact name"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","description":"Contact email address"},{"type":"null"}]},"phoneNumber":{"anyOf":[{"type":"string","description":"Contact phone number"},{"type":"null"}]}},"description":"Basic contact profile information. Applied only when a new contact is created."},{"type":"null"}]}},"description":"Optional settings"},{"type":"null"}]}},"required":["query"]},"id":"schema_63"},"schema_64":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"required":["paging"],"type":"object","properties":{"conditions":{"$ref":"#/components/schemas/butlerchannel_filter"},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlerchannel_sort"}},"extendFieldParams":{"type":"array","description":"Custom-field query parameters","items":{"required":["conditionType","key"],"type":"object","properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{NONE=NONE, FUZZY=FUZZY, KEYWORD=KEYWORD, FILTER=FILTER, TIME_RANGE=TIME_RANGE, OBJECT_FILTER=OBJECT_FILTER}"},"children":[]}]}]}],"enum":["NONE","FUZZY","KEYWORD","FILTER","TIME_RANGE","OBJECT_FILTER"]},"filter":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FILTER"},"children":[]}]}]}],"items":{"type":"string"}},"value":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FUZZY/KEYWORD"},"children":[]}]}]}]},"timeRange":{"type":"object","properties":{"start":{"minimum":0.01,"type":"string","description":"Start time, 13-digit Unix timestamp in milliseconds."},"end":{"minimum":0.01,"type":"string","description":"End time, 13-digit Unix timestamp in milliseconds."}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=TIME_RANGE"},"children":[]}]}]}]},"key":{"type":"string","description":"Custom-field key"}},"description":"Custom query condition."}},"paging":{"required":["length","start"],"type":"object","properties":{"start":{"minimum":0,"type":"integer","description":"Pagination offset"},"length":{"maximum":500,"minimum":1,"type":"integer","description":"Page size"}},"description":""}},"description":"Request body"}},"description":""},"id":"schema_64"},"schema_65":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlerchannel"}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""}},"description":""}}},"id":"schema_65"},"schema_66":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"required":["paging"],"type":"object","properties":{"conditions":{"type":"object","properties":{"id":{"type":"object","properties":{"conditionType":{"type":"string","description":"KEYWORD: exact match"},"value":{"type":"string","description":"Dialog ID"}},"description":"Dialog ID","required":["conditionType","value"]},"updatedTime":{"description":"Last-updated timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"TIME_RANGE: time-range filtering"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"createdTime":{"description":"Creation timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"TIME_RANGE: time-range filtering"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"visitorId":{"description":"Filter by contact ID","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":"FILTER: multi-value filtering","enum":["FUZZY","KEYWORD","FILTER"]},"filter":{"type":"array","description":"Array of contact IDs","items":{"type":"string","description":"Contact ID"}}}},"channelId":{"type":"object","properties":{"conditionType":{"type":"string","description":"FILTER"},"filter":{"type":"array","items":{"type":"string","description":"Channel ID"},"description":"Array of channel IDs"}},"required":["conditionType","filter"],"description":"Filter by channel ID"},"type":{"type":"object","properties":{"conditionType":{"type":"string","description":"FILTER: multi-value filtering"},"filter":{"type":"array","items":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Dialog type: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"p2p"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = one-to-one chat; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"group"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = group chat."},"children":[]}]}]}]}}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Filter by dialog type: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"p2p"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = one-to-one chat; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"group"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = group chat."},"children":[]}]}]}],"required":["conditionType","filter"]},"subjectId":{"type":"object","properties":{"conditionType":{"type":"string","description":"KEYWORD: exact match"},"value":{"type":"string","description":"Query value"}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Filter by the ID of the object associated with the dialog. If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=p2p"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"subjectId == visitorId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; if "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=group"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"subjectId == groupId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"required":["conditionType","value"]},"subjectName":{"type":"object","properties":{"conditionType":{"type":"string","description":"FUZZY: fuzzy search; KEYWORD: exact search"},"value":{"type":"string","description":"Query value"}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Filter by the name of the object associated with the dialog. If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=p2p"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"subjectName == visitorName"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"; if "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"type=group"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"subjectName == groupName"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"required":["conditionType","value"]}},"required":["channelId","type","subjectId","subjectName","id"]},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlersession_sort"}},"paging":{"required":["length","start"],"type":"object","properties":{"start":{"minimum":0,"type":"integer","description":"Pagination offset"},"length":{"maximum":500,"minimum":1,"type":"integer","description":"Page size"}},"description":""}},"description":"Request body"}},"description":""},"id":"schema_66"},"schema_67":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlersession"}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""}},"description":""}}},"id":"schema_67"},"schema_68":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"required":["paging"],"type":"object","properties":{"conditions":{"type":"object","properties":{"updatedTime":{"description":"Last updated time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"id":{"type":"object","properties":{"conditionType":{"type":"string","description":"KEYWORD: exact match"},"value":{"type":"string"}},"required":["conditionType","value"]},"firstTouch":{"description":"First-touch information (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"language":{"description":"Preferred language (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"lastTouch":{"description":"Last-touch information (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"utmSourceLast":{"description":"UTM (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"accountId":{"description":"accountId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"phoneNumber":{"description":"Phone number (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"browserAgent":{"description":"Browser information (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"lastVisitTime":{"description":"Last visit time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"externalReferrerLast":{"description":"Source information (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"name":{"description":"Name (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"createdTime":{"description":"Creation time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"lastVisitIp":{"description":"Last-visit IP address (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"landingPageLast":{"description":"Last visited page (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"email":{"description":"Email address (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"firstVisitTime":{"description":"First visit time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}}},"required":["id"]},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlervisitor_sort"}},"paging":{"required":["length","start"],"type":"object","properties":{"start":{"minimum":0,"type":"integer","description":"Pagination offset"},"length":{"maximum":500,"minimum":1,"type":"integer","description":"Page size"}},"description":""}},"description":"Request body"}},"description":""},"id":"schema_68"},"schema_69":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlervisitor"}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""}},"description":""}}},"id":"schema_69"},"schema_70":{"kind":"json-schema","data":{"type":"object","properties":{"body":{"type":"object","properties":{"id":{"type":"string","title":"id","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Visitor ID ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dataId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"accountId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]},"name":{"anyOf":[{"type":"string","title":"Name","description":"Visitor name"},{"type":"null"}]},"phoneNumber":{"anyOf":[{"type":"string","title":"Phone number","description":"Visitor phone number"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","title":"Email address","description":"Visitor email address"},{"type":"null"}]},"language":{"anyOf":[{"type":"string","title":"Language","description":"Visitor default language"},{"type":"null"}]},"extendMap":{"anyOf":[{"type":"object","properties":{},"title":"Custom fields","description":"Custom fields as an object."},{"type":"null"}]}},"required":["id"]}},"required":["body"]},"id":"schema_70"},"schema_71":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":"Error code"},"message":{"anyOf":[{"type":"string","description":"Error message"},{"type":"null"}]}},"required":["code"]},"id":"schema_71"},"schema_72":{"kind":"json-schema","data":{"type":"object","properties":{"accountId":{"type":"string","description":"Third-party platform account ID"},"name":{"anyOf":[{"type":"string","description":"Visitor name"},{"type":"null"}]},"phoneNumber":{"anyOf":[{"type":"string","description":"Mobile number"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","description":"Email address"},{"type":"null"}]},"avatar":{"anyOf":[{"type":"string","description":"Avatar"},{"type":"null"}]},"language":{"anyOf":[{"type":"string","description":"Default language"},{"type":"null"}]},"extendMap":{"anyOf":[{"type":"object","properties":{},"description":"Custom status"},{"type":"null"}]}},"required":["accountId"]},"id":"schema_72"},"schema_73":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Status code. 200 = success; 500 = failure."},"children":[]}]}]}]},"message":{"anyOf":[{"type":"string","description":"Error message"},{"type":"null"}]},"data":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Visitor ID"}},"required":["id"]},{"type":"null"}]}},"required":["code"]},"id":"schema_73"},"schema_74":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"anyOf":[{"type":"integer","description":""},{"type":"null"}]},"message":{"anyOf":[{"type":"string","description":""},{"type":"null"}]}}},"id":"schema_74"},"schema_75":{"kind":"json-schema","data":{"type":"object","properties":{"dialogId":{"anyOf":[{"type":"string","description":"Group dialog ID"},{"type":"null"}]},"groupId":{"anyOf":[{"type":"string","description":"Internal group ID"},{"type":"null"}]},"externalGroupId":{"anyOf":[{"type":"string","description":"Chatly external group ID"},{"type":"null"}]},"visitorId":{"anyOf":[{"type":"string","description":"Internal contact ID. When provided, transfers that contact to a human agent."},{"type":"null"}]},"transferAccountId":{"anyOf":[{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"List of managed-account IDs allowed for a single-contact handoff. May be provided only together with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"visitorId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". If omitted, the contact is transferred to a human agent for all managed accounts in the group."},"children":[]}]}]}]},{"type":"null"}]},"imBotId":{"anyOf":[{"type":"string","description":"Chatly managed-account ID. Used only when transferring a managed account to a human agent."},{"type":"null"}]}}},"id":"schema_75"},"schema_76":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Status code: 200 = success; 400 = invalid parameters; 500 = server error."},"children":[]}]}]}]},"data":{"type":"object","properties":{"groupId":{"type":"string","description":"Resolved internal platform group ID"},"participantId":{"type":"string","description":"ID of the group participant actually transferred to a human agent."},"transferMode":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"CONTACT_LEVEL = transfer an individual contact to a human agent; ACCOUNT_LEVEL = transfer a managed account to a human agent."},"children":[]}]}]}]}},"required":["groupId","participantId","transferMode"]}},"required":["code","data"]},"id":"schema_76"},"schema_77":{"kind":"json-schema","data":{"type":"object","properties":{"dialogId":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Provide either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"conversationId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"conversationId":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Provide either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"conversationId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"dialogId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"assigneeId":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Customer-service staff ID ("},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"staffId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":")."},"children":[]}]}]}]},"handoffReason":{"type":"string","description":"Conversation summary / reason for handoff."}}},"id":"schema_77"},"schema_78":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":"Error description, or \"success\"."},"data":{"anyOf":[{"type":"string","description":"Conversation ID, or null."},{"type":"null"}]}},"required":["message","code","data"]},"id":"schema_78"},"schema_79":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"required":["paging"],"type":"object","properties":{"conditions":{"type":"object","properties":{"convStatus":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Status: 2 = active, 3 = completed, 4 = 4. Supports multi-value filtering."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"summary":{"description":"summary (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"updatedTime":{"description":"Last updated time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"replyStrategy":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Reply strategy: 1 = human agent; 2 = 3Chat AI Agent. Supports multi-value filtering."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"completedTime":{"description":"Closed time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"solved":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Resolved status. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = resolved; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = unresolved. Supports multi-value filtering."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"ratingComment":{"description":"Contact rating (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"dataId":{"description":"dataId (supports fuzzy, exact, and multi-value filtering)","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"createdTime":{"description":"Creation time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"ratingLevels":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"CSAT score: 1–5. Supports multi-value filtering."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"solverType":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Resolver: 1 = 3Chat; 2 = human agent. Supports multi-value filtering."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"string"}}}},"id":{"description":"ID (supports multi-value filtering).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":"KEYWORD: exact match","enum":["KEYWORD"]},"value":{"type":"string"}}}}},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlerconversation_sort"}},"paging":{"required":["length","start"],"type":"object","properties":{"start":{"minimum":0,"type":"integer","description":"Pagination offset"},"length":{"maximum":500,"minimum":1,"type":"integer","description":"Page size"}},"description":""}},"description":"Request body"}},"description":""},"id":"schema_79"},"schema_80":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlerconversation"}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""}},"description":""}}},"id":"schema_80"},"schema_81":{"kind":"json-schema","data":{"type":"object","properties":{"id":{"type":"string","description":"Conversation ID"},"convStatus":{"anyOf":[{"type":"string","description":"Conversation status"},{"type":"null"}]},"replyStrategy":{"anyOf":[{"type":"string","description":"Reply strategy"},{"type":"null"}]},"solved":{"anyOf":[{"type":"boolean","description":"Whether resolved."},{"type":"null"}]},"solverType":{"anyOf":[{"type":"string","description":"Resolver type"},{"type":"null"}]},"solverId":{"anyOf":[{"type":"string","description":"Resolver ID"},{"type":"null"}]},"ratingLevels":{"anyOf":[{"type":"string","description":"Rating"},{"type":"null"}]},"ratingComment":{"anyOf":[{"type":"string","description":"Rating comment"},{"type":"null"}]},"completedTime":{"anyOf":[{"type":"integer","description":"Resolved time"},{"type":"null"}]},"extendMap":{"anyOf":[{"type":"object","properties":{},"description":"Custom fields"},{"type":"null"}]}},"required":["id"]},"id":"schema_81"},"schema_82":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Status code. 200 = success; 500 = failure."},"children":[]}]}]}]},"message":{"anyOf":[{"type":"string","description":"Error message"},{"type":"null"}]}},"required":["code"]},"id":"schema_82"},"schema_83":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"required":["paging"],"type":"object","properties":{"conditions":{"type":"object","properties":{"updatedTime":{"description":"updatedTime, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"senderId":{"description":"senderId","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":"KEYWORD","enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string"}}},"createdTime":{"description":"createdTime, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"senderType":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"senderType: 1 = contact (customer); 2 = human agent; 3 = 3Chat Agent; 4 = third-party agent (Zendesk)."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FILTER=multi-value filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"1 = contact (customer); 2 = human agent; 3 = 3Chat Agent; 4 = third-party agent."},"children":[]}]}]}]}}}},"isEffectiveReply":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"isEffectiveReply: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"true"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = yes; "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"false"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" = no."},"children":[]}]}]}],"type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FILTER=multi-value filtering}"},"children":[]}]}]}],"enum":["FILTER"]},"filter":{"type":"array","description":"","items":{"type":"boolean"}}}},"content":{"description":"content","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering}"},"children":[]}]}]}],"enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""}}},"id":{"description":"Message ID","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":"KEYWORD: exact match","enum":["KEYWORD"]},"value":{"type":"string"}}},"sessionId":{"type":"object","properties":{"conditionType":{"type":"string","description":"FILTER"},"filter":{"type":"array","items":{"type":"string","description":"session id"},"description":"Array of session IDs."}},"required":["conditionType","filter"],"description":"ID of the dialog containing the current message."},"conversationId":{"type":"object","properties":{"conditionType":{"type":"string","description":"FILTER"},"filter":{"type":"array","items":{"type":"string","description":"conversation id"},"description":"Array of conversation IDs."}},"required":["conditionType","filter"],"description":"ID of the conversation containing the current message."},"processedBy":{"type":"object","properties":{"conditionType":{"type":"string","description":"FILTER"},"filter":{"type":"array","items":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"1 = human reply; 2 = AI reply; 0 = unclassified."},"children":[]}]}]}]},"description":"Allowed values"}},"required":["conditionType","filter"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Role that processed the current user message: 1 = human reply; 2 = AI reply; 0 = unclassified."},"children":[]}]}]}]}},"required":["processedBy"]},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlermessage_sort"}},"extendFieldParams":{"type":"array","description":"Custom-field query parameters","items":{"required":["conditionType","key"],"type":"object","properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{NONE=NONE, FUZZY=FUZZY, KEYWORD=KEYWORD, FILTER=FILTER, TIME_RANGE=TIME_RANGE, OBJECT_FILTER=OBJECT_FILTER}"},"children":[]}]}]}],"enum":["NONE","FUZZY","KEYWORD","FILTER","TIME_RANGE","OBJECT_FILTER"]},"filter":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FILTER"},"children":[]}]}]}],"items":{"type":"string"}},"value":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FUZZY/KEYWORD"},"children":[]}]}]}]},"timeRange":{"type":"object","properties":{"start":{"minimum":0.01,"type":"string","description":"Start time, 13-digit Unix timestamp in milliseconds."},"end":{"minimum":0.01,"type":"string","description":"End time, 13-digit Unix timestamp in milliseconds."}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=TIME_RANGE"},"children":[]}]}]}]},"key":{"type":"string","description":"Custom-field key"}},"description":"Custom query condition."}},"paging":{"required":["length","start"],"type":"object","properties":{"start":{"minimum":0,"type":"integer","description":"Pagination offset"},"length":{"maximum":500,"minimum":1,"type":"integer","description":"Page size"}},"description":""}},"description":"Request body"}},"description":""},"id":"schema_83"},"schema_84":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlermessage"}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""}},"description":""}}},"id":"schema_84"},"schema_85":{"kind":"json-schema","data":{"type":"object","properties":{"file":{"format":"binary","type":"string","description":"File to upload (binary stream)."},"purpose":{"enum":["knowledge"],"default":"knowledge","type":"string","description":"File purpose"},"fileName":{"maxLength":256,"type":"string","description":"Custom file name. If omitted, the original file name is used."}},"required":["file"]},"id":"schema_85"},"schema_86":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":"Status code","example":200},"message":{"type":"string","description":"Status message","example":"success"},"data":{"type":"object","properties":{"fileId":{"type":"string","description":"Unique file ID","example":"file_01K23M1W3X7F5Q9R2D"},"fileName":{"type":"string","description":"File name","example":"product-manual.pdf"},"mimeType":{"type":"string","description":"File MIME type","example":"application/pdf"},"sizeBytes":{"type":"integer","format":"int64","description":"File size in bytes","example":2456789},"purpose":{"type":"string","description":"File purpose","example":"knowledge"},"fileUrl":{"type":"string","format":"uri","description":"File access URL","example":"https://files.3chat.ai/openapi/workspace_xxx/file_01K23M1W3X7F5Q9R2D"},"sha256":{"type":"string","description":"File SHA-256 hash","example":"0f3e9cbe4e2c98f5b7d4d1c08d0e7e8f98e5d23d..."},"createdAt":{"type":"integer","format":"int64","description":"Creation timestamp in milliseconds.","example":1776667072000}}}}},"id":"schema_86"},"schema_87":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":"Error status code","example":400},"message":{"type":"string","description":"Error information","example":"The file is required."},"data":{"type":"null","description":"Returns null when an error occurs."}}},"id":"schema_87"},"schema_88":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","example":413},"message":{"type":"string","example":"The file size exceeds the allowed limit.(Max - 15 M)"},"data":{"type":"null"}}},"id":"schema_88"},"schema_89":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","example":415},"message":{"type":"string","example":"Unsupported file type."},"data":{"type":"null"}}},"id":"schema_89"},"schema_90":{"kind":"json-schema","data":{"type":"object","required":["sources","chunkConfig"],"properties":{"sources":{"type":"array","description":"Knowledge source list","minItems":1,"items":{"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Knowledge source. Supported types: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"uploaded_file"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"remote_file"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"raw_text"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}},"parseConfig":{"type":"object","description":"Document parsing configuration","properties":{"extractImageElements":{"type":"boolean","description":"Whether to extract image elements.","default":true,"example":true},"parseScannedDocument":{"type":"boolean","description":"Whether to parse scanned documents.","default":false,"example":false},"language":{"type":"string","description":"Document language","default":"zh-CN","example":"zh-CN"},"normalizeWhitespaceAndLineBreaks":{"type":"boolean","description":"Whether to normalize whitespace and line breaks.","default":false,"example":false},"removeUrlsAndEmails":{"type":"boolean","description":"Whether to remove URLs and email addresses.","default":false,"example":false}}},"chunkConfig":{"type":"object","required":["mode"],"description":"Chunking configuration","properties":{"mode":{"type":"string","enum":["hierarchical","custom"],"description":"Chunking mode","example":"hierarchical"},"hierarchical":{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Hierarchical chunking settings. Used when "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mode=hierarchical"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"properties":{"level":{"type":"integer","description":"Hierarchy depth","minimum":1,"maximum":10,"example":1},"preserveHierarchyInfo":{"type":"boolean","description":"Whether to preserve hierarchy information.","example":true}}},"custom":{"type":"object","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Custom chunking settings. Used when "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"mode=custom"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}],"properties":{"separator":{"type":"string","description":"Chunk delimiter","example":"\n\n"},"maxSegmentLength":{"type":"integer","description":"Maximum chunk length","minimum":100,"maximum":5000,"example":1000},"overlapPercent":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Overlap percentage (0–100)."},"children":[]}]}]}],"minimum":0,"maximum":100,"example":10}}}}},"callback":{"type":"object","description":"Callback notification settings","properties":{"url":{"type":"string","format":"uri","description":"Callback URL","example":"https://client.example.com/webhooks/3chat/knowledge"},"events":{"type":"array","description":"Subscribed event type","items":{"type":"string","description":"Subscribed event list","enum":["file.uploading","file.parsing","file.completed","file.failed","knowledge.task.completed","knowledge.task.failed"]},"example":["file.uploading","file.parsing","file.completed","file.failed"]},"secret":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Callback signing secret, passed in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" request header."},"children":[]}]}]}],"example":"whsec_xxx"}}}}},"id":"schema_90"},"schema_91":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":"Status code","example":200},"message":{"type":"string","description":"Status message","example":"success"},"requestId":{"type":"string","description":"Request ID","example":"req_01K23P7R4M6W8Q9JAB"},"data":{"type":"object","properties":{"taskId":{"type":"string","description":"Task ID","example":"ktask_01K23P7W8D5N2X4QYZ"},"status":{"type":"string","enum":["task.progress","task.completed","task.failed"],"description":"Task status","example":"task.progress"},"sourceSummary":{"type":"object","properties":{"total":{"type":"integer","description":"Total","example":2},"accepted":{"type":"integer","description":"Accepted","example":2},"rejected":{"type":"integer","description":"Rejected","example":0},"queued":{"type":"integer","description":"Queued","example":0},"uploading":{"type":"integer","description":"Uploading","example":0},"parsing":{"type":"integer","description":"Parsing","example":0},"completed":{"type":"integer","description":"Completed","example":0},"failed":{"type":"integer","description":"Failed","example":0}}},"parseConfig":{"type":"object","description":"Parsing configuration","properties":{"extractImageElements":{"type":"boolean","example":true},"parseScannedDocument":{"type":"boolean","example":false},"language":{"type":"string","example":"zh-CN"},"normalizeWhitespaceAndLineBreaks":{"type":"boolean","example":false},"removeUrlsAndEmails":{"type":"boolean","example":false}}},"chunkConfig":{"type":"object","description":"Chunking configuration","properties":{"mode":{"type":"string","example":"hierarchical"},"hierarchical":{"type":"object","properties":{"level":{"type":"integer","example":1},"preserveHierarchyInfo":{"type":"boolean","example":true}}},"custom":{"type":"object","properties":{"separator":{"type":"string","example":"\n\n"},"maxSegmentLength":{"type":"integer","example":1000},"overlapPercent":{"type":"integer","example":10}}}}},"entitlement":{"type":"object","description":"Entitlement information","properties":{"resourceType":{"type":"string","example":"knowledge_unit"},"estimatedConsume":{"type":"integer","description":"Estimated usage","example":138},"actualConsume":{"type":"integer","description":"Actual usage","example":5},"balanceRemain":{"type":"integer","description":"Remaining balance","example":12480}}},"errors":{"type":"array","description":"Error list","items":{"type":"object","properties":{"code":{"type":"string","description":"Error code","example":"FILE_NOT_FOUND"},"message":{"type":"string","description":"Error information","example":"File not found"}}}},"createdAt":{"type":"integer","format":"int64","description":"Creation timestamp in milliseconds.","example":1776667072000}}}}},"id":"schema_91"},"schema_92":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":"Error status code","example":400},"message":{"type":"string","description":"Error information","example":"Sources are required"},"data":{"type":"null","description":"Returns null when an error occurs."}}},"id":"schema_92"},"schema_93":{"kind":"json-schema","data":{"type":"string"},"id":"schema_93"},"schema_94":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":"Status code","example":200},"message":{"type":"string","description":"Status message","example":"success"},"requestId":{"type":"string","description":"Request ID","example":"req_01K23Q3M2D8R4W7XYS"},"data":{"type":"object","properties":{"taskId":{"type":"string","description":"Task ID","example":"ktask_01K23P7W8D5N2X4QYZ"},"status":{"type":"string","enum":["task.progress","task.completed","task.failed"],"description":"Task status","example":"task.progress"},"sourceSummary":{"type":"object","description":"Source summary","properties":{"total":{"type":"integer","description":"Total","example":2},"accepted":{"type":"integer","description":"Accepted","example":2},"rejected":{"type":"integer","description":"Rejected","example":0},"queued":{"type":"integer","description":"Queued","example":0},"uploading":{"type":"integer","description":"Uploading","example":0},"parsing":{"type":"integer","description":"Parsing","example":1},"completed":{"type":"integer","description":"Completed","example":1},"failed":{"type":"integer","description":"Failed","example":0}}},"sources":{"type":"array","description":"Source list and statuses","items":{"type":"object","properties":{"sourceId":{"type":"string","description":"Caller-defined source ID used for reconciliation.","example":"src_1"},"internalId":{"type":"string","description":"Internal source ID used for status indexing.","example":"int_01K23Q1W9A4V6N8R5P"},"type":{"type":"string","enum":["uploaded_file","remote_file","raw_text"],"description":"Source type","example":"uploaded_file"},"displayName":{"type":"string","description":"Display name","example":"product-manual.pdf"},"status":{"type":"string","enum":["queued","file.uploading","file.parsing","file.completed","file.failed"],"description":"Processing status","example":"file.completed"},"documentId":{"type":"string","description":"Document ID, returned after processing succeeds.","example":"doc_01K23Q1W9A4V6N8R5P"},"errorCode":{"type":"string","description":"Error code, returned on failure.","example":"FILE_DOWNLOAD_FAILED"},"errorMessage":{"type":"string","description":"Error message, returned on failure.","example":"Unable to download the remote file."}}}},"entitlement":{"type":"object","description":"Entitlement information","properties":{"resourceType":{"type":"string","example":"knowledge_unit"},"estimatedConsume":{"type":"integer","description":"Estimated usage","example":138},"actualConsume":{"type":"integer","description":"Actual usage","example":5},"balanceRemain":{"type":"integer","description":"Remaining balance","example":12480}}},"errors":{"type":"array","description":"Error list","items":{"type":"object","properties":{"code":{"type":"string","description":"Error code","example":"FILE_DOWNLOAD_FAILED"},"message":{"type":"string","description":"Error information","example":"Unable to download the remote file."}}}},"createdAt":{"type":"integer","format":"int64","description":"Creation timestamp in milliseconds.","example":1776667072000},"updatedAt":{"type":"integer","format":"int64","description":"Last-updated timestamp in milliseconds.","example":1776667072000},"completedAt":{"type":"integer","format":"int64","description":"Completion time, Unix timestamp in milliseconds.","example":1776667085000}}}}},"id":"schema_94"},"schema_95":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","example":404},"message":{"type":"string","example":"Task not found"},"data":{"type":"null"}}},"id":"schema_95"},"schema_96":{"kind":"json-schema","data":{"type":"object","properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"string","description":"Chat group name"},{"type":"null"}]},"avatar":{"anyOf":[{"type":"string","description":"Chat group avatar"},{"type":"null"}]},"extendMap":{"anyOf":[{"type":"object","properties":{},"description":"Custom fields"},{"type":"null"}]}},"required":["id"]},"id":"schema_96"},"schema_97":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer"},"message":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["code"]},"id":"schema_97"},"schema_98":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"required":["paging"],"type":"object","properties":{"conditions":{"type":"object","properties":{"id":{"description":"Chat group ID","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":"KEYWORD: exact match","enum":["KEYWORD"]},"value":{"type":"string"}}},"updatedTime":{"description":"Last updated time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"name":{"description":"Group name (supports fuzzy and exact matching).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":"FUZZY: fuzzy-match filtering; KEYWORD: exact-match filtering","enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""}}},"createdTime":{"description":"Creation time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"externalGroupId":{"description":"Platform group ID (supports fuzzy and exact matching).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":"FUZZY: fuzzy-match filtering; KEYWORD: exact-match filtering","enum":["FUZZY","KEYWORD"]},"value":{"type":"string"}}}}},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlergroup_sort"}},"extendFieldParams":{"type":"array","description":"Custom-field query parameters","items":{"required":["conditionType","key"],"type":"object","properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{NONE=NONE, FUZZY=FUZZY, KEYWORD=KEYWORD, FILTER=FILTER, TIME_RANGE=TIME_RANGE, OBJECT_FILTER=OBJECT_FILTER}"},"children":[]}]}]}],"enum":["NONE","FUZZY","KEYWORD","FILTER","TIME_RANGE","OBJECT_FILTER"]},"filter":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FILTER"},"children":[]}]}]}],"items":{"type":"string"}},"value":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FUZZY/KEYWORD"},"children":[]}]}]}]},"timeRange":{"type":"object","properties":{"start":{"minimum":0.01,"type":"string","description":"Start time, 13-digit Unix timestamp in milliseconds."},"end":{"minimum":0.01,"type":"string","description":"End time, 13-digit Unix timestamp in milliseconds."}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=TIME_RANGE"},"children":[]}]}]}]},"key":{"type":"string","description":"Custom-field key"}},"description":"Custom query condition."}},"paging":{"required":["length","start"],"type":"object","properties":{"start":{"minimum":0,"type":"integer","description":"Pagination offset"},"length":{"maximum":500,"minimum":1,"type":"integer","description":"Page size"}},"description":""}},"description":"Request body"}},"description":""},"id":"schema_98"},"schema_99":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"200 = success; 400 = invalid parameters; 500 = internal server error."},"children":[]}]}]}]},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"type":"object","properties":{"updatedTime":{"type":"integer","description":"Last updated time, Unix timestamp in milliseconds.","format":"int64"},"lookup_2e4hdgd7hg":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Channel type, 110=Shopify, 111=Facebook, 112=Instagram, 113=Sandbox, 114=SHOPLINE, 115=WeChat Shop, 118=Personal WeChat Account, 10=DingTalk, 11=Feishu, 12=Xiaohongshu (RED), 13=WeChat Official Account (old), 14=Feishu (old), 15=Lazada (old), 16=openApi (old), 17=WeCom (old), 18=Chatly (old), 19=Unknown, 0=0, 1=WeChat, 200=Manychat, 101=Email, 2=WeCom, 201=Instagram(Manychat), 102=Livechat, 3=WeChat Official Account, 202=TikTok(Manychat), 103=WeChat Official Account, 4=WhatsApp, 203=WhatsApp(Manychat), 104=Feishu, 5=WeChat Customer Service, 204=Facebook(Manychat), 105=Lazada, 6=TikTok, 205=SMS(Manychat), 106=OpenAPI, 7=WeChat Mini Program, 206=Email(Manychat), 107=WeChat Customer Service, 8=Douyin, 207=Telegram(Manychat), 108=Chatly, 9=Instagram, 109=Unknown, 20=Shopify (old)"},"children":[]}]}]}]},"dataId":{"type":"string","description":"Data ID"},"name":{"type":"string","description":"Group name"},"createdTime":{"type":"integer","description":"Creation time, Unix timestamp in milliseconds.","format":"int64"},"externalGroupId":{"type":"string","description":"Platform group ID"},"avatar":{"type":"object","description":"Group avatar","properties":{}}}}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""}},"description":""}}},"id":"schema_99"},"schema_100":{"kind":"json-schema","data":{"type":"object","properties":{"id":{"type":"string","description":"Skill ID"},"title":{"anyOf":[{"type":"string","description":"Skill title"},{"type":"null"}]},"type":{"anyOf":[{"type":"string","description":"Skill type","enum":["custom","portrait","recommendation"]},{"type":"null"}]},"askProactively":{"anyOf":[{"type":"boolean","description":"Whether proactive follow-up is enabled."},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["run","pause"],"description":"Status"},{"type":"null"}]}},"required":["id"]},"id":"schema_100"},"schema_101":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"required":["paging"],"type":"object","properties":{"conditions":{"type":"object","properties":{"id":{"description":"Skill ID","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":"KEYWORD: exact match","enum":["KEYWORD"]},"value":{"type":"string"}}},"updatedTime":{"description":"Last updated time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"createdTime":{"description":"Creation time, Unix timestamp in milliseconds (time-range filter).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{FUZZY=fuzzy-match filtering, KEYWORD=exact-match filtering, FILTER=multi-value filtering, TIME_RANGE=time-range filtering}"},"children":[]}]}]}],"enum":["TIME_RANGE"]},"timeRange":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"Start time, Unix timestamp in milliseconds."},"end":{"type":"integer","format":"int64","description":"End time, Unix timestamp in milliseconds."}},"description":""}}},"title":{"description":"Skill name (supports fuzzy and exact matching).","type":"object","required":["conditionType"],"properties":{"conditionType":{"type":"string","description":"FUZZY: fuzzy-match filtering; KEYWORD: exact-match filtering","enum":["FUZZY","KEYWORD","FILTER"]},"value":{"type":"string","description":""}}},"type":{"type":"object","properties":{"conditionType":{"type":"string","description":"FILTER"},"filter":{"type":"array","items":{"type":"string","enum":["custom","portrait","recommendation"]}}},"description":"Filter by skill type","required":["conditionType","filter"]},"status":{"type":"object","properties":{"conditionType":{"type":"string","description":"FILTER"},"filter":{"type":"array","items":{"type":"string","enum":["0","1","2"]}}},"description":"Filter by skill status","required":["conditionType","filter"]},"askProactively":{"type":"object","properties":{"conditionType":{"type":"string","description":"FILTER"},"filter":{"type":"array","items":{"type":"boolean"}}},"description":"Filter by proactive follow-up setting","required":["conditionType","filter"]}}},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/butlergroup_sort"}},"paging":{"required":["length","start"],"type":"object","properties":{"start":{"minimum":0,"type":"integer","description":"Pagination offset"},"length":{"maximum":500,"minimum":1,"type":"integer","description":"Page size"}},"description":""}},"description":"Request body"}},"description":""},"id":"schema_101"},"schema_102":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"200 = success; 400 = invalid parameters; 500 = internal server error."},"children":[]}]}]}]},"message":{"type":"string"},"data":{"type":"object","properties":{"list":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Skill ID"},"dataId":{"type":"string","description":"Skill data ID (kept for compatibility with data created before 26.06)."},"title":{"type":"string","description":"Skill title"},"effectiveChannels":{"type":"string","description":"Trigger channel","enum":["email","liveChat","wechatPublic","feishu","qywechat","wxxd","chatly","manychat","openApi","unkown"]},"status":{"type":"string","description":"Skill status","enum":["0","1","2"]},"type":{"type":"string","description":"Skill type","enum":["custom","portrait","recommendation"]},"askProactively":{"type":"boolean","description":"Whether proactive follow-up is enabled."},"runTimes":{"type":"integer","description":"Run count"},"lastTriggerTime":{"type":"integer","description":"Last triggered time"},"lastPublishTime":{"type":"integer","description":"Last published time"},"createdTime":{"type":"integer","description":"created time"},"updatedTime":{"type":"integer","description":"updated time"}},"required":["id","dataId"]}},"start":{"type":"integer"},"length":{"type":"integer"},"recordsTotal":{"type":"integer"}},"required":["list","start","length","recordsTotal"]}},"required":["code"]},"id":"schema_102"},"schema_103":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"required":["paging"],"type":"object","properties":{"conditions":{"$ref":"#/components/schemas/staff_filter"},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/staff_sort"}},"extendFieldParams":{"type":"array","description":"Custom-field query parameters","items":{"required":["conditionType","key"],"type":"object","properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{NONE=NONE, FUZZY=FUZZY, KEYWORD=KEYWORD, FILTER=FILTER, TIME_RANGE=TIME_RANGE, OBJECT_FILTER=OBJECT_FILTER}"},"children":[]}]}]}],"enum":["NONE","FUZZY","KEYWORD","FILTER","TIME_RANGE","OBJECT_FILTER"]},"filter":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FILTER"},"children":[]}]}]}],"items":{"type":"string"}},"value":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FUZZY/KEYWORD"},"children":[]}]}]}]},"timeRange":{"type":"object","properties":{"start":{"minimum":0.01,"type":"string","description":"Start time, 13-digit Unix timestamp in milliseconds."},"end":{"minimum":0.01,"type":"string","description":"End time, 13-digit Unix timestamp in milliseconds."}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=TIME_RANGE"},"children":[]}]}]}]},"key":{"type":"string","description":"Custom-field key"}},"description":"Custom query condition."}},"paging":{"required":["length","start"],"type":"object","properties":{"start":{"minimum":0,"type":"integer","description":"Pagination offset"},"length":{"maximum":500,"minimum":1,"type":"integer","description":"Page size"}},"description":""}},"description":"Request body"}},"description":""},"id":"schema_103"},"schema_104":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"$ref":"#/components/schemas/staff"}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""}},"description":""}}},"id":"schema_104"},"schema_105":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"},"data":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"employeeId":{"type":"string"},"headPortrait":{"type":"string"}},"required":["id","name","employeeId","headPortrait"]}},"required":["entity"]}},"required":["code","message","data"]},"id":"schema_105"},"schema_106":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"type":"object","properties":{"conditions":{"$ref":"#/components/schemas/staff_filter"},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/staff_sort"}},"extendFieldParams":{"type":"array","description":"Custom-field query parameters","items":{"required":["conditionType","key"],"type":"object","properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{NONE=NONE, FUZZY=FUZZY, KEYWORD=KEYWORD, FILTER=FILTER, TIME_RANGE=TIME_RANGE, OBJECT_FILTER=OBJECT_FILTER}"},"children":[]}]}]}],"enum":["NONE","FUZZY","KEYWORD","FILTER","TIME_RANGE","OBJECT_FILTER"]},"filter":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FILTER"},"children":[]}]}]}],"items":{"type":"string"}},"value":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FUZZY/KEYWORD"},"children":[]}]}]}]},"timeRange":{"type":"object","properties":{"start":{"minimum":0.01,"type":"string","description":"Start time, 13-digit Unix timestamp in milliseconds."},"end":{"minimum":0.01,"type":"string","description":"End time, 13-digit Unix timestamp in milliseconds."}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=TIME_RANGE"},"children":[]}]}]}]},"key":{"type":"string","description":"Custom-field key"}},"description":"Custom query condition."}},"boundaryIds":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Starting ID. Use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for the first query."},"children":[]}]}]}],"items":{"type":"string"}},"length":{"maximum":2000,"minimum":1,"type":"integer","description":"Number of records per query"}},"description":"Request body"}},"description":""},"id":"schema_106"},"schema_107":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"$ref":"#/components/schemas/staff"}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""},"boundaryIds":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"boundaryIds"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" returned by this query. Pass them directly as "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"boundaryIds"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the next query."},"children":[]}]}]}],"items":{"type":"string"}}},"description":""}}},"id":"schema_107"},"schema_108":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"required":["paging"],"type":"object","properties":{"conditions":{"$ref":"#/components/schemas/department_staff_relation_filter"},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/department_staff_relation_sort"}},"extendFieldParams":{"type":"array","description":"Custom-field query parameters","items":{"required":["conditionType","key"],"type":"object","properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{NONE=NONE, FUZZY=FUZZY, KEYWORD=KEYWORD, FILTER=FILTER, TIME_RANGE=TIME_RANGE, OBJECT_FILTER=OBJECT_FILTER}"},"children":[]}]}]}],"enum":["NONE","FUZZY","KEYWORD","FILTER","TIME_RANGE","OBJECT_FILTER"]},"filter":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FILTER"},"children":[]}]}]}],"items":{"type":"string"}},"value":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FUZZY/KEYWORD"},"children":[]}]}]}]},"timeRange":{"type":"object","properties":{"start":{"minimum":0.01,"type":"string","description":"Start time, 13-digit Unix timestamp in milliseconds."},"end":{"minimum":0.01,"type":"string","description":"End time, 13-digit Unix timestamp in milliseconds."}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=TIME_RANGE"},"children":[]}]}]}]},"key":{"type":"string","description":"Custom-field key"}},"description":"Custom query condition."}},"paging":{"required":["length","start"],"type":"object","properties":{"start":{"minimum":0,"type":"integer","description":"Pagination offset"},"length":{"maximum":500,"minimum":1,"type":"integer","description":"Page size"}},"description":""}},"description":"Request body"}},"description":""},"id":"schema_108"},"schema_109":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"$ref":"#/components/schemas/department_staff_relation"}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""}},"description":""}}},"id":"schema_109"},"schema_110":{"kind":"json-schema","data":{"required":["body"],"type":"object","properties":{"body":{"type":"object","properties":{"conditions":{"$ref":"#/components/schemas/department_staff_relation_filter"},"sorts":{"type":"array","description":"","items":{"$ref":"#/components/schemas/department_staff_relation_sort"}},"extendFieldParams":{"type":"array","description":"Custom-field query parameters","items":{"required":["conditionType","key"],"type":"object","properties":{"conditionType":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"{NONE=NONE, FUZZY=FUZZY, KEYWORD=KEYWORD, FILTER=FILTER, TIME_RANGE=TIME_RANGE, OBJECT_FILTER=OBJECT_FILTER}"},"children":[]}]}]}],"enum":["NONE","FUZZY","KEYWORD","FILTER","TIME_RANGE","OBJECT_FILTER"]},"filter":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FILTER"},"children":[]}]}]}],"items":{"type":"string"}},"value":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=FUZZY/KEYWORD"},"children":[]}]}]}]},"timeRange":{"type":"object","properties":{"start":{"minimum":0.01,"type":"string","description":"Start time, 13-digit Unix timestamp in milliseconds."},"end":{"minimum":0.01,"type":"string","description":"End time, 13-digit Unix timestamp in milliseconds."}},"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"conditionType=TIME_RANGE"},"children":[]}]}]}]},"key":{"type":"string","description":"Custom-field key"}},"description":"Custom query condition."}},"boundaryIds":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Starting ID. Use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for the first query."},"children":[]}]}]}],"items":{"type":"string"}},"length":{"maximum":2000,"minimum":1,"type":"integer","description":"Number of records per query"}},"description":"Request body"}},"description":""},"id":"schema_110"},"schema_111":{"kind":"json-schema","data":{"type":"object","properties":{"code":{"type":"integer","description":""},"message":{"type":"string","description":""},"data":{"type":"object","properties":{"list":{"type":"array","description":"","items":{"$ref":"#/components/schemas/department_staff_relation"}},"start":{"type":"integer","description":""},"length":{"type":"integer","description":""},"recordsTotal":{"type":"integer","description":""},"boundaryIds":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"boundaryIds"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" returned by this query. Pass them directly as "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"boundaryIds"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the next query."},"children":[]}]}]}],"items":{"type":"string"}}},"description":""}}},"id":"schema_111"}},"exampleStore":{"paths/~1api~1open~1v3~1token/post/responses/200/content/application~1json/example":{"value":{"code":0,"message":"","data":{"entity":{"accessToken":"","accessTokenExpireIn":0,"refreshToken":"","refreshTokenExpireIn":0}}},"id":"paths/~1api~1open~1v3~1token/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1token/put/responses/200/content/application~1json/example":{"value":{"code":0,"message":"","data":{"entity":{"accessToken":"","accessTokenExpireIn":0,"refreshToken":"","refreshTokenExpireIn":0}}},"id":"paths/~1api~1open~1v3~1token/put/responses/200/content/application~1json/example"},"paths/~1api~1open~1v4~1butler~1chat~1completions/post/responses/200/content/application~1json/example":{"value":{"code":200,"message":"success","data":{"dialogId":"dlg_20260205103045_abc123","agentLogs":[{"type":"knowledge_hit","name":"RefundPolicyAgent","message":"Matched knowledge-base content related to the refund process.","status":"success","kb":[{"content":"Customers may request a refund within 7 days after payment. Refunds are returned to the original payment method and typically take 3–5 business days to process.","chunk_id":"chunk_refund_001","document_id":"doc_refund_policy_v1","document_name":"Refund Policy","enabled":true,"lang":"zh-CN","score":0.87,"source":"knowledge_base","created_at":1707100800}],"entity":{"name":"refund_type","values":["Order Refund"]},"timestamp":1707100845123}],"messages":[{"type":"assistant","contentType":"text","text":"You can request a refund within 7 days after payment. The refund will be returned to the original payment method and is typically processed within 3–5 business days. If you would like help initiating the refund, provide your order number.","url":"","meta":{"width":0,"height":0,"size_kb":0,"duration":0,"format":"","coverUrl":""}}]}},"id":"paths/~1api~1open~1v4~1butler~1chat~1completions/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post/responses/200/content/application~1json/example":{"value":{"code":0,"message":"","data":{"entity":{}}},"id":"paths/~1api~1open~1v3~1butler~1meta~1post~1detail/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post/responses/200/content/application~1json/example":{"value":{"code":0,"message":"","data":{"entity":{}}},"id":"paths/~1api~1open~1v3~1butler~1meta~1private-message~1send/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post/responses/200/content/application~1json/example":{"value":{"code":0,"message":"","data":{"entity":{}}},"id":"paths/~1api~1open~1v3~1butler~1meta~1comment~1reply/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butler~1channel~1message~1send/post/responses/200/content/application~1json/example":{"value":{"code":200,"message":"","data":{"entity":{"messageId":""}}},"id":"paths/~1api~1open~1v3~1butler~1channel~1message~1send/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butlerchannel~1query/post/responses/200/content/application~1json/example":{"value":{"code":200,"data":{"list":[{"updatedTime":1765547341035,"dataId":"r6yivyww6fi4dv2qwvs1vyrk","accountType":101,"workSpaceId":"24268a6c-b0a4-414d-b03b-74ed200d31b6","createdTime":1765545643537,"id":"r6yivyww6fi4dv2qwvs1vyrk","type":"email"},{"updatedTime":1765546003468,"dataId":"qpoubq5qew2eyexxr7l68e9b","accountType":2,"workSpaceId":"24268a6c-b0a4-414d-b03b-74ed200d31b6","createdTime":1764137194146,"id":"qpoubq5qew2eyexxr7l68e9b","type":"chatly"}],"start":0,"length":100,"recordsTotal":2}},"id":"paths/~1api~1open~1v3~1butlerchannel~1query/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butlervisitor~1query/post/responses/200/content/application~1json/example":{"value":{"code":200,"message":"","data":{"list":[{"totalVisits":33,"updatedTime":1761104930599,"firstTouch":"{\"landingPage\":\"https://3chatte.myshopify.com/\",\"hasMarketing\":true,\"capturedAt\":\"2025-10-31T13:34:39.066Z\"}","language":"zh-CN","lastTouch":"{\"landingPage\":\"https://3chatte.myshopify.com/\",\"hasMarketing\":true,\"capturedAt\":\"2025-10-31T13:34:39.066Z\"}","utmSourceLast":"","accountId":"9d989ebf-c20e-4052-8886-1d44c21b7997","phoneNumber":"18823455432","browserAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0","lastVisitTime":1781508326632,"externalReferrerLast":"","name":"Taylor","createdTime":1753800341732,"lookup_35619bh169":"sit","lastVisitIp":"198.2.152.33","landingPageLast":"https://3chatte.myshopify.com/","lookup_gd40h55ggc":"nulla","email":"gs2k34_m1086@tom.com","firstVisitTime":1738661650861,"externalUserId":"wo56kvDgAA5VmZqvgsX8d-cDmSDXCZXQ","botUserId":"user@example.com","imBotId":"1688856053740892","orgId":"6887410937e2124b6d6265a1"}],"start":36,"length":1,"recordsTotal":35}},"id":"paths/~1api~1open~1v3~1butlervisitor~1query/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butler~1visitor~1update/post/responses/200/content/application~1json/example":{"value":{"code":200,"message":""},"id":"paths/~1api~1open~1v3~1butler~1visitor~1update/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butler~1transferToHuman/post/responses/200/content/application~1json/example":{"value":{"code":200,"message":""},"id":"paths/~1api~1open~1v3~1butler~1transferToHuman/post/responses/200/content/application~1json/example"},"paths/~1api~1butler~1open~1v2~1group~1transferToHuman/post/responses/200/content/application~1json/example":{"value":{"code":200,"data":{"groupId":"group_xxx","participantId":"participant_xxx","transferMode":"CONTACT_LEVEL"}},"id":"paths/~1api~1butler~1open~1v2~1group~1transferToHuman/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v4~1butler~1conversations~1assign/post/responses/200/content/application~1json/example":{"value":{"code":200,"message":"success","data":"conv_20260205103045_abc123"},"id":"paths/~1api~1open~1v4~1butler~1conversations~1assign/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butlerconversation~1query/post/responses/200/content/application~1json/example":{"value":{"code":200,"data":{"list":[{"completedTime":1765591805398,"replyStrategy":2,"solved":true,"lookup_3g71fgh5f5":"e1xw1w62ez8g7chbpu8m2ecx","dataId":"artkf8obtc4aoycsfkacfepd","createdTime":1765591479815,"lookup_h70b811f83":113,"id":"artkf8obtc4aoycsfkacfepd","convStatus":3,"updatedTime":1765591805445,"sessionId":{"id":"vcukzh09l5x3k8ke34b55hd7","viewKey":"butlerSession"},"userAccountId":"qxs024gzl1kehd1q8hhlvefk","visitorId":{"id":"e1xw1w62ez8g7chbpu8m2ecx","viewKey":"butlerVisitor"}},{"completedTime":1765591805398,"replyStrategy":2,"solved":true,"lookup_3g71fgh5f5":"gxp5tvn7jiqiac7wn6ivt7x3","dataId":"q1u6qd4svts3uueeewyxfhsh","createdTime":1765591479729,"lookup_h70b811f83":113,"id":"q1u6qd4svts3uueeewyxfhsh","convStatus":3,"updatedTime":1765591805443,"sessionId":{"id":"am3jugfyr7r66fxgnsrcoaux","viewKey":"butlerSession"},"userAccountId":"cnv3kupexzjb7vaiko3vjrls","visitorId":{"id":"gxp5tvn7jiqiac7wn6ivt7x3","viewKey":"butlerVisitor"}}],"start":0,"length":100,"recordsTotal":2}},"id":"paths/~1api~1open~1v3~1butlerconversation~1query/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1butlermessage~1query/post/responses/200/content/application~1json/example":{"value":{"code":200,"message":"","data":{"list":[{"id":"51901704862228480","dataId":"7g0rzhgjp0a3xqpdd","senderId":"51901681609007100","workSpaceId":"a4872870-3cde-47f2-830f-a5f07801790b","senderType":1,"sendTime":1770489117,"content":"Tell me about your business.","channelId":{"id":"d56sxk7g0rzhazsuqdqz0d5u"},"conversationId":{"id":"aqxqpddc36lyaeysxhhuekih"},"sessionId":{"id":"kiaa9exjdwdcnzrzqgjp0a32"},"isEffectiveReply":true,"email":{"from":"user@example.com","fromName":"Morgan","to":["user@example.com","user@example.com","user@example.com"],"cc":["user@example.com","user@example.com"],"bcc":["user@example.com"],"subject":"Product Inquiry"},"attachments":[{"key":"idolor","name":"profile.png","contentType":"image/png","url":"https://mature-printer.com/","size":3132}],"agentLogs":[{"type":"language","message":"Chinese","status":"certain","timestamp":1762915391425},{"type":"recall","message":"Memory content: 1, 2, 3","timestamp":1762915391425},{"type":"task","name":"Query Orders","timestamp":1762915391425},{"type":"knowledge","kb":[{"chunk_id":"7ae93248fe9","content":"Q: What does the sample company do?\nA: The sample company provides testing services for businesses.","created_at":1763640658,"document_id":"dd06afb5-7e33-4953-9247-113879e4653","document_name":"test-knowledge-base.md","enabled":true,"lang":"zh","score":0.7226141428807815,"source":"Document"}],"timestamp":1762915391425},{"type":"tool","name":"Create Order","costTime":5,"timestamp":1762915391425},{"type":"tool","name":"Create Order","costTime":5,"status":"success","timestamp":1762915391425},{"type":"internalTool","entity":{"name":"visitor","values":["Jamie","13812345678"]},"timestamp":1762915391425},{"type":"systemTask","name":"Collected information","message":"Record xx, xx, xx","timestamp":1762915391425}],"createdTime":1770489117249,"updatedTime":1747115523185,"thirdId":"external_message_id","replyMessageId":"reply_message_id","processedBy":"AI_AGENT"}],"start":0,"length":100,"recordsTotal":99}},"id":"paths/~1api~1open~1v3~1butlermessage~1query/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v4~1butler~1files/post/responses/200/content/application~1json/example":{"value":{"code":200,"message":"success","data":{"fileId":"0d4e6d3c-4687-4cd8-95b7-2006565c66c2","fileName":"test-file.md","mimeType":"text/markdown","sizeBytes":2344,"purpose":"knowledge","fileUrl":"https://files.example.com/knowledge/example.md","sha256":"a5450fbff557fef5dc28266e28268823a75a47b228707e5b1a77039ab2a24f5e","createdAt":1778208611781}},"id":"paths/~1api~1open~1v4~1butler~1files/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v4~1butler~1files/post/responses/413/content/application~1json/example":{"value":{"code":413,"message":"The file size exceeds the allowed limit.(Max - 15 M)","data":null},"id":"paths/~1api~1open~1v4~1butler~1files/post/responses/413/content/application~1json/example"},"paths/~1api~1open~1v4~1butler~1files/post/responses/415/content/application~1json/example":{"value":{"code":415,"message":"Unsupported file type.","data":null},"id":"paths/~1api~1open~1v4~1butler~1files/post/responses/415/content/application~1json/example"},"paths/~1api~1open~1v4~1butler~1knowledge~1tasks/post/responses/200/content/application~1json/example":{"value":{"code":200,"message":"success","requestId":"req_01K23P7R4M6W8Q9JAB","data":{"taskId":"ktask_01K23P7W8D5N2X4QYZ","status":"task.progress","sourceSummary":{"total":3,"accepted":3,"rejected":0},"parseConfig":{"extractImageElements":true,"parseScannedDocument":false,"language":"zh-CN","normalizeWhitespaceAndLineBreaks":false,"removeUrlsAndEmails":false},"chunkConfig":{"mode":"hierarchical","hierarchical":{"level":1,"preserveHierarchyInfo":true}},"entitlement":{"resourceType":"knowledge_unit","estimatedConsume":3,"actualConsume":0,"balanceRemain":1000},"errors":[],"createdAt":1776667072000}},"id":"paths/~1api~1open~1v4~1butler~1knowledge~1tasks/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/200/content/application~1json/example":{"value":{"code":200,"message":"success","data":{"taskId":"a47e4576-b921-4cae-b7b6-8a04ceaf00db","status":"task.progress","sourceSummary":{"total":3,"accepted":3,"rejected":0,"queued":0,"uploading":0,"parsing":0,"completed":3,"failed":0},"sources":[{"sourceId":"my_src_1","internalId":"33502bea-0ffb-452d-8774-4267b139ac00","type":"uploaded_file","displayName":"medical-knowledge-base.md","status":"file.completed","documentId":"64da8c4d-6cb1-423b-804a-9b12905a0dac"},{"sourceId":"my_src_2","internalId":"1bc42419-4733-4dc5-b3f1-a3c1de39c6e8","type":"remote_file","displayName":"contacts.xlsx","status":"file.completed","documentId":"febadcb5-344e-413a-9400-5a6433fb8677"},{"sourceId":"my_src_3","internalId":"af71c665-aa97-4545-ac01-6aaafa9a2a38","type":"raw_text","displayName":"text-knowledge-base.txt","status":"file.completed","documentId":"c1544869-efbf-417c-a739-4dc15040bc58"}],"entitlement":{"resourceType":"knowledge_unit","estimatedConsume":3,"actualConsume":3,"balanceRemain":10},"errors":[],"createdAt":1778208780078,"updatedAt":1778208802846}},"id":"paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/200/content/application~1json/example"},"paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/404/content/application~1json/example":{"value":{"code":404,"message":"Task not found","data":null},"id":"paths/~1api~1open~1v4~1butler~1knowledge~1tasks~1{taskId}/get/responses/404/content/application~1json/example"},"paths/~1api~1open~1v3~1staffs~1create/post/responses/200/content/application~1json/example":{"value":{"code":0,"message":""},"id":"paths/~1api~1open~1v3~1staffs~1create/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1staffs~1update/post/responses/200/content/application~1json/example":{"value":{"code":0,"message":""},"id":"paths/~1api~1open~1v3~1staffs~1update/post/responses/200/content/application~1json/example"},"paths/~1api~1open~1v3~1currentStaff~1query/post/responses/200/content/application~1json/example":{"value":{"code":39,"message":"commodo","data":{"entity":{"id":90,"name":"Alex","employeeId":"96","headPortrait":"irure elit ut minim non"}}},"id":"paths/~1api~1open~1v3~1currentStaff~1query/post/responses/200/content/application~1json/example"}},"securitySchemeStore":{"bearerAuth":{"id":"bearerAuth","type":"http","scheme":"bearer","bearerFormat":"Access Token","description":"Access Token returned by the Create Access Token or Refresh Access Token endpoint."}},"servers":[{"url":"/_mock/apis/3chat-api","isMockServer":true,"description":"Mock server"},{"url":"https://app.3chat.ai","description":"3Chat production server"}],"specType":"openapi"},"options":{"mockServer":{"url":"/_mock/apis/3chat-api","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/apis/3chat-api.json?download"},{"url":"/_bundle/apis/3chat-api.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"3Chat Open Platform API","description":"Server-side APIs for integrating external systems with 3Chat."}},"baseSlug":"/apis/3chat-api","routesMapping":{}}