{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost:7500","description":"Generated server url"}],"paths":{"/api/v1/conversation":{"get":{"tags":["Conversation"],"description":"get-conversation","operationId":"getCollectionResource-conversation-get_1","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"minimum":0,"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"minimum":1,"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelEntityModelConversation"}},"text/uri-list":{"schema":{"type":"string"}},"application/x-spring-data-compact+json":{"schema":{"$ref":"#/components/schemas/PagedModelEntityModelConversation"}}}}}},"post":{"tags":["Conversation"],"description":"create-conversation","operationId":"postCollectionResource-conversation-post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRequestBody"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelConversation"}}}}}}},"/api/v1/conversation/search/findBySessionId":{"get":{"tags":["Conversation"],"operationId":"executeSearch-conversation-get","parameters":[{"name":"sessionId","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelConversation"}}}},"404":{"description":"Not Found"}}}},"/api/v1/conversation/{id}":{"get":{"tags":["Conversation"],"description":"get-conversation","operationId":"getItemResource-conversation-get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelConversation"}}}},"404":{"description":"Not Found"}}},"put":{"tags":["Conversation"],"description":"update-conversation","operationId":"putItemResource-conversation-put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRequestBody"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelConversation"}}}},"201":{"description":"Created","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelConversation"}}}},"204":{"description":"No Content"}}},"delete":{"tags":["Conversation"],"description":"delete-conversation","operationId":"deleteItemResource-conversation-delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"404":{"description":"Not Found"}}},"patch":{"tags":["Conversation"],"description":"patch-conversation","operationId":"patchItemResource-conversation-patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRequestBody"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelConversation"}}}},"204":{"description":"No Content"}}}},"/api/v1/flow":{"get":{"tags":["Flow Items"],"description":"Get all flow items","operationId":"getCollectionResource-flowitem-get_1_1","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"minimum":0,"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"minimum":1,"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"lang","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/FlowItem"}},{"$ref":"#/components/schemas/PagedModelEntityModelFlowItem"}]}},"text/uri-list":{"schema":{"type":"string"}},"application/x-spring-data-compact+json":{"schema":{"$ref":"#/components/schemas/PagedModelEntityModelFlowItem"}}}}}},"post":{"tags":["Flow Items"],"description":"Create a new flow item","operationId":"postCollectionResource-flowitem-post_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowItem"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelFlowItem"}}}}}}},"/api/v1/flow/{id}":{"get":{"tags":["Flow Items"],"description":"Get a specific flow item by its ID, as well as the messages that follow it","operationId":"getItemResource-flowitem-get_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"text","in":"query","required":false,"schema":{"type":"string"}},{"name":"language","in":"query","required":false,"schema":{"type":"string"}},{"name":"X-SESSION-ID","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/FlowItem"}},{"$ref":"#/components/schemas/EntityModelFlowItem"}]}}}},"404":{"description":"Not Found"}}},"put":{"tags":["Flow Items"],"description":"update-flowitem","operationId":"putItemResource-flowitem-put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowItemRequestBody"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelFlowItem"}}}},"201":{"description":"Created","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelFlowItem"}}}},"204":{"description":"No Content"}}},"delete":{"tags":["Flow Items"],"description":"delete-flowitem","operationId":"deleteItemResource-flowitem-delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"404":{"description":"Not Found"}}},"patch":{"tags":["Flow Items"],"description":"patch-flowitem","operationId":"patchItemResource-flowitem-patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowItemRequestBody"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelFlowItem"}}}},"204":{"description":"No Content"}}}},"/api/v1/intlTexts":{"get":{"tags":["Internationalization texts"],"description":"get-intltext","operationId":"getCollectionResource-intltext-get_1","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"minimum":0,"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"minimum":1,"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelEntityModelIntlText"}},"text/uri-list":{"schema":{"type":"string"}},"application/x-spring-data-compact+json":{"schema":{"$ref":"#/components/schemas/PagedModelEntityModelIntlText"}}}}}},"post":{"tags":["Internationalization texts"],"description":"create-intltext","operationId":"postCollectionResource-intltext-post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntlTextRequestBody"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelIntlText"}}}}}}},"/api/v1/intlTexts/search/deleteByKey":{"get":{"tags":["Internationalization texts"],"operationId":"executeSearch-intltext-get","parameters":[{"name":"key","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelEntityModelIntlText"}}}},"404":{"description":"Not Found"}}}},"/api/v1/intlTexts/search/findByKey":{"get":{"tags":["Internationalization texts"],"description":"Get all translations of a text content.","operationId":"executeSearch-intltext-get_1","parameters":[{"name":"key","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelEntityModelIntlText"}}}},"404":{"description":"Not Found"}}}},"/api/v1/intlTexts/search/findByLanguageCode":{"get":{"tags":["Internationalization texts"],"description":"Get all texts in a specified language.","operationId":"executeSearch-intltext-get_2","parameters":[{"name":"languageCode","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelEntityModelIntlText"}}}},"404":{"description":"Not Found"}}}},"/api/v1/intlTexts/search/findByLanguageCodeAndKey":{"get":{"tags":["Internationalization texts"],"description":"Find a text by its key in a specified language.","operationId":"executeSearch-intltext-get_3","parameters":[{"name":"languageCode","in":"query","schema":{"type":"string"}},{"name":"key","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelEntityModelIntlText"}}}},"404":{"description":"Not Found"}}}},"/api/v1/intlTexts/{id}":{"get":{"tags":["Internationalization texts"],"description":"get-intltext","operationId":"getItemResource-intltext-get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelIntlText"}}}},"404":{"description":"Not Found"}}},"put":{"tags":["Internationalization texts"],"description":"update-intltext","operationId":"putItemResource-intltext-put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntlTextRequestBody"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelIntlText"}}}},"201":{"description":"Created","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelIntlText"}}}},"204":{"description":"No Content"}}},"delete":{"tags":["Internationalization texts"],"description":"delete-intltext","operationId":"deleteItemResource-intltext-delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"404":{"description":"Not Found"}}},"patch":{"tags":["Internationalization texts"],"description":"patch-intltext","operationId":"patchItemResource-intltext-patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntlTextRequestBody"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/EntityModelIntlText"}}}},"204":{"description":"No Content"}}}},"/api/v1/profile":{"get":{"tags":["profile-controller"],"operationId":"listAllFormsOfMetadata_1","responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/RepresentationModelObject"}}}}}}},"/api/v1/profile/conversation":{"get":{"tags":["profile-controller"],"operationId":"descriptor_1_1_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}},"application/alps+json":{"schema":{"type":"string"}},"application/schema+json":{"schema":{"$ref":"#/components/schemas/JsonSchema"}}}}}}},"/api/v1/profile/flow":{"get":{"tags":["profile-controller"],"operationId":"descriptor_1_1_2","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}},"application/alps+json":{"schema":{"type":"string"}},"application/schema+json":{"schema":{"$ref":"#/components/schemas/JsonSchema"}}}}}}},"/api/v1/profile/intlTexts":{"get":{"tags":["profile-controller"],"operationId":"descriptor_1_1_3","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}},"application/alps+json":{"schema":{"type":"string"}},"application/schema+json":{"schema":{"$ref":"#/components/schemas/JsonSchema"}}}}}}},"/webhook/facebook/":{"get":{"tags":["Facebook Integration Webhooks"],"operationId":"verifyWebhook","parameters":[{"name":"hub.mode","in":"query","required":true,"schema":{"type":"string"}},{"name":"hub.challenge","in":"query","required":true,"schema":{"type":"string"}},{"name":"hub.verify_token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Facebook Integration Webhooks"],"operationId":"handleWebhookEvent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FbWebhookRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object"}}}}}}},"/register":{"post":{"tags":["Authentication"],"summary":"Register a new user.","operationId":"register","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string"}},{"name":"password","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object"}}}}}}},"/api/v1/variables/save":{"get":{"tags":["Variable Editor"],"description":"Test","operationId":"showSaveVariable","responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Variable Editor"],"description":"Create or update a variable","operationId":"saveVariableFromForm_1","parameters":[{"name":"form","in":"query","required":true,"schema":{"$ref":"#/components/schemas/IntlTextMap"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntlTextMap"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object"}}}}}}},"/api/v1/variables/delete":{"post":{"tags":["Variable Editor"],"description":"Deletes all values from a variable using its key","operationId":"deleteVariableByKey","parameters":[{"name":"key","in":"query","required":true,"schema":{"type":"string"}},{"name":"redirectUrl","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object"}}}}}}},"/api/v1/messages/send":{"post":{"tags":["Messages"],"description":"Send a message","operationId":"sendMessage","parameters":[{"name":"X-SESSION-ID","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageBody"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIResponse"}}}}}}},"/api/v1/flow/update":{"post":{"tags":["Flow Items"],"description":"Create a new flow item","operationId":"update","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowItem"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/FlowItem"}}}}}}},"/api/v1/flow/delete/{id}":{"post":{"tags":["Flow Items"],"description":"Delete a specific flow item by its ID","operationId":"deleteFlowItemById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"language","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FlowItem"}}}}}}}},"/api/v1/config/{key}":{"get":{"tags":["Configuration"],"summary":"Get configuration object by key","operationId":"getConfigByKey","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","enum":["APP_IMAGE","DEFAULT_PAGE_SIZE","IS_PRODUCTION","BASE_ORIGIN","FAVICON","FB_FOLLOWUP_MESSAGE_DELAY_MS","LOA_VALIDATION_ENABLED"]}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object"}}}}}}}},"post":{"tags":["Configuration"],"summary":"Set the value of a configuration object.","operationId":"setConfig","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","enum":["APP_IMAGE","DEFAULT_PAGE_SIZE","IS_PRODUCTION","BASE_ORIGIN","FAVICON","FB_FOLLOWUP_MESSAGE_DELAY_MS","LOA_VALIDATION_ENABLED"]}},{"name":"value","in":"query","required":true,"schema":{"type":"object"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"STRING","enum":["STRING","BOOLEAN","NUMBER","URL"]}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/Configuration"}}}}}}},"/api/v1/config/":{"get":{"tags":["Configuration"],"summary":"Get all configuration values.","operationId":"getAllConfig","responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object"}}}}}}}},"post":{"tags":["Configuration"],"summary":"Set the value of a configuration object.","operationId":"setConfig_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configuration"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/Configuration"}}}}}}},"/api/v1/analytics/unique-sessions/aggregate":{"post":{"tags":["Analytics"],"summary":"Run unique session aggregation snapshot on demand","operationId":"runUniqueSessionAggregation","responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/UniqueSessionAggregation"}}}}}}},"/api/v1/analytics/total-messages/aggregate":{"post":{"tags":["Analytics"],"summary":"Run total message aggregation on demand","operationId":"runTotalMessageAggregation","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TotalMessageAggregation"}}}}}}}},"/api/v1/analytics/general-inquiries/aggregate":{"post":{"tags":["Analytics"],"summary":"Run general inquiry aggregation snapshot on demand","operationId":"runGeneralInquiryAggregation","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/GeneralInquiryAggregation"}}}}}}},"/assets/{key}":{"get":{"tags":["Assets"],"operationId":"getAsset","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","enum":["APP_IMAGE","DEFAULT_PAGE_SIZE","IS_PRODUCTION","BASE_ORIGIN","FAVICON","FB_FOLLOWUP_MESSAGE_DELAY_MS","LOA_VALIDATION_ENABLED"]}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object"}}}}}}},"/assets/app-image/":{"get":{"tags":["Assets"],"operationId":"getAppImage","responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"type":"object"}}}}}}},"/api/v1/variables/key-exists":{"get":{"tags":["Variable Editor"],"description":"Check if a string key for a variable already exists","operationId":"keyExists","parameters":[{"name":"key","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"The key is not yet used.","content":{"application/hal+json":{"schema":{"type":"object"}}}},"204":{"description":"Key already exists.","content":{"application/hal+json":{"schema":{"type":"object"}}}}}}},"/api/v1/messages":{"get":{"tags":["Messages"],"summary":"Get a paginated list of messages","operationId":"getAnalyticsPage","parameters":[{"name":"assembler","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PagedResourcesAssemblerMessage"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string","default":"timestamp"}},{"name":"sortDirection","in":"query","required":false,"schema":{"type":"string","default":"DESC"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelEntityModelMessage"}}}}}}},"/api/v1/analytics/unique-sessions/aggregations":{"get":{"tags":["Analytics"],"summary":"Get paginated unique session daily totals","operationId":"getUniqueSessionAggregations","parameters":[{"name":"assembler","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PagedResourcesAssemblerDailyUniqueSessionCount"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string","default":"day"}},{"name":"sortDirection","in":"query","required":false,"schema":{"type":"string","default":"DESC"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelEntityModelDailyUniqueSessionCount"}}}}}}},"/api/v1/analytics/total-messages/aggregations":{"get":{"tags":["Analytics"],"summary":"Get paginated total message daily totals","operationId":"getTotalMessageAggregations","parameters":[{"name":"assembler","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PagedResourcesAssemblerDailyTotalMessageCount"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string","default":"day"}},{"name":"sortDirection","in":"query","required":false,"schema":{"type":"string","default":"DESC"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelEntityModelDailyTotalMessageCount"}}}}}}},"/api/v1/analytics/general-inquiries/aggregations":{"get":{"tags":["Analytics"],"summary":"Get paginated general inquiry daily totals","operationId":"getGeneralInquiryAggregations","parameters":[{"name":"assembler","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PagedResourcesAssemblerDailyGeneralInquiryCount"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string","default":"day"}},{"name":"sortDirection","in":"query","required":false,"schema":{"type":"string","default":"DESC"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelEntityModelDailyGeneralInquiryCount"}}}}}}}},"components":{"schemas":{"AbstractJsonSchemaPropertyObject":{"type":"object","properties":{"title":{"type":"string"},"readOnly":{"type":"boolean"}}},"Item":{"type":"object","properties":{"type":{"type":"string"},"properties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AbstractJsonSchemaPropertyObject"}},"requiredProperties":{"type":"array","items":{"type":"string"}}}},"JsonSchema":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"properties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AbstractJsonSchemaPropertyObject"}},"requiredProperties":{"type":"array","items":{"type":"string"}},"definitions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Item"}},"type":{"type":"string"},"$schema":{"type":"string"}}},"Links":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Link"}},"RepresentationModelObject":{"type":"object","properties":{"_links":{"$ref":"#/components/schemas/Links"}}},"EntityModelIntlText":{"type":"object","properties":{"key":{"type":"string"},"languageCode":{"pattern":"^[a-z]{2,3}(-[A-Z]{2})?$","type":"string"},"content":{"type":"string"},"_links":{"$ref":"#/components/schemas/Links"}}},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer","format":"int64"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int64"},"number":{"type":"integer","format":"int64"}}},"PagedModelEntityModelIntlText":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"intlTexts":{"type":"array","items":{"$ref":"#/components/schemas/EntityModelIntlText"}}}},"_links":{"$ref":"#/components/schemas/Links"},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"CollectionModelEntityModelIntlText":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"intlTexts":{"type":"array","items":{"$ref":"#/components/schemas/EntityModelIntlText"}}}},"_links":{"$ref":"#/components/schemas/Links"}}},"Card":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"image":{"$ref":"#/components/schemas/ImageStructure"},"action":{"$ref":"#/components/schemas/SelectionItem"}}},"ChatbotForm":{"type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/ChatbotFormField"}},"request":{"$ref":"#/components/schemas/RequestSpec"},"title":{"type":"string"},"description":{"type":"string"},"response":{"$ref":"#/components/schemas/ResponseSpec"},"otherActions":{"type":"array","items":{"$ref":"#/components/schemas/SelectionItem"}}}},"ChatbotFormField":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"hint":{"type":"string"},"type":{"type":"string","enum":["SHORT_TEXT","LONG_TEXT","NUMBER","DATE","TIME","SELECT","CHECKBOX","RADIO","EMAIL","PASSWORD"]},"required":{"type":"boolean"},"placeholder":{"type":"string"},"minlength":{"type":"integer","format":"int32"},"maxlength":{"type":"integer","format":"int32"},"min":{"type":"integer","format":"int32"},"max":{"type":"integer","format":"int32"},"checked":{"type":"boolean"},"options":{"type":"array","items":{"$ref":"#/components/schemas/ChatbotOption"}},"key":{"type":"string"},"pattern":{"type":"string"}}},"ChatbotOption":{"type":"object","properties":{"html":{"type":"string"},"value":{"type":"string"}}},"CompareSpec":{"type":"object","properties":{"key":{"type":"string"},"values":{"type":"array","items":{"$ref":"#/components/schemas/ResponseMessage"}}}},"EntityModelFlowItem":{"required":["type"],"type":"object","properties":{"text":{"type":"string","description":"The Markdown-formatted string content of this item."},"nextItem":{"type":"string","description":"The ID of the flow item that follows this message. A null value means nothing follows."},"type":{"type":"string","description":"The type of message.","enum":["text","selection","carousel","file","image","form","card","action","command","dropdown"]},"choices":{"type":"array","description":"If the <code>type</code> property is <code>MessageType.SELECTION</code> or <code>MessageType.CAROUSEL</code>, this is a list of choices a user can select from.","items":{"$ref":"#/components/schemas/SelectionItem"}},"image":{"$ref":"#/components/schemas/ImageStructure"},"card":{"$ref":"#/components/schemas/Card"},"slides":{"type":"array","items":{"$ref":"#/components/schemas/Card"}},"command":{"type":"string","enum":["clearlogs"]},"layoutData":{"type":"string","description":"The serialized GoJS layout data (usually as JSON)"},"form":{"$ref":"#/components/schemas/ChatbotForm"},"status":{"type":"string","enum":["DEFAULT","WARNING","ERROR","SUCCESS","INFO"]},"_links":{"$ref":"#/components/schemas/Links"}}},"FlowItem":{"required":["type"],"type":"object","properties":{"text":{"type":"string","description":"The Markdown-formatted string content of this item."},"nextItem":{"type":"string","description":"The ID of the flow item that follows this message. A null value means nothing follows."},"type":{"type":"string","description":"The type of message.","enum":["text","selection","carousel","file","image","form","card","action","command","dropdown"]},"choices":{"type":"array","description":"If the <code>type</code> property is <code>MessageType.SELECTION</code> or <code>MessageType.CAROUSEL</code>, this is a list of choices a user can select from.","items":{"$ref":"#/components/schemas/SelectionItem"}},"image":{"$ref":"#/components/schemas/ImageStructure"},"card":{"$ref":"#/components/schemas/Card"},"slides":{"type":"array","items":{"$ref":"#/components/schemas/Card"}},"command":{"type":"string","enum":["clearlogs"]},"layoutData":{"type":"string","description":"The serialized GoJS layout data (usually as JSON)"},"form":{"$ref":"#/components/schemas/ChatbotForm"},"status":{"type":"string","enum":["DEFAULT","WARNING","ERROR","SUCCESS","INFO"]},"id":{"type":"string"}},"description":"An object that represents a predefined message in a chatbot flow. This represents the template of a message sent by the chatbot to the user."},"ImageStructure":{"type":"object","properties":{"src":{"type":"string"},"alt":{"type":"string"},"width":{"type":"string"},"height":{"type":"string"}}},"PagedModelEntityModelFlowItem":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"flow":{"type":"array","items":{"$ref":"#/components/schemas/EntityModelFlowItem"}}}},"_links":{"$ref":"#/components/schemas/Links"},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"RequestSpec":{"type":"object","properties":{"method":{"type":"string"},"endpoint":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}}},"ResponseMessage":{"type":"object","properties":{"markdown":{"type":"string"},"nextItem":{"type":"string"},"status":{"type":"string","enum":["DEFAULT","WARNING","ERROR","SUCCESS","INFO"]},"value":{"type":"string"}}},"ResponseSpec":{"type":"object","properties":{"httpStatus":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ResponseMessage"}},"onsubmit":{"$ref":"#/components/schemas/ResponseMessage"},"compare":{"$ref":"#/components/schemas/CompareSpec"}}},"SelectionItem":{"type":"object","properties":{"id":{"type":"string"},"nextEntry":{"type":"string"},"label":{"type":"string"},"image":{"$ref":"#/components/schemas/ImageStructure"},"description":{"type":"string"},"link":{"type":"string"}}},"ConversationLog":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"sessionId":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"direction":{"type":"string","enum":["incoming","outgoing","from_user","from_server"]},"messageId":{"type":"object"},"messageSource":{"type":"string","enum":["FLOW_ITEM","MESSAGE","STRING"]},"messageContent":{"type":"string"}},"description":"A single conversation log entry"},"EntityModelConversation":{"type":"object","properties":{"sessionId":{"type":"string"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/ConversationLog"}},"_links":{"$ref":"#/components/schemas/Links"}}},"ObjectId":{"type":"object","properties":{"timestamp":{"type":"integer","format":"int32"},"date":{"type":"string","format":"date-time"}}},"PagedModelEntityModelConversation":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"conversation":{"type":"array","items":{"$ref":"#/components/schemas/EntityModelConversation"}}}},"_links":{"$ref":"#/components/schemas/Links"},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"ConversationRequestBody":{"type":"object","properties":{"sessionId":{"type":"string"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/ConversationLog"}}},"description":"A single session (utility class for grouping logs)"},"FlowItemRequestBody":{"required":["type"],"type":"object","properties":{"text":{"type":"string","description":"The Markdown-formatted string content of this item."},"nextItem":{"type":"string","description":"The ID of the flow item that follows this message. A null value means nothing follows."},"type":{"type":"string","description":"The type of message.","enum":["text","selection","carousel","file","image","form","card","action","command","dropdown"]},"choices":{"type":"array","description":"If the <code>type</code> property is <code>MessageType.SELECTION</code> or <code>MessageType.CAROUSEL</code>, this is a list of choices a user can select from.","items":{"$ref":"#/components/schemas/SelectionItem"}},"image":{"$ref":"#/components/schemas/ImageStructure"},"card":{"$ref":"#/components/schemas/Card"},"slides":{"type":"array","items":{"$ref":"#/components/schemas/Card"}},"command":{"type":"string","enum":["clearlogs"]},"layoutData":{"type":"string","description":"The serialized GoJS layout data (usually as JSON)"},"form":{"$ref":"#/components/schemas/ChatbotForm"},"status":{"type":"string","enum":["DEFAULT","WARNING","ERROR","SUCCESS","INFO"]},"id":{"type":"string"}},"description":"An object that represents a predefined message in a chatbot flow. This represents the template of a message sent by the chatbot to the user."},"IntlTextRequestBody":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"languageCode":{"pattern":"^[a-z]{2,3}(-[A-Z]{2})?$","type":"string"},"content":{"type":"string"}}},"FbMessage":{"type":"object","properties":{"text":{"type":"string"},"mid":{"type":"string"},"quick_reply":{"$ref":"#/components/schemas/FbQuickReply"}}},"FbMessagingEvent":{"type":"object","properties":{"sender":{"$ref":"#/components/schemas/FbSender"},"message":{"$ref":"#/components/schemas/FbMessage"},"postback":{"$ref":"#/components/schemas/FbPostback"},"timestamp":{"type":"integer","format":"int64"}}},"FbPostback":{"type":"object","properties":{"payload":{"type":"string"}}},"FbQuickReply":{"type":"object","properties":{"content_type":{"type":"string"},"title":{"type":"string"},"payload":{"type":"string"},"image_url":{"type":"string"}}},"FbSender":{"type":"object","properties":{"id":{"type":"string"}}},"FbWebhookEntry":{"type":"object","properties":{"id":{"type":"string"},"time":{"type":"integer","format":"int64"},"messaging":{"type":"array","items":{"$ref":"#/components/schemas/FbMessagingEvent"}}}},"FbWebhookRequest":{"type":"object","properties":{"object":{"type":"string"},"entry":{"type":"array","items":{"$ref":"#/components/schemas/FbWebhookEntry"}}}},"IntlTextMap":{"type":"object","properties":{"key":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/TextLanguagePair"}}}},"TextLanguagePair":{"type":"object","properties":{"languageCode":{"type":"string"},"content":{"type":"string"}}},"MessageBody":{"type":"object","properties":{"flowItem":{"$ref":"#/components/schemas/FlowItem"},"type":{"type":"string","description":"The type of message being sent.","enum":["text","selection","carousel","file","image","form","card","action","command","dropdown"]},"sessionId":{"type":"string","description":"The ID of the session this message is coming from.","format":"uuid"},"selectedChoice":{"$ref":"#/components/schemas/SelectionItem"},"text":{"type":"string","description":"The text content of this message"},"language":{"type":"string","description":"The language of the chatbot when this message was sent"},"ipAddress":{"type":"string","description":"The IP address of the client sending the message"}},"description":"Represents a message"},"AIMatch":{"type":"object","properties":{"id":{"type":"string"},"question_text":{"type":"string"},"answer_text":{"type":"string"},"combined_similarity":{"type":"number","format":"double"},"text_similarity":{"type":"number","format":"double"},"keyword_match_score":{"type":"number","format":"double"},"final_score":{"type":"number","format":"double"}}},"AIResponse":{"type":"object","properties":{"id":{"type":"string"},"questionText":{"type":"string"},"answerText":{"type":"string"},"nextEntries":{"type":"array","items":{"$ref":"#/components/schemas/FlowItem"}},"matches":{"type":"array","items":{"$ref":"#/components/schemas/AIMatch"}},"combinedSimilarity":{"type":"number","format":"double"},"textSimilarity":{"type":"number","format":"double"},"keywordMatchScore":{"type":"number","format":"double"},"finalScore":{"type":"number","format":"double"},"language":{"type":"string"}}},"Configuration":{"type":"object","properties":{"value":{"type":"object"},"type":{"type":"string","enum":["STRING","BOOLEAN","NUMBER","URL"]},"description":{"type":"string"},"validValue":{"type":"boolean"},"key":{"type":"string","enum":["APP_IMAGE","DEFAULT_PAGE_SIZE","IS_PRODUCTION","BASE_ORIGIN","FAVICON","FB_FOLLOWUP_MESSAGE_DELAY_MS","LOA_VALIDATION_ENABLED"]}},"description":"A configuration key-value pair."},"DailyUniqueSessionCount":{"type":"object","properties":{"day":{"type":"string"},"total":{"type":"integer","format":"int32"}}},"UniqueSessionAggregation":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"runAt":{"type":"string","format":"date-time"},"results":{"type":"array","items":{"$ref":"#/components/schemas/DailyUniqueSessionCount"}}}},"TotalMessageAggregation":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"day":{"type":"string"},"totalMessages":{"type":"integer","format":"int32"},"tinValidation":{"type":"integer","format":"int32"},"tinInquiry":{"type":"integer","format":"int32"},"rdoFinder":{"type":"integer","format":"int32"},"ecomplaint":{"type":"integer","format":"int32"},"loaVerifier":{"type":"integer","format":"int32"},"updatedAt":{"type":"string","format":"date-time"}}},"DailyGeneralInquiryCount":{"type":"object","properties":{"day":{"type":"string"},"total":{"type":"integer","format":"int32"}}},"GeneralInquiryAggregation":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"runAt":{"type":"string","format":"date-time"},"results":{"type":"array","items":{"$ref":"#/components/schemas/DailyGeneralInquiryCount"}}}},"PagedResourcesAssemblerMessage":{"type":"object","properties":{"forceFirstAndLastRels":{"type":"boolean","writeOnly":true}}},"AIReply":{"type":"object","properties":{"id":{"type":"string"},"questionText":{"type":"string"},"answerText":{"type":"string"},"combinedSimilarity":{"type":"number","format":"double"},"textSimilarity":{"type":"number","format":"double"},"keywordMatchScore":{"type":"number","format":"double"},"finalScore":{"type":"number","format":"double"},"matches":{"type":"array","items":{"$ref":"#/components/schemas/AIMatch"}}}},"EntityModelMessage":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"timestamp":{"type":"string","format":"date-time"},"sessionId":{"type":"string","format":"uuid"},"text":{"type":"string"},"type":{"type":"string","enum":["text","selection","carousel","file","image","form","card","action","command","dropdown"]},"selection":{"$ref":"#/components/schemas/SelectionItem"},"template":{"$ref":"#/components/schemas/FlowItem"},"direction":{"type":"string","enum":["incoming","outgoing","from_user","from_server"]},"language":{"type":"string"},"ipAddress":{"type":"string"},"answer":{"$ref":"#/components/schemas/AIReply"},"_links":{"$ref":"#/components/schemas/Links"}}},"PagedModelEntityModelMessage":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/EntityModelMessage"}}}},"_links":{"$ref":"#/components/schemas/Links"},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedResourcesAssemblerDailyUniqueSessionCount":{"type":"object","properties":{"forceFirstAndLastRels":{"type":"boolean","writeOnly":true}}},"EntityModelDailyUniqueSessionCount":{"type":"object","properties":{"day":{"type":"string"},"total":{"type":"integer","format":"int32"},"_links":{"$ref":"#/components/schemas/Links"}}},"PagedModelEntityModelDailyUniqueSessionCount":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"dailyUniqueSessionCounts":{"type":"array","items":{"$ref":"#/components/schemas/EntityModelDailyUniqueSessionCount"}}}},"_links":{"$ref":"#/components/schemas/Links"},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedResourcesAssemblerDailyTotalMessageCount":{"type":"object","properties":{"forceFirstAndLastRels":{"type":"boolean","writeOnly":true}}},"EntityModelDailyTotalMessageCount":{"type":"object","properties":{"day":{"type":"string"},"totalMessages":{"type":"integer","format":"int32"},"tinValidation":{"type":"integer","format":"int32"},"tinInquiry":{"type":"integer","format":"int32"},"rdoFinder":{"type":"integer","format":"int32"},"ecomplaint":{"type":"integer","format":"int32"},"loaVerifier":{"type":"integer","format":"int32"},"_links":{"$ref":"#/components/schemas/Links"}}},"PagedModelEntityModelDailyTotalMessageCount":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"dailyTotalMessageCounts":{"type":"array","items":{"$ref":"#/components/schemas/EntityModelDailyTotalMessageCount"}}}},"_links":{"$ref":"#/components/schemas/Links"},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedResourcesAssemblerDailyGeneralInquiryCount":{"type":"object","properties":{"forceFirstAndLastRels":{"type":"boolean","writeOnly":true}}},"EntityModelDailyGeneralInquiryCount":{"type":"object","properties":{"day":{"type":"string"},"total":{"type":"integer","format":"int32"},"_links":{"$ref":"#/components/schemas/Links"}}},"PagedModelEntityModelDailyGeneralInquiryCount":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"dailyGeneralInquiryCounts":{"type":"array","items":{"$ref":"#/components/schemas/EntityModelDailyGeneralInquiryCount"}}}},"_links":{"$ref":"#/components/schemas/Links"},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"Link":{"type":"object","properties":{"href":{"type":"string"},"hreflang":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"deprecation":{"type":"string"},"profile":{"type":"string"},"name":{"type":"string"},"templated":{"type":"boolean"}}}}}}