Download OpenAPI specification:Download
Unblu Web API v4
The Java libraries containing the web API models and the Jersey client are available on Maven Central and GitHub.
For more information, refer to the project's page on GitHub.
With this service the accounts of the unblu system can be managed. Most of the provided interface needs super admin permissions. Especially if the edited account is not the one of the current user.
Creates the given entity in the system. The ID of the entity is ignored for create operations, a new one is generated.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The entity to create
| $_type | string Default: "Account" Value: "Account" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| name | string The name of the account. Maximum length of 250 characters and can not be empty. |
string or Avatar (object) expand-query-key: avatar type: ExpandableField Avatar of the entity: id that can be expanded. | |
object A map of localized versions of the name of this entity | |
object expand-query-key: configuration type: Map The entity's configuration properties. Only contains values when the 'expand' query parameter is used with the value 'configuration'. Not filled in webhook events. | |
object expand-query-key: metadata type: Map The entity's metadata properties. Only contains values when the 'expand' query parameter is used with the value 'metadata'. Not filled in webhook events. | |
object expand-query-key: text type: Map The entity's text properties. Only contains values when the 'expand' query parameter is used with the value 'text'. Not filled in webhook events. |
Create an Account with translations of the name for it
{- "$_type": "Account",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "name": "with-translations-test",
- "avatar": null,
- "translations": {
- "de": {
- "$_type": "AccountTranslation",
- "id": null,
- "name": "Kreditanstalt",
- "description": null
}, - "en": {
- "$_type": "AccountTranslation",
- "id": null,
- "name": "Loan bank",
- "description": null
}
}, - "configuration": null,
- "metadata": null,
- "text": null
}Create an Account with translations of the name for it
{- "$_type": "Account",
- "id": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "name": "with-translations-test",
- "avatar": null,
- "translations": {
- "de": {
- "$_type": "AccountTranslation",
- "id": "IO4wYQFeQ2y86kxBWrKaBQ",
- "name": "Kreditanstalt",
- "description": null
}, - "en": {
- "$_type": "AccountTranslation",
- "id": "IO4wYQFeQ2y86kxBWrKaBQ",
- "name": "Loan bank",
- "description": null
}
}, - "configuration": null,
- "metadata": null,
- "text": null
}Create a new account with a new admin which will receive an email with the initial password.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
the new account and admin user information
| $_type | string Default: "AccountUserContainer" Value: "AccountUserContainer" |
object (Account) Model of an account | |
object (User) Model of a user. A user is normally an agent and/or a person who manages the system |
Create an Account and an Admin user for it
{- "$_type": "AccountUserContainer",
- "account": {
- "$_type": "Account",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "name": "with-admin-test",
- "avatar": null,
- "translations": null,
- "configuration": null,
- "metadata": null,
- "text": null
}, - "adminUser": {
- "$_type": "User",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "accountId": null,
- "avatar": null,
- "username": "test@email.com",
- "email": "test@email.com",
- "phone": null,
- "teamId": null,
- "authorizationRole": "ADMIN",
- "displayName": "J. Doe",
- "firstName": "John",
- "lastName": "Doe",
- "nickname": null,
- "externallyManaged": null,
- "virtualUser": null,
- "configuration": null,
- "metadata": null
}
}{- "$_type": "AccountUserContainer",
- "account": {
- "$_type": "Account",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "avatar": "string",
- "translations": {
- "property1": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}, - "adminUser": {
- "$_type": "User",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "avatar": "string",
- "username": "string",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "authorizationRole": "SUPER_ADMIN",
- "displayName": "string",
- "firstName": "string",
- "lastName": "string",
- "nickname": "string",
- "externallyManaged": true,
- "virtualUser": true,
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}Deletes the account with the given ID
| accountId required | string The ID of the account which should be deleted |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Disables ingress for the given account.
Calling this method triggers the ingress deactivation process. This consists of a single step:
getMigrationStatus to DONE_INGRESS_INACTIVE and thegetIngressStatus to GLOBALgetMigrationStatus changes to ERROR.readIngressStatus to retrieve the current status and find the potential source of the problems. Once you've resolved the issues that caused the deactivation process to fail, use restartIngressMigration to restart the process.
| accountId required | string The ID of the account for which ingress should be disabled |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Enables ingress for the given account. Before calling this method, you must have configured ingress correctly.
Calling this method triggers the ingress activation process. The process consists of the following steps:
getMigrationStatus to DONE_INGRESS_ACTIVE and thegetIngressStatus to ACCOUNTgetMigrationStatus changes to ERROR.readIngressStatus to retrieve the current status and find the potential source of the problems. If the process failed because of an invalid configuration, ingress is automatically activated once the configuration has been rectified.restartIngressMigration to restart the process once you've resolved all migration issues.| accountId required | string The ID of the account for which ingress should be enabled |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Returns the account secret for the given account ID.
Only superadmins can call this endpoint for accounts other than their own.
| accountId required | string The ID of the account the secret belongs to |
{- "$_type": "AccountSecret",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "secretKey": "string"
}Returns an account by the given name or an error, if there is no such account
| name | string The name of the account which should be returned |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "Account",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "avatar": "string",
- "translations": {
- "property1": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Returns the account object of the current logged in user
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "Account",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "avatar": "string",
- "translations": {
- "property1": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Returns the current state of the account ingress configuration.
Use enableAccountIngress to enable account ingress.
Use disableAccountIngress to disable account ingress.
| accountId required | string The ID of the account for which the status should be returned |
{- "$_type": "AccountIngressStatus",
- "enabled": true,
- "ingressStatus": "ACCOUNT",
- "migrationStatus": "MIGRATING",
- "errorDetails": [
- "string"
], - "warningDetails": [
- "string"
]
}Calculates the quota usage values and their corresponding limits for API keys, domains, teams, and users in the current account.
{- "$_type": "AccountQuotaUsageData",
- "apiKeys": {
- "$_type": "QuotaUsageData",
- "current": 0,
- "limit": "string"
}, - "domains": {
- "$_type": "QuotaUsageData",
- "current": 0,
- "limit": "string"
}, - "teams": {
- "$_type": "QuotaUsageData",
- "current": 0,
- "limit": "string"
}, - "users": {
- "$_type": "QuotaUsageData",
- "current": 0,
- "limit": "string"
}, - "activeExternalWebhooks": {
- "$_type": "QuotaUsageData",
- "current": 0,
- "limit": "string"
}, - "branches": {
- "$_type": "QuotaUsageData",
- "current": 0,
- "limit": "string"
}
}Returns the total length of all conversation recordings made between the given dates over all accounts. If there were no recordings in the given time, the return value is 0.
Only superadmins can call this endpoint for accounts other than their own.
| accountId required | string The ID of the account to get the total length of all conversation recordings for. |
| fromTime | integer <int64> Date from which to count the conversation recording length. The value is rounded to the beginning of the day. |
| toTime | integer <int64> Date to which to count the conversation recording length. The value is rounded to the end of the day. |
{- "$_type": "RecordedMinutesData",
- "recordedMinutes": 0
}Returns the account with the given ID
| accountId required | string ID of the account which should be returned |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "Account",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "avatar": "string",
- "translations": {
- "property1": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Gets a list of accounts with the given IDs. IDs that can't be found are ignored.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The IDs of the accounts to fetch
[- "string"
]{- "$_type": "AccountList",
- "items": [
- {
- "$_type": "Account",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "avatar": "string",
- "translations": {
- "property1": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}Retries the ingress migration process for the given account. This is necessary when main_account#ingress_migration_status is ERROR.
When the service is executed, it updates the ingress_activation_status to MIGRATING. This causes the ingress migration leader selection task to resume the migration.
| accountId required | string The ID of the account for which the ingress migration should be restarted |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Search for accounts
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| $_type | string Default: "AccountQuery" Value: "AccountQuery" |
Array of any (AccountSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (AccountOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "AccountQuery",
- "searchFilters": [
- {
- "$_type": "CreationTimestampAccountSearchFilter",
- "field": "NAME",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
], - "orderBy": [
- {
- "$_type": "AccountOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "AccountResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "Account",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "avatar": "string",
- "translations": {
- "property1": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}Allows to update the current account as admin. If user is super admin, he can also update other accounts
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The account entity to update
| $_type | string Default: "Account" Value: "Account" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| name | string The name of the account. Maximum length of 250 characters and can not be empty. |
string or Avatar (object) expand-query-key: avatar type: ExpandableField Avatar of the entity: id that can be expanded. | |
object A map of localized versions of the name of this entity | |
object expand-query-key: configuration type: Map The entity's configuration properties. Only contains values when the 'expand' query parameter is used with the value 'configuration'. Not filled in webhook events. | |
object expand-query-key: metadata type: Map The entity's metadata properties. Only contains values when the 'expand' query parameter is used with the value 'metadata'. Not filled in webhook events. | |
object expand-query-key: text type: Map The entity's text properties. Only contains values when the 'expand' query parameter is used with the value 'text'. Not filled in webhook events. |
{- "$_type": "Account",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "avatar": "string",
- "translations": {
- "property1": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}{- "$_type": "Account",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "avatar": "string",
- "translations": {
- "property1": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AccountTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}This endpoint is in preview mode.
Creates the specified analytics dashboard. The dashboard's ID is generated automatically, therefore any ID provided in the analytics dashboard entity is ignored.The analytics dashboard to create.
| $_type | string Default: "AnalyticsDashboard" Value: "AnalyticsDashboard" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string Name of the dashboard. Maximum length of 500 characters. Mandatory. |
| description | string Description of the dashboard. Maximum length of 2000 characters. Optional. |
| initialTimeFrameType | string (EAnalyticsKpiTimeFrameType) Enum: "GLOBALLY_SYNCED" "TIME_SPAN" "LAST_DAYS" "CUSTOM" enum-descriptions: ["GLOBALLY_SYNCED: The timeframe is calculated based on dashboard configuration. Available only on widgets.","TIME_SPAN: A fixed time span, ending at the present time.","LAST_DAYS: A fixed number of last days, ending at the present time.","CUSTOM: A custom timeframe specified by a start timestamp and an end timestamp. Available on widgets and data requests."] |
| initialTimeFrameSpan | string (EAnalyticsKpiFixedTimeFrameSpan) Enum: "CURRENT_DAY" "WEEK_TO_DATE" "MONTH_TO_DATE" "QUARTER_TO_DATE" "YEAR_TO_DATE" enum-descriptions: ["CURRENT_DAY: The current day, starting at 00:00, up to the present time.","WEEK_TO_DATE: The current week, starting at 00:00 on Monday, up to the present time.","MONTH_TO_DATE: The current month, starting at 00:00 on the first day of the month, up to the present time.","QUARTER_TO_DATE: The current quarter, starting at 00:00 on the first day of the quarter, up to the present time.","YEAR_TO_DATE: The current year, starting at 00:00 on the first day of the year, up to the present time."] |
| initialTimeFrameLastDays | integer <int32> Initial timeframe number of last days. Used by widgets with the |
| initialGranularity | string (EAnalyticsKpiFixedGranularity) Enum: "MINUTE" "HOUR" "DAY" "WEEK" "MONTH" "WHOLE_TIMEFRAME" enum-descriptions: ["MINUTE: Minute.","HOUR: Hour.","DAY: Day.","WEEK: Week.","MONTH: Month.","WHOLE_TIMEFRAME: Whole timeframe."] |
| enabledGlobalFilters | Array of strings (EAnalyticsGlobalFilterType) Items Enum: "CONVERSATION_TEMPLATE_ID" "CONVERSATION_LOCALE" "INITIAL_ENGAGEMENT_TYPE" "RECIPIENT_ID" "ASSIGNED_AGENT_PERSON_ID" "ASSIGNED_AGENT_TEAM_ID" Enabled global filters for filtering all widgets of the dashboard simultaneously. |
object A map of localized versions of the dashboard's name and description. |
create analytics dashboard
{- "$_type": "AnalyticsDashboard",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "accountId": null,
- "name": "my-analytics-dashboard-test",
- "description": null,
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "initialGranularity": "DAY",
- "enabledGlobalFilters": null,
- "translations": null
}create analytics dashboard
{- "$_type": "AnalyticsDashboard",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "my-analytics-dashboard-test",
- "description": null,
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "initialGranularity": "DAY",
- "enabledGlobalFilters": [ ],
- "translations": { }
}This endpoint is in preview mode.
Creates a new dashboard using the specified template.The analytics dashboard from template request.
| $_type | string Default: "AnalyticsDashboardFromTemplateRequest" Value: "AnalyticsDashboardFromTemplateRequest" |
| template | string (EAnalyticsDashboardTemplateType) Enum: "SUPPORT" "GENERAL" "ADVISORY" "AGENT" enum-descriptions: ["SUPPORT: Customer support KPIs related to the queue.","GENERAL: KPIs on the volume of conversations.","ADVISORY: KPIs related to the secure messenger.","AGENT: KPIs of agent personal conversations."] |
| name | string Name to use for the dashboard. If not provided, the template name will be used. Optional. |
{- "$_type": "AnalyticsDashboardFromTemplateRequest",
- "template": "SUPPORT",
- "name": "string"
}{- "$_type": "AnalyticsDashboard",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "initialTimeFrameType": "GLOBALLY_SYNCED",
- "initialTimeFrameSpan": "CURRENT_DAY",
- "initialTimeFrameLastDays": 0,
- "initialGranularity": "MINUTE",
- "enabledGlobalFilters": [
- "CONVERSATION_TEMPLATE_ID"
], - "translations": {
- "property1": {
- "$_type": "AnalyticsDashboardTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AnalyticsDashboardTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}
}This endpoint is in preview mode.
Deletes the analytics dashboard with the specified ID.| analyticsDashboardId required | string The ID of the analytics dashboard to delete. |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}This endpoint is in preview mode.
Returns the analytics dashboard with the specified ID.| analyticsDashboardId required | string The ID of the analytics dashboard to return. |
{- "$_type": "AnalyticsDashboard",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "initialTimeFrameType": "GLOBALLY_SYNCED",
- "initialTimeFrameSpan": "CURRENT_DAY",
- "initialTimeFrameLastDays": 0,
- "initialGranularity": "MINUTE",
- "enabledGlobalFilters": [
- "CONVERSATION_TEMPLATE_ID"
], - "translations": {
- "property1": {
- "$_type": "AnalyticsDashboardTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AnalyticsDashboardTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}
}This endpoint is in preview mode.
Searches for analytics dashboards matching the specified query.The query used for the search.
| $_type | string Default: "AnalyticsDashboardQuery" Value: "AnalyticsDashboardQuery" |
Array of any (AnalyticsDashboardSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (AnalyticsDashboardOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
search analytics dashboards order by name ascending
{- "$_type": "AnalyticsDashboardQuery",
- "searchFilters": null,
- "orderBy": [
- {
- "$_type": "AnalyticsDashboardOrderBy",
- "field": "NAME",
- "order": "ASCENDING"
}
], - "offset": null,
- "limit": null
}search analytics dashboards order by name ascending
{- "$_type": "AnalyticsDashboardResult",
- "hasMoreItems": false,
- "nextOffset": null,
- "items": [
- {
- "$_type": "AnalyticsDashboard",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "analytics-dashboard-1",
- "description": null,
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "initialGranularity": "DAY",
- "enabledGlobalFilters": [ ],
- "translations": { }
}, - {
- "$_type": "AnalyticsDashboard",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "analytics-dashboard-2",
- "description": null,
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "initialGranularity": "DAY",
- "enabledGlobalFilters": [ ],
- "translations": { }
}, - {
- "$_type": "AnalyticsDashboard",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "analytics-dashboard-3",
- "description": null,
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "initialGranularity": "DAY",
- "enabledGlobalFilters": [ ],
- "translations": { }
}, - {
- "$_type": "AnalyticsDashboard",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "analytics-dashboard-4",
- "description": null,
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "initialGranularity": "DAY",
- "enabledGlobalFilters": [ ],
- "translations": { }
}, - {
- "$_type": "AnalyticsDashboard",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "analytics-dashboard-5",
- "description": null,
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "initialGranularity": "DAY",
- "enabledGlobalFilters": [ ],
- "translations": { }
}
]
}This endpoint is in preview mode.
Updates the analytics dashboard in the system with the provided entity. The update fails if no analytics dashboard exists with the specified ID.The details to update the analytics dashboard with.
| $_type | string Default: "AnalyticsDashboard" Value: "AnalyticsDashboard" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string Name of the dashboard. Maximum length of 500 characters. Mandatory. |
| description | string Description of the dashboard. Maximum length of 2000 characters. Optional. |
| initialTimeFrameType | string (EAnalyticsKpiTimeFrameType) Enum: "GLOBALLY_SYNCED" "TIME_SPAN" "LAST_DAYS" "CUSTOM" enum-descriptions: ["GLOBALLY_SYNCED: The timeframe is calculated based on dashboard configuration. Available only on widgets.","TIME_SPAN: A fixed time span, ending at the present time.","LAST_DAYS: A fixed number of last days, ending at the present time.","CUSTOM: A custom timeframe specified by a start timestamp and an end timestamp. Available on widgets and data requests."] |
| initialTimeFrameSpan | string (EAnalyticsKpiFixedTimeFrameSpan) Enum: "CURRENT_DAY" "WEEK_TO_DATE" "MONTH_TO_DATE" "QUARTER_TO_DATE" "YEAR_TO_DATE" enum-descriptions: ["CURRENT_DAY: The current day, starting at 00:00, up to the present time.","WEEK_TO_DATE: The current week, starting at 00:00 on Monday, up to the present time.","MONTH_TO_DATE: The current month, starting at 00:00 on the first day of the month, up to the present time.","QUARTER_TO_DATE: The current quarter, starting at 00:00 on the first day of the quarter, up to the present time.","YEAR_TO_DATE: The current year, starting at 00:00 on the first day of the year, up to the present time."] |
| initialTimeFrameLastDays | integer <int32> Initial timeframe number of last days. Used by widgets with the |
| initialGranularity | string (EAnalyticsKpiFixedGranularity) Enum: "MINUTE" "HOUR" "DAY" "WEEK" "MONTH" "WHOLE_TIMEFRAME" enum-descriptions: ["MINUTE: Minute.","HOUR: Hour.","DAY: Day.","WEEK: Week.","MONTH: Month.","WHOLE_TIMEFRAME: Whole timeframe."] |
| enabledGlobalFilters | Array of strings (EAnalyticsGlobalFilterType) Items Enum: "CONVERSATION_TEMPLATE_ID" "CONVERSATION_LOCALE" "INITIAL_ENGAGEMENT_TYPE" "RECIPIENT_ID" "ASSIGNED_AGENT_PERSON_ID" "ASSIGNED_AGENT_TEAM_ID" Enabled global filters for filtering all widgets of the dashboard simultaneously. |
object A map of localized versions of the dashboard's name and description. |
update analytics dashboard
{- "$_type": "AnalyticsDashboard",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "my-analytics-dashboard-test",
- "description": null,
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "YEAR_TO_DATE",
- "initialTimeFrameLastDays": null,
- "initialGranularity": "MONTH",
- "enabledGlobalFilters": [ ],
- "translations": { }
}create analytics dashboard
{- "$_type": "AnalyticsDashboard",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "my-analytics-dashboard-test",
- "description": null,
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "initialGranularity": "DAY",
- "enabledGlobalFilters": [ ],
- "translations": { }
}This endpoint is in preview mode.
Creates the specified analytics widget. The widget's ID is generated automatically, therefore any ID provided in the analytics widget entity is ignored.The analytics widget to create.
| $_type | string Default: "AvgHandlingTimeAnalyticsWidgetData" Value: "AvgHandlingTimeAnalyticsWidgetData" |
| id | string Widget ID. |
| accountId | string Account ID the widget belongs to. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity, incremented on each change. Updates must always be based on the latest version or they're rejected. When creating an object, the version can be omitted. |
| analyticsDashboardId | string Dashboard ID the widget belongs to. |
| name | string Name of the widget. Maximum length of 250 characters. Mandatory. |
| description | string Description of the widget. Maximum length of 500 characters. Optional. |
| kpiType required | string (EAnalyticsKpiType) enum-descriptions: ["AVG_WAITING_TIME: KPI for the average waiting time of a visitor.","AVG_HANDLING_TIME: KPI for the average handling time of an agent.","CONVERSATIONS_ENDED_COUNT: KPI for the number of ended conversations.","MESSAGES_COUNT: KPI for the number of messages.","COLLABORATION_LAYERS_COUNT: KPI for the number of collaboration layers.","CALLS_COUNT: KPI for the number of calls."] AVG_HANDLING_TIME AVG_WAITING_TIME AVG_HANDLING_TIME CONVERSATIONS_ENDED_COUNT MESSAGES_COUNT COLLABORATION_LAYERS_COUNT CALLS_COUNT |
| row | integer <int32> Row number where the widget is displayed. Integer value from 1 to 100 (inclusive). Widget placement must be within a 100x6 grid and must not overlap with another widget. Mandatory. |
| rowSpan | integer <int32> Displayed row span of the widget. Widget placement must be within a 100x6 grid and must not overlap with another widget. Mandatory. |
| column | integer <int32> Column number where the widget is displayed. Integer value from 1 to 6 (inclusive). Widget placement must be within a 100x6 grid and must not overlap with another widget. Mandatory. |
| columnSpan | integer <int32> Displayed column span of the widget. Widget placement must be within a 100x6 grid and must not overlap with another widget. Mandatory. |
| displaySingleValueAggregation | string (EAnalyticsKpiDisplaySingleValueAggregation) Enum: "SUM" "AVG" "NONE" enum-descriptions: ["SUM: Summary.","AVG: Average value calculation. If the KPI is count-based, the result is the average per selected granularity (total count divided by the number of time units). If the KPI is value-based, the result is calculated over the entire selected time range.","NONE: No aggregation."] |
| displaySingleValuePreviousPeriodComparison | boolean Flag indicating whether a single KPI value for the previous period is displayed for comparison with the current period. The timeframe used for the previous period depends on the aggregation type:
The same filters used for chart data calculation are applied. Grouping is not applied. |
| displayChart | string (EAnalyticsKpiDisplayChart) Enum: "LINE" "BAR_VERTICAL" "NONE" enum-descriptions: ["LINE: Line chart.","BAR_VERTICAL: Vertical bar chart.","NONE: No chart."] |
| initialTimeFrameType | string (EAnalyticsKpiTimeFrameType) Enum: "GLOBALLY_SYNCED" "TIME_SPAN" "LAST_DAYS" "CUSTOM" enum-descriptions: ["GLOBALLY_SYNCED: The timeframe is calculated based on dashboard configuration. Available only on widgets.","TIME_SPAN: A fixed time span, ending at the present time.","LAST_DAYS: A fixed number of last days, ending at the present time.","CUSTOM: A custom timeframe specified by a start timestamp and an end timestamp. Available on widgets and data requests."] |
| initialTimeFrameSpan | string (EAnalyticsKpiFixedTimeFrameSpan) Enum: "CURRENT_DAY" "WEEK_TO_DATE" "MONTH_TO_DATE" "QUARTER_TO_DATE" "YEAR_TO_DATE" enum-descriptions: ["CURRENT_DAY: The current day, starting at 00:00, up to the present time.","WEEK_TO_DATE: The current week, starting at 00:00 on Monday, up to the present time.","MONTH_TO_DATE: The current month, starting at 00:00 on the first day of the month, up to the present time.","QUARTER_TO_DATE: The current quarter, starting at 00:00 on the first day of the quarter, up to the present time.","YEAR_TO_DATE: The current year, starting at 00:00 on the first day of the year, up to the present time."] |
| initialTimeFrameLastDays | integer <int32> Initial number of last days for the timeframe. Mandatory if the timeframe type is set to |
| granularityType | string (EAnalyticsKpiGranularityType) Enum: "GLOBALLY_SYNCED" "FIXED" enum-descriptions: ["GLOBALLY_SYNCED: Granularity is calculated based on the dashboard configuration.","FIXED: Widget uses its own fixed granularity configuration."] |
| fixedGranularity | string (EAnalyticsKpiFixedGranularity) Enum: "MINUTE" "HOUR" "DAY" "WEEK" "MONTH" "WHOLE_TIMEFRAME" enum-descriptions: ["MINUTE: Minute.","HOUR: Hour.","DAY: Day.","WEEK: Week.","MONTH: Month.","WHOLE_TIMEFRAME: Whole timeframe."] |
object A map of localized versions of the widget's name and description. | |
Array of objects (AnalyticsKpiReferenceLine) [ items ] A list of reference lines displayed on the chart. Must be null if display chart is set to | |
| filtersType | string (EAnalyticsKpiFiltersType) Enum: "FIXED" "GLOBALLY_SYNCED" enum-descriptions: ["FIXED: Only the filters configured for the widget are used for KPI calculation. Global dashboard filters are ignored.","GLOBALLY_SYNCED: Only filters present in both the widget and the global dashboard filters are used for the KPI calculation. Filters not in both sets are ignored."] |
| groupBy | Array of strings (EAvgHandlingTimeGroupBy) Items Enum: "CONVERSATION_RECIPIENT_ID" "CONVERSATION_TEMPLATE_ID" "CONVERSATION_LOCALE" "INITIAL_ENGAGEMENT_TYPE" "ASSIGNED_AGENT_PERSON_ID" "ASSIGNED_AGENT_TEAM_ID" "RESOLUTION_TYPE" Specifies how results are grouped for the average handling time KPI. Currently only the first value of the list is used. |
object (AvgHandlingTimeAnalyticsKpiFilterData) Data model object representing filters for the KPI calculation of average handling time Filter logic:
|
create analytics widget
{- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": null,
- "accountId": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "analyticsDashboardId": "D60Uit_ARVWSrAvBEm0q1g",
- "name": "my-analytics-widget",
- "description": null,
- "kpiType": "AVG_WAITING_TIME",
- "row": 1,
- "rowSpan": 1,
- "column": 1,
- "columnSpan": 1,
- "displaySingleValueAggregation": "NONE",
- "displaySingleValuePreviousPeriodComparison": false,
- "displayChart": "LINE",
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "granularityType": "FIXED",
- "fixedGranularity": "DAY",
- "translations": null,
- "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": null,
- "analyticsWidgetId": null,
- "label": "label",
- "value": 0.6,
- "color": "white",
- "displayType": "SOLID",
- "translations": null
}
], - "filtersType": "FIXED",
- "groupBy": [
- "WAITING_TIME_OUTCOME"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": null,
- "endTimestamp": null,
- "conversationTemplateIds": [
- "jvmIMmsASjOyUQYZd2QGyg",
- "69GUA3yMSsSFAxhP0YfIUw"
], - "conversationLocales": [
- "en",
- "de"
], - "initialEngagementTypes": [
- "CHAT_REQUEST",
- "CHAT_INVITE"
], - "recipientAgentPersonIds": null,
- "recipientTeamIds": null,
- "recipientNamedAreaIds": null,
- "recipientAccountId": null,
- "waitingTimeOutcomes": [
- "ACCEPTED",
- "ABORTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED",
- "REBOARDING_QUEUED"
], - "invitationAgentPersonIds": [
- "JIFIh_6bT6eoZUCZbEIbZQ",
- "J10Sq-d6Rzaxr842E0jvkA"
], - "invitationTeamIds": null,
- "invitationNamedAreaIds": null,
- "invitationAccountId": null,
- "invitationAcceptingAgentPersonIds": null,
- "invitationAcceptingAgentTeamIds": null
}
}create analytics widget
{- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "analyticsDashboardId": "D60Uit_ARVWSrAvBEm0q1g",
- "name": "my-analytics-widget",
- "description": null,
- "kpiType": "AVG_WAITING_TIME",
- "row": 1,
- "rowSpan": 1,
- "column": 1,
- "columnSpan": 1,
- "displaySingleValueAggregation": "NONE",
- "displaySingleValuePreviousPeriodComparison": false,
- "displayChart": "LINE",
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "granularityType": "FIXED",
- "fixedGranularity": "DAY",
- "translations": { },
- "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "71awHFWOT0yOfLsbHQjxGQ",
- "analyticsWidgetId": "AIjjGLtOTJyvZjwxHb1DFw",
- "label": "label",
- "value": 0.6,
- "color": "white",
- "displayType": "SOLID",
- "translations": { }
}
], - "filtersType": "FIXED",
- "groupBy": [
- "WAITING_TIME_OUTCOME"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": null,
- "endTimestamp": null,
- "conversationTemplateIds": [
- "jvmIMmsASjOyUQYZd2QGyg",
- "69GUA3yMSsSFAxhP0YfIUw"
], - "conversationLocales": [
- "en",
- "de"
], - "initialEngagementTypes": [
- "CHAT_REQUEST",
- "CHAT_INVITE"
], - "recipientAgentPersonIds": null,
- "recipientTeamIds": null,
- "recipientNamedAreaIds": null,
- "recipientAccountId": null,
- "waitingTimeOutcomes": [
- "ACCEPTED",
- "ABORTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED",
- "REBOARDING_QUEUED"
], - "invitationAgentPersonIds": [
- "JIFIh_6bT6eoZUCZbEIbZQ",
- "J10Sq-d6Rzaxr842E0jvkA"
], - "invitationTeamIds": null,
- "invitationNamedAreaIds": null,
- "invitationAccountId": null,
- "invitationAcceptingAgentPersonIds": null,
- "invitationAcceptingAgentTeamIds": null
}
}This endpoint is in preview mode.
Deletes the analytics widget with the specified ID.| id required | string The ID of the analytics widget to delete. |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}This endpoint is in preview mode.
Returns the analytics widget with the specified ID.| id required | string The ID of the analytics widget to return. |
{- "$_type": "AvgHandlingTimeAnalyticsWidgetData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "analyticsDashboardId": "string",
- "name": "string",
- "description": "string",
- "kpiType": "AVG_HANDLING_TIME",
- "row": 0,
- "rowSpan": 0,
- "column": 0,
- "columnSpan": 0,
- "displaySingleValueAggregation": "SUM",
- "displaySingleValuePreviousPeriodComparison": true,
- "displayChart": "LINE",
- "initialTimeFrameType": "GLOBALLY_SYNCED",
- "initialTimeFrameSpan": "CURRENT_DAY",
- "initialTimeFrameLastDays": 0,
- "granularityType": "GLOBALLY_SYNCED",
- "fixedGranularity": "MINUTE",
- "translations": {
- "property1": {
- "$_type": "AnalyticsWidgetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AnalyticsWidgetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "string",
- "analyticsWidgetId": "string",
- "label": "string",
- "value": 0,
- "color": "string",
- "displayType": "SOLID",
- "translations": {
- "property1": {
- "$_type": "AnalyticsKpiReferenceLineTranslation",
- "id": "string",
- "label": "string"
}, - "property2": {
- "$_type": "AnalyticsKpiReferenceLineTranslation",
- "id": "string",
- "label": "string"
}
}
}
], - "filtersType": "FIXED",
- "groupBy": [
- "CONVERSATION_RECIPIENT_ID"
], - "filters": {
- "$_type": "AvgHandlingTimeAnalyticsKpiFilterData",
- "startTimestamp": 0,
- "endTimestamp": 0,
- "conversationTemplateIds": [
- "string"
], - "conversationLocales": [
- "string"
], - "initialEngagementTypes": [
- "CHAT_REQUEST"
], - "recipientAgentPersonIds": [
- "string"
], - "recipientTeamIds": [
- "string"
], - "recipientNamedAreaIds": [
- "string"
], - "recipientAccountId": true,
- "resolutionTypes": [
- "CONVERSATION_ENDED"
], - "usedFeatures": [
- "SCREEN_SHARING"
], - "assignedAgentPersonIds": [
- "string"
], - "assignedAgentTeamIds": [
- "string"
]
}
}This endpoint is in preview mode.
Returns multiple analytics widgets matching the specified IDs.The list of IDs of the analytics widgets to return.
[- "string"
]{- "$_type": "AnalyticsWidgetList",
- "items": [
- {
- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "analyticsDashboardId": "string",
- "name": "string",
- "description": "string",
- "kpiType": "AVG_WAITING_TIME",
- "row": 0,
- "rowSpan": 0,
- "column": 0,
- "columnSpan": 0,
- "displaySingleValueAggregation": "SUM",
- "displaySingleValuePreviousPeriodComparison": true,
- "displayChart": "LINE",
- "initialTimeFrameType": "GLOBALLY_SYNCED",
- "initialTimeFrameSpan": "CURRENT_DAY",
- "initialTimeFrameLastDays": 0,
- "granularityType": "GLOBALLY_SYNCED",
- "fixedGranularity": "MINUTE",
- "translations": {
- "property1": {
- "$_type": "AnalyticsWidgetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "AnalyticsWidgetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "string",
- "analyticsWidgetId": "string",
- "label": "string",
- "value": 0,
- "color": "string",
- "displayType": "SOLID",
- "translations": {
- "property1": {
- "$_type": "AnalyticsKpiReferenceLineTranslation",
- "id": "string",
- "label": "string"
}, - "property2": {
- "$_type": "AnalyticsKpiReferenceLineTranslation",
- "id": "string",
- "label": "string"
}
}
}
], - "filtersType": "FIXED",
- "groupBy": [
- "CONVERSATION_RECIPIENT_ID"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": 0,
- "endTimestamp": 0,
- "conversationTemplateIds": [
- "string"
], - "conversationLocales": [
- "string"
], - "initialEngagementTypes": [
- "CHAT_REQUEST"
], - "recipientAgentPersonIds": [
- "string"
], - "recipientTeamIds": [
- "string"
], - "recipientNamedAreaIds": [
- "string"
], - "recipientAccountId": true,
- "waitingTimeOutcomes": [
- "ACCEPTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED"
], - "invitationAgentPersonIds": [
- "string"
], - "invitationTeamIds": [
- "string"
], - "invitationNamedAreaIds": [
- "string"
], - "invitationAccountId": true,
- "invitationAcceptingAgentPersonIds": [
- "string"
], - "invitationAcceptingAgentTeamIds": [
- "string"
]
}
}
]
}This endpoint is in preview mode.
Searches for analytics widgets matching the specified query.The query used for the search.
| $_type | string Default: "AnalyticsWidgetQuery" Value: "AnalyticsWidgetQuery" |
Array of any (AnalyticsWidgetSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (AnalyticsWidgetOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
search analytics widgets order by name ascending
{- "$_type": "AnalyticsWidgetQuery",
- "searchFilters": null,
- "orderBy": [
- {
- "$_type": "AnalyticsWidgetOrderBy",
- "field": "NAME",
- "order": "ASCENDING"
}
], - "offset": null,
- "limit": null
}search analytics widgets order by name ascending
{- "$_type": "AnalyticsWidgetResult",
- "hasMoreItems": false,
- "nextOffset": null,
- "items": [
- {
- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "analyticsDashboardId": "D60Uit_ARVWSrAvBEm0q1g",
- "name": "analytics-widget-1",
- "description": null,
- "kpiType": "AVG_WAITING_TIME",
- "row": 1,
- "rowSpan": 1,
- "column": 1,
- "columnSpan": 1,
- "displaySingleValueAggregation": "NONE",
- "displaySingleValuePreviousPeriodComparison": false,
- "displayChart": "LINE",
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "granularityType": "FIXED",
- "fixedGranularity": "DAY",
- "translations": { },
- "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "71awHFWOT0yOfLsbHQjxGQ",
- "analyticsWidgetId": "AIjjGLtOTJyvZjwxHb1DFw",
- "label": "label",
- "value": 0.6,
- "color": "white",
- "displayType": "SOLID",
- "translations": { }
}
], - "filtersType": "FIXED",
- "groupBy": [
- "WAITING_TIME_OUTCOME"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": null,
- "endTimestamp": null,
- "conversationTemplateIds": [
- "jvmIMmsASjOyUQYZd2QGyg",
- "69GUA3yMSsSFAxhP0YfIUw"
], - "conversationLocales": [
- "en",
- "de"
], - "initialEngagementTypes": [
- "CHAT_REQUEST",
- "CHAT_INVITE"
], - "recipientAgentPersonIds": null,
- "recipientTeamIds": null,
- "recipientNamedAreaIds": null,
- "recipientAccountId": null,
- "waitingTimeOutcomes": [
- "ACCEPTED",
- "ABORTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED",
- "REBOARDING_QUEUED"
], - "invitationAgentPersonIds": [
- "JIFIh_6bT6eoZUCZbEIbZQ",
- "J10Sq-d6Rzaxr842E0jvkA"
], - "invitationTeamIds": null,
- "invitationNamedAreaIds": null,
- "invitationAccountId": null,
- "invitationAcceptingAgentPersonIds": null,
- "invitationAcceptingAgentTeamIds": null
}
}, - {
- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "analyticsDashboardId": "D60Uit_ARVWSrAvBEm0q1g",
- "name": "analytics-widget-2",
- "description": null,
- "kpiType": "AVG_WAITING_TIME",
- "row": 1,
- "rowSpan": 1,
- "column": 2,
- "columnSpan": 1,
- "displaySingleValueAggregation": "NONE",
- "displaySingleValuePreviousPeriodComparison": false,
- "displayChart": "LINE",
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "granularityType": "FIXED",
- "fixedGranularity": "DAY",
- "translations": { },
- "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "71awHFWOT0yOfLsbHQjxGQ",
- "analyticsWidgetId": "AIjjGLtOTJyvZjwxHb1DFw",
- "label": "label",
- "value": 0.6,
- "color": "white",
- "displayType": "SOLID",
- "translations": { }
}
], - "filtersType": "FIXED",
- "groupBy": [
- "WAITING_TIME_OUTCOME"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": null,
- "endTimestamp": null,
- "conversationTemplateIds": [
- "jvmIMmsASjOyUQYZd2QGyg",
- "69GUA3yMSsSFAxhP0YfIUw"
], - "conversationLocales": [
- "en",
- "de"
], - "initialEngagementTypes": [
- "CHAT_REQUEST",
- "CHAT_INVITE"
], - "recipientAgentPersonIds": null,
- "recipientTeamIds": null,
- "recipientNamedAreaIds": null,
- "recipientAccountId": null,
- "waitingTimeOutcomes": [
- "ACCEPTED",
- "ABORTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED",
- "REBOARDING_QUEUED"
], - "invitationAgentPersonIds": [
- "JIFIh_6bT6eoZUCZbEIbZQ",
- "J10Sq-d6Rzaxr842E0jvkA"
], - "invitationTeamIds": null,
- "invitationNamedAreaIds": null,
- "invitationAccountId": null,
- "invitationAcceptingAgentPersonIds": null,
- "invitationAcceptingAgentTeamIds": null
}
}, - {
- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "analyticsDashboardId": "D60Uit_ARVWSrAvBEm0q1g",
- "name": "analytics-widget-3",
- "description": null,
- "kpiType": "AVG_WAITING_TIME",
- "row": 2,
- "rowSpan": 1,
- "column": 1,
- "columnSpan": 1,
- "displaySingleValueAggregation": "NONE",
- "displaySingleValuePreviousPeriodComparison": false,
- "displayChart": "LINE",
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "granularityType": "FIXED",
- "fixedGranularity": "DAY",
- "translations": { },
- "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "71awHFWOT0yOfLsbHQjxGQ",
- "analyticsWidgetId": "AIjjGLtOTJyvZjwxHb1DFw",
- "label": "label",
- "value": 0.6,
- "color": "white",
- "displayType": "SOLID",
- "translations": { }
}
], - "filtersType": "FIXED",
- "groupBy": [
- "WAITING_TIME_OUTCOME"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": null,
- "endTimestamp": null,
- "conversationTemplateIds": [
- "jvmIMmsASjOyUQYZd2QGyg",
- "69GUA3yMSsSFAxhP0YfIUw"
], - "conversationLocales": [
- "en",
- "de"
], - "initialEngagementTypes": [
- "CHAT_REQUEST",
- "CHAT_INVITE"
], - "recipientAgentPersonIds": null,
- "recipientTeamIds": null,
- "recipientNamedAreaIds": null,
- "recipientAccountId": null,
- "waitingTimeOutcomes": [
- "ACCEPTED",
- "ABORTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED",
- "REBOARDING_QUEUED"
], - "invitationAgentPersonIds": [
- "JIFIh_6bT6eoZUCZbEIbZQ",
- "J10Sq-d6Rzaxr842E0jvkA"
], - "invitationTeamIds": null,
- "invitationNamedAreaIds": null,
- "invitationAccountId": null,
- "invitationAcceptingAgentPersonIds": null,
- "invitationAcceptingAgentTeamIds": null
}
}, - {
- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "analyticsDashboardId": "D60Uit_ARVWSrAvBEm0q1g",
- "name": "analytics-widget-4",
- "description": null,
- "kpiType": "AVG_WAITING_TIME",
- "row": 2,
- "rowSpan": 1,
- "column": 2,
- "columnSpan": 1,
- "displaySingleValueAggregation": "NONE",
- "displaySingleValuePreviousPeriodComparison": false,
- "displayChart": "LINE",
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "granularityType": "FIXED",
- "fixedGranularity": "DAY",
- "translations": { },
- "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "71awHFWOT0yOfLsbHQjxGQ",
- "analyticsWidgetId": "AIjjGLtOTJyvZjwxHb1DFw",
- "label": "label",
- "value": 0.6,
- "color": "white",
- "displayType": "SOLID",
- "translations": { }
}
], - "filtersType": "FIXED",
- "groupBy": [
- "WAITING_TIME_OUTCOME"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": null,
- "endTimestamp": null,
- "conversationTemplateIds": [
- "jvmIMmsASjOyUQYZd2QGyg",
- "69GUA3yMSsSFAxhP0YfIUw"
], - "conversationLocales": [
- "en",
- "de"
], - "initialEngagementTypes": [
- "CHAT_REQUEST",
- "CHAT_INVITE"
], - "recipientAgentPersonIds": null,
- "recipientTeamIds": null,
- "recipientNamedAreaIds": null,
- "recipientAccountId": null,
- "waitingTimeOutcomes": [
- "ACCEPTED",
- "ABORTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED",
- "REBOARDING_QUEUED"
], - "invitationAgentPersonIds": [
- "JIFIh_6bT6eoZUCZbEIbZQ",
- "J10Sq-d6Rzaxr842E0jvkA"
], - "invitationTeamIds": null,
- "invitationNamedAreaIds": null,
- "invitationAccountId": null,
- "invitationAcceptingAgentPersonIds": null,
- "invitationAcceptingAgentTeamIds": null
}
}, - {
- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "analyticsDashboardId": "D60Uit_ARVWSrAvBEm0q1g",
- "name": "analytics-widget-5",
- "description": null,
- "kpiType": "AVG_WAITING_TIME",
- "row": 3,
- "rowSpan": 1,
- "column": 1,
- "columnSpan": 1,
- "displaySingleValueAggregation": "NONE",
- "displaySingleValuePreviousPeriodComparison": false,
- "displayChart": "LINE",
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "granularityType": "FIXED",
- "fixedGranularity": "DAY",
- "translations": { },
- "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "71awHFWOT0yOfLsbHQjxGQ",
- "analyticsWidgetId": "AIjjGLtOTJyvZjwxHb1DFw",
- "label": "label",
- "value": 0.6,
- "color": "white",
- "displayType": "SOLID",
- "translations": { }
}
], - "filtersType": "FIXED",
- "groupBy": [
- "WAITING_TIME_OUTCOME"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": null,
- "endTimestamp": null,
- "conversationTemplateIds": [
- "jvmIMmsASjOyUQYZd2QGyg",
- "69GUA3yMSsSFAxhP0YfIUw"
], - "conversationLocales": [
- "en",
- "de"
], - "initialEngagementTypes": [
- "CHAT_REQUEST",
- "CHAT_INVITE"
], - "recipientAgentPersonIds": null,
- "recipientTeamIds": null,
- "recipientNamedAreaIds": null,
- "recipientAccountId": null,
- "waitingTimeOutcomes": [
- "ACCEPTED",
- "ABORTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED",
- "REBOARDING_QUEUED"
], - "invitationAgentPersonIds": [
- "JIFIh_6bT6eoZUCZbEIbZQ",
- "J10Sq-d6Rzaxr842E0jvkA"
], - "invitationTeamIds": null,
- "invitationNamedAreaIds": null,
- "invitationAccountId": null,
- "invitationAcceptingAgentPersonIds": null,
- "invitationAcceptingAgentTeamIds": null
}
}
]
}This endpoint is in preview mode.
Updates the analytics widget in the system with the provided entity. The update fails if no analytics widget exists with the specified ID.The details to update the analytics widget with.
| $_type | string Default: "AvgHandlingTimeAnalyticsWidgetData" Value: "AvgHandlingTimeAnalyticsWidgetData" |
| id | string Widget ID. |
| accountId | string Account ID the widget belongs to. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity, incremented on each change. Updates must always be based on the latest version or they're rejected. When creating an object, the version can be omitted. |
| analyticsDashboardId | string Dashboard ID the widget belongs to. |
| name | string Name of the widget. Maximum length of 250 characters. Mandatory. |
| description | string Description of the widget. Maximum length of 500 characters. Optional. |
| kpiType required | string (EAnalyticsKpiType) enum-descriptions: ["AVG_WAITING_TIME: KPI for the average waiting time of a visitor.","AVG_HANDLING_TIME: KPI for the average handling time of an agent.","CONVERSATIONS_ENDED_COUNT: KPI for the number of ended conversations.","MESSAGES_COUNT: KPI for the number of messages.","COLLABORATION_LAYERS_COUNT: KPI for the number of collaboration layers.","CALLS_COUNT: KPI for the number of calls."] AVG_HANDLING_TIME AVG_WAITING_TIME AVG_HANDLING_TIME CONVERSATIONS_ENDED_COUNT MESSAGES_COUNT COLLABORATION_LAYERS_COUNT CALLS_COUNT |
| row | integer <int32> Row number where the widget is displayed. Integer value from 1 to 100 (inclusive). Widget placement must be within a 100x6 grid and must not overlap with another widget. Mandatory. |
| rowSpan | integer <int32> Displayed row span of the widget. Widget placement must be within a 100x6 grid and must not overlap with another widget. Mandatory. |
| column | integer <int32> Column number where the widget is displayed. Integer value from 1 to 6 (inclusive). Widget placement must be within a 100x6 grid and must not overlap with another widget. Mandatory. |
| columnSpan | integer <int32> Displayed column span of the widget. Widget placement must be within a 100x6 grid and must not overlap with another widget. Mandatory. |
| displaySingleValueAggregation | string (EAnalyticsKpiDisplaySingleValueAggregation) Enum: "SUM" "AVG" "NONE" enum-descriptions: ["SUM: Summary.","AVG: Average value calculation. If the KPI is count-based, the result is the average per selected granularity (total count divided by the number of time units). If the KPI is value-based, the result is calculated over the entire selected time range.","NONE: No aggregation."] |
| displaySingleValuePreviousPeriodComparison | boolean Flag indicating whether a single KPI value for the previous period is displayed for comparison with the current period. The timeframe used for the previous period depends on the aggregation type:
The same filters used for chart data calculation are applied. Grouping is not applied. |
| displayChart | string (EAnalyticsKpiDisplayChart) Enum: "LINE" "BAR_VERTICAL" "NONE" enum-descriptions: ["LINE: Line chart.","BAR_VERTICAL: Vertical bar chart.","NONE: No chart."] |
| initialTimeFrameType | string (EAnalyticsKpiTimeFrameType) Enum: "GLOBALLY_SYNCED" "TIME_SPAN" "LAST_DAYS" "CUSTOM" enum-descriptions: ["GLOBALLY_SYNCED: The timeframe is calculated based on dashboard configuration. Available only on widgets.","TIME_SPAN: A fixed time span, ending at the present time.","LAST_DAYS: A fixed number of last days, ending at the present time.","CUSTOM: A custom timeframe specified by a start timestamp and an end timestamp. Available on widgets and data requests."] |
| initialTimeFrameSpan | string (EAnalyticsKpiFixedTimeFrameSpan) Enum: "CURRENT_DAY" "WEEK_TO_DATE" "MONTH_TO_DATE" "QUARTER_TO_DATE" "YEAR_TO_DATE" enum-descriptions: ["CURRENT_DAY: The current day, starting at 00:00, up to the present time.","WEEK_TO_DATE: The current week, starting at 00:00 on Monday, up to the present time.","MONTH_TO_DATE: The current month, starting at 00:00 on the first day of the month, up to the present time.","QUARTER_TO_DATE: The current quarter, starting at 00:00 on the first day of the quarter, up to the present time.","YEAR_TO_DATE: The current year, starting at 00:00 on the first day of the year, up to the present time."] |
| initialTimeFrameLastDays | integer <int32> Initial number of last days for the timeframe. Mandatory if the timeframe type is set to |
| granularityType | string (EAnalyticsKpiGranularityType) Enum: "GLOBALLY_SYNCED" "FIXED" enum-descriptions: ["GLOBALLY_SYNCED: Granularity is calculated based on the dashboard configuration.","FIXED: Widget uses its own fixed granularity configuration."] |
| fixedGranularity | string (EAnalyticsKpiFixedGranularity) Enum: "MINUTE" "HOUR" "DAY" "WEEK" "MONTH" "WHOLE_TIMEFRAME" enum-descriptions: ["MINUTE: Minute.","HOUR: Hour.","DAY: Day.","WEEK: Week.","MONTH: Month.","WHOLE_TIMEFRAME: Whole timeframe."] |
object A map of localized versions of the widget's name and description. | |
Array of objects (AnalyticsKpiReferenceLine) [ items ] A list of reference lines displayed on the chart. Must be null if display chart is set to | |
| filtersType | string (EAnalyticsKpiFiltersType) Enum: "FIXED" "GLOBALLY_SYNCED" enum-descriptions: ["FIXED: Only the filters configured for the widget are used for KPI calculation. Global dashboard filters are ignored.","GLOBALLY_SYNCED: Only filters present in both the widget and the global dashboard filters are used for the KPI calculation. Filters not in both sets are ignored."] |
| groupBy | Array of strings (EAvgHandlingTimeGroupBy) Items Enum: "CONVERSATION_RECIPIENT_ID" "CONVERSATION_TEMPLATE_ID" "CONVERSATION_LOCALE" "INITIAL_ENGAGEMENT_TYPE" "ASSIGNED_AGENT_PERSON_ID" "ASSIGNED_AGENT_TEAM_ID" "RESOLUTION_TYPE" Specifies how results are grouped for the average handling time KPI. Currently only the first value of the list is used. |
object (AvgHandlingTimeAnalyticsKpiFilterData) Data model object representing filters for the KPI calculation of average handling time Filter logic:
|
update analytics widget
{- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "analyticsDashboardId": "D60Uit_ARVWSrAvBEm0q1g",
- "name": "my-analytics-widget",
- "description": null,
- "kpiType": "AVG_WAITING_TIME",
- "row": 1,
- "rowSpan": 1,
- "column": 1,
- "columnSpan": 1,
- "displaySingleValueAggregation": "NONE",
- "displaySingleValuePreviousPeriodComparison": false,
- "displayChart": "LINE",
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "granularityType": "FIXED",
- "fixedGranularity": "DAY",
- "translations": { },
- "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "71awHFWOT0yOfLsbHQjxGQ",
- "analyticsWidgetId": "AIjjGLtOTJyvZjwxHb1DFw",
- "label": "label",
- "value": 0.6,
- "color": "white",
- "displayType": "SOLID",
- "translations": { }
}
], - "filtersType": "FIXED",
- "groupBy": [
- "WAITING_TIME_OUTCOME"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": null,
- "endTimestamp": null,
- "conversationTemplateIds": [
- "jvmIMmsASjOyUQYZd2QGyg",
- "69GUA3yMSsSFAxhP0YfIUw"
], - "conversationLocales": [
- "en",
- "de"
], - "initialEngagementTypes": [
- "CHAT_REQUEST",
- "CHAT_INVITE"
], - "recipientAgentPersonIds": null,
- "recipientTeamIds": null,
- "recipientNamedAreaIds": null,
- "recipientAccountId": null,
- "waitingTimeOutcomes": [
- "ACCEPTED",
- "ABORTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED",
- "REBOARDING_QUEUED"
], - "invitationAgentPersonIds": [
- "JIFIh_6bT6eoZUCZbEIbZQ",
- "J10Sq-d6Rzaxr842E0jvkA"
], - "invitationTeamIds": null,
- "invitationNamedAreaIds": null,
- "invitationAccountId": null,
- "invitationAcceptingAgentPersonIds": null,
- "invitationAcceptingAgentTeamIds": null
}
}update analytics widget
{- "$_type": "AvgWaitingTimeAnalyticsWidgetData",
- "id": "D60Uit_ARVWSrAvBEm0q1g",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "analyticsDashboardId": "D60Uit_ARVWSrAvBEm0q1g",
- "name": "my-analytics-widget",
- "description": null,
- "kpiType": "AVG_WAITING_TIME",
- "row": 1,
- "rowSpan": 1,
- "column": 1,
- "columnSpan": 1,
- "displaySingleValueAggregation": "NONE",
- "displaySingleValuePreviousPeriodComparison": false,
- "displayChart": "LINE",
- "initialTimeFrameType": "TIME_SPAN",
- "initialTimeFrameSpan": "MONTH_TO_DATE",
- "initialTimeFrameLastDays": null,
- "granularityType": "FIXED",
- "fixedGranularity": "DAY",
- "translations": { },
- "referenceLines": [
- {
- "$_type": "AnalyticsKpiReferenceLine",
- "id": "71awHFWOT0yOfLsbHQjxGQ",
- "analyticsWidgetId": "AIjjGLtOTJyvZjwxHb1DFw",
- "label": "label",
- "value": 0.6,
- "color": "white",
- "displayType": "SOLID",
- "translations": { }
}
], - "filtersType": "FIXED",
- "groupBy": [
- "WAITING_TIME_OUTCOME"
], - "filters": {
- "$_type": "AvgWaitingTimeAnalyticsKpiFilterData",
- "startTimestamp": null,
- "endTimestamp": null,
- "conversationTemplateIds": [
- "jvmIMmsASjOyUQYZd2QGyg",
- "69GUA3yMSsSFAxhP0YfIUw"
], - "conversationLocales": [
- "en",
- "de"
], - "initialEngagementTypes": [
- "CHAT_REQUEST",
- "CHAT_INVITE"
], - "recipientAgentPersonIds": null,
- "recipientTeamIds": null,
- "recipientNamedAreaIds": null,
- "recipientAccountId": null,
- "waitingTimeOutcomes": [
- "ACCEPTED",
- "ABORTED"
], - "waitingTimeTypes": [
- "INITIALLY_QUEUED",
- "REBOARDING_QUEUED"
], - "invitationAgentPersonIds": [
- "JIFIh_6bT6eoZUCZbEIbZQ",
- "J10Sq-d6Rzaxr842E0jvkA"
], - "invitationTeamIds": null,
- "invitationNamedAreaIds": null,
- "invitationAccountId": null,
- "invitationAcceptingAgentPersonIds": null,
- "invitationAcceptingAgentTeamIds": null
}
}Creates the given entity in the system. The ID of the entity is ignored for create operations, a new one is generated.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The entity to create
| $_type | string Default: "ApiKey" Value: "ApiKey" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| apiKey | string Api key string. When creating the entity it can be set to a specific value or omitted (in the second case a random value will be generated by the server). Can not be updated. |
| name | string Name of the api key. Maximum of 250 characters. Can be omitted, but should not. |
| description | string Description of the api key. E.g. where or for what it is used. Maximum of 500 characters. Can be omitted. |
object expand-query-key: configuration type: Map The entity's configuration properties. Only contains values when the 'expand' query parameter is used with the value 'configuration'. Not filled in webhook events. | |
object expand-query-key: text type: Map The entity's text properties. Only contains values when the 'expand' query parameter is used with the value 'text'. Not filled in webhook events. | |
object expand-query-key: metadata type: Map The entity's metadata properties. Only contains values when the 'expand' query parameter is used with the value 'metadata'. Not filled in webhook events. |
{- "$_type": "ApiKey",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "apiKey": "string",
- "name": "string",
- "description": "string",
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}{- "$_type": "ApiKey",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "apiKey": "string",
- "name": "string",
- "description": "string",
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}Deletes the API key with the given ID
| apiKeyId required | string The ID of the API key which should be deleted |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Returns the api key object for the given api key string in the current account
| apiKey | string The api key for which the object should be returned |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "ApiKey",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "apiKey": "string",
- "name": "string",
- "description": "string",
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}Returns the default API key for the current account
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "ApiKey",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "apiKey": "string",
- "name": "string",
- "description": "string",
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}Returns the API key with the given ID
| apiKeyId required | string ID of the API key which should be returned |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "ApiKey",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "apiKey": "string",
- "name": "string",
- "description": "string",
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}Gets a list of API keys with the given IDs. IDs that can't be found are ignored.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The IDs of the API keys to fetch
[- "string"
]{- "$_type": "ApiKeyList",
- "items": [
- {
- "$_type": "ApiKey",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "apiKey": "string",
- "name": "string",
- "description": "string",
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}
]
}Search for api keys in the current account
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| $_type | string Default: "ApiKeyQuery" Value: "ApiKeyQuery" |
Array of any (ApiKeySearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (ApiKeyOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "ApiKeyQuery",
- "searchFilters": [
- {
- "$_type": "ApiKeyApiKeySearchFilter",
- "field": "NAME",
- "operator": {
- "$_type": "EqualsStringOperator",
- "type": "EQUALS",
- "value": "string"
}
}
], - "orderBy": [
- {
- "$_type": "ApiKeyOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "ApiKeyResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "ApiKey",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "apiKey": "string",
- "name": "string",
- "description": "string",
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}
]
}Updates the entity in the system with the given entity.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The entity to update
| $_type | string Default: "ApiKey" Value: "ApiKey" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| apiKey | string Api key string. When creating the entity it can be set to a specific value or omitted (in the second case a random value will be generated by the server). Can not be updated. |
| name | string Name of the api key. Maximum of 250 characters. Can be omitted, but should not. |
| description | string Description of the api key. E.g. where or for what it is used. Maximum of 500 characters. Can be omitted. |
object expand-query-key: configuration type: Map The entity's configuration properties. Only contains values when the 'expand' query parameter is used with the value 'configuration'. Not filled in webhook events. | |
object expand-query-key: text type: Map The entity's text properties. Only contains values when the 'expand' query parameter is used with the value 'text'. Not filled in webhook events. | |
object expand-query-key: metadata type: Map The entity's metadata properties. Only contains values when the 'expand' query parameter is used with the value 'metadata'. Not filled in webhook events. |
{- "$_type": "ApiKey",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "apiKey": "string",
- "name": "string",
- "description": "string",
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}{- "$_type": "ApiKey",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "apiKey": "string",
- "name": "string",
- "description": "string",
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}Search for audit log entries
| $_type | string Default: "AuditChangeQuery" Value: "AuditChangeQuery" |
Array of any (AuditChangeSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (AuditChangeOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "AuditChangeQuery",
- "searchFilters": [
- {
- "$_type": "CreationTimestampAuditChangeSearchFilter",
- "field": "CREATION_TIMESTAMP",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
], - "orderBy": [
- {
- "$_type": "AuditChangeOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "AuditChangeResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "AuditChange",
- "id": "string",
- "creationTimestamp": 0,
- "accountId": "string",
- "interactionType": "API",
- "interactionName": "string",
- "userName": "string",
- "userId": "string",
- "userRole": "string",
- "userAnonymous": true,
- "userVirtual": true,
- "userPropagated": true,
- "userServicePrincipal": true,
- "userAuthenticatedWithApiSecret": true,
- "userImpersonationType": "string",
- "impersonationAccountId": "string",
- "impersonationUserId": "string",
- "userAuthInfo": "string",
- "sourceIp": "string",
- "productVersion": "string",
- "changeType": "CREATE",
- "entityType": "string",
- "entityName": "string",
- "entityId": "string",
- "oldState": "string",
- "newState": "string",
- "ownerType": "GLOBAL",
- "ownerId": "string",
- "ownerEntity": "string",
- "globalChange": true,
- "accountChange": true
}
]
}Service to log in with a user or to switch to other accounts/users by impersonating them
Authentication using a previously created authentication token from (createAuthenticationToken). Will create an authentication session if authentication succeeds (includes setting an authentication cookie)
| authenticationToken | string token to login with |
| redirectOnSuccess | string redirection URL when the operation is successful |
| redirectOnFailure | string redirection URL when the operation is not successful |
{- "$_type": "LoginResult",
- "success": true
}Creates a new authentication token, which can later be used for login.
| username | string The username for which the token is created |
| password | string The password of the user to authenticate |
| tokenTtl | string (EAuthenticationTokenTtl) Enum: "STANDARD" "EXTENDED" enum-descriptions: ["STANDARD: Standard authentication token TTL (short-lived default)","EXTENDED: Extended authentication token TTL (longer duration for trusted devices)"] |
Create a token for a given username and password
{- "username": "r@email.com",
- "password": "L0remPf18!",
- "tokenTtl": null
}{- "$_type": "AuthenticationTokenCreationResult",
- "token": "string",
- "deviceIdentifier": "string",
- "cookiePrefix": "string"
}Creates a new authentication token for the current logged in user.
{- "$_type": "AuthenticationTokenCreationResult",
- "token": "string",
- "deviceIdentifier": "string",
- "cookiePrefix": "string"
}Returns the current person
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}Impersonates with another user either via username or userid (one of the two may be null).
| username | string If set and userid is set to null, the user is searched by the name |
| userId | string If set, the username is ignored and the user for the given id is impersonated |
| keepRole | boolean If true, the impersonated user keeps the SUPER_ADMIN role even if they don't normally have it. |
| redirectOnSuccess | string redirection URL when the operation is successful |
| redirectOnFailure | string redirection URL when the operation is not successful |
Impersonate as user 'admin' without keeping the superadmin rights
{- "username": "admin",
- "userId": null,
- "keepRole": false,
- "redirectOnSuccess": null,
- "redirectOnFailure": null
}{- "$_type": "LoginResult",
- "success": true
}Login using username and password credentials. Will create an authentication session if login succeeds (includes setting an authentication cookie)
| username | string user to use for login |
| password | string password to use for login |
| redirectOnSuccess | string redirection URL when the operation is successful |
| redirectOnFailure | string redirection URL when the operation is not successful |
Login with username and password
{- "username": "r@email.com",
- "password": "L0remPf18!",
- "redirectOnSuccess": null,
- "redirectOnFailure": null
}{- "$_type": "LoginResult",
- "success": true
}Start a session using a signed JWT as the login credentials. A logout token can be provided in the claim set of the signed JWT. This logout token is stored in the authentication session to be used later for the logoutWithSecureToken call. A new user with the role WEBUSER is created automatically. If authentication is successful, the response includes an authentication cookie; the response body is empty. x-unblu-apikey is a mandatory GET parameter for this operation, even though it is not part of the OpenAPI specification.
| $_type | string Default: "SecureTokenRequest" Value: "SecureTokenRequest" |
| token | string |
| type | string (ESecureTokenType) Enum: "JWT" "OIDC_ACCESS_TOKEN" enum-descriptions: ["JWT","OIDC_ACCESS_TOKEN"] Token type |
{- "$_type": "SecureTokenRequest",
- "token": "string",
- "type": "JWT"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Call this to log out the current user and terminate all connections between the calling device and the Collaboration Server pods.
For locally authenticated users, the authentication cookie is removed from the response.
In the case of ID propagation, this endpoint can be used by a proxy or firewall when the user logs out from the webpage that integrates Unblu. The proxy or firewall can use it to terminate all connections between the Collaboration Server and the device being logged out. This also causes the user to no longer appear as online in Unblu. If the endpoint isn't called, the connections are terminated after they time out.
When called for ID propagation, this request should be the last one for the user. No further requests should reach the Unblu server or they may result in the user appearing to be online again.
Be sure to send all of the user's cookies and authentication parameters in the request. This ensures that the device whose connections should be terminated can be identified correctly.
| redirectOnSuccess | string redirection URL when the operation is successful |
Logout with a redirection to unblu.com
{
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Call this to log out using a signed JWT containing the logout token in the claim set. Use this to allow backend server(s) to log out from visitor SSO. x-unblu-apikey is a mandatory GET parameter for this operation, even though it is not part of the OpenAPI specification.
| $_type | string Default: "SecureTokenRequest" Value: "SecureTokenRequest" |
| token | string |
| type | string (ESecureTokenType) Enum: "JWT" "OIDC_ACCESS_TOKEN" enum-descriptions: ["JWT","OIDC_ACCESS_TOKEN"] Token type |
{- "$_type": "SecureTokenRequest",
- "token": "string",
- "type": "JWT"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Resets the current impersonation. Will do nothing if there is no impersonation.
| redirectOnSuccess | string redirection URL when the operation is successful. Also if nothing needed to be done. |
| redirectOnFailure | string redirection URL when the operation is not successful |
Reset impersonation and redirect to the Global Configuration page on success
{- "redirectOnSuccess": "/app/config-global",
- "redirectOnFailure": null
}{- "$_type": "LoginResult",
- "success": true
}Changes the language of the current user. It is stored also in the returned cookies
Note: A reload should be done afterwards.
| locale | string The new locale in the language-tag format (as defined in the IETF BCP 47) which should be used (e.g. en - english, de - german, fr - french, it - italian) |
Change the default locale to french
{- "locale": "fr"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Switches the account in a given authentication session. If successful, the user is treated, as if he/she was a member of the target account.
| accountId | string the account id to impersonate on |
| redirectOnSuccess | string redirection URL when the operation is successful |
| redirectOnFailure | string redirection URL when the operation is not successful |
Switch to account with a redirect to the Account Configuration page on success
{- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "redirectOnSuccess": "/app/config-account",
- "redirectOnFailure": null
}{- "$_type": "LoginResult",
- "success": true
}Returns the current availability state for a given user, account, named area, and locale.
| userId | string If specified, the availability will be returned for the specified user only |
| locale | string The locale in form of a BCP 47 language tag (including the region if available) to check the availability for. If omitted, the service will check the availability of agents who did not filter the queue by language. |
| namedAreaSiteId | string The site ID (meta tag or domain) of the named area to check the availability for. If omitted, the service will check the availability of agents who did not filter the queue by named area. |
| apiKey | string API key to specify the account; mandatory when called as an anonymous user |
| ignoreAgentAvailabilityOverride | boolean If true, the configuration property "com.unblu.agentavailability.availabilityOverride" will be ignored when evaluating agent availability. Defaults to false. |
{- "$_type": "AgentAvailabilityStateData",
- "availabilityState": "AVAILABLE",
- "isAvailable": true
}Returns the avatar with the given ID
| avatarId required | string ID of the avatar which should be returned |
{- "$_type": "Avatar",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "imageZoomFactor": 0,
- "imageXPositionRatio": 0,
- "imageYPositionRatio": 0,
- "imageRotationAngle": 0,
- "imageData": "string"
}Service to manage all kind of bots. Additionally the bots use this service to interact with a conversation/dialog.
Hides the typing indicator for the dialog bot.
If the typing indicator wasn't displayed, calling the endpoint has no effect.
| dialogToken | string The token that belongs to the bot's dialog |
{- "dialogToken": "string"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Cancels all pending questions in a bot dialog.
| dialogToken | string The token belonging to the dialog |
{- "dialogToken": "string"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Cancels a bot's question message. If the message is not from a bot, the call will throw an error.
| conversationId | string The ID of the conversation the question message was sent to |
| questionMessageId | string The ID of the question message that will be canceled |
{- "conversationId": "string",
- "questionMessageId": "string"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Creates a new dialog bot that can be used for conversation onboarding, reboarding and offboarding.
The dialog bot to create.
| $_type | string Default: "CopilotDialogBotData" Value: "CopilotDialogBotData" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string Name of the dialog bot. Maximum length of 250 characters. Can not be omitted. |
| description | string Description of the dialog bot. Maximum length of 500 characters. Can be omitted. |
| botPersonId | string ID of the person representing the bot |
| onboardingOrder | integer <int32> Defines the onboarding order of this bot. If more than one bots want to participate in an onboarding, the one with the lowest order value will go first. |
| reboardingOrder | integer <int32> Defines the reboarding order of this bot. If more than one bots want to participate in an reboarding, the one with the lowest order value will go first. |
| offboardingOrder | integer <int32> Defines the offboarding priority of this bot. If more than one bots want to participate in an offboarding, the one with the lowest order value will go first. |
| onboardingFilter | string (EBotDialogFilter) Enum: "VISITORS" "AGENTS" "BOTH" "NONE" enum-descriptions: ["VISITORS: Only handle dialogs that with visitors as the counterpart.","AGENTS: Only handle dialogs with agents as the counterpart","BOTH: Handle dialogs with both agents and visitors as the counterpart","NONE: Don't handle any dialogs."] |
| reboardingEnabled | boolean Defines if this bot can reboard. A reboarding offer will be sent only if this flag is enabled, giving the bot the chance to be part of the reboarding. |
| offboardingFilter | string (EBotDialogFilter) Enum: "VISITORS" "AGENTS" "BOTH" "NONE" enum-descriptions: ["VISITORS: Only handle dialogs that with visitors as the counterpart.","AGENTS: Only handle dialogs with agents as the counterpart","BOTH: Handle dialogs with both agents and visitors as the counterpart","NONE: Don't handle any dialogs."] |
| needsCounterpartPresence | boolean Defines if the counterpart has to be online for the onboarding to start. E.g. if questions have to be answered live. |
| onTimeoutBehavior | string (EBotDialogTimeoutBehavior) Enum: "ABORT" "HAND_OFF" enum-descriptions: ["ABORT: Abort on-boarding the conversation when it comes to timeout. Default for internal bots.","HAND_OFF: Proceed further in on-boarding the conversation when it comes to timeout. Default for external bots."] Defines what should happen with the conversation when it comes to timeout during on-boarding. |
| retryCount | integer <int64> Defines the number of retries for failed outbound requests. If omitted, the default is 0. |
| retryDelay | integer <int64> Defines the delay between retries for failed outbound requests. If omitted, the default is 0. |
| type required | string (EBotType) enum-descriptions: ["COPILOT","CUSTOM"] Type of a dialog bot COPILOT COPILOT CUSTOM |
| authToken | string The Authentication Token for the Microsoft Copilot Agent. Maximum length: 2000 characters |
| copilotId | string The Copilot Agent ID for selecting the correct copilot. Maximum length: 36 characters |
| copilotEnvironmentId | string The Microsoft environment ID. Used by Microsoft Copilot. Maximum length: 2000 characters |
| active | boolean Specifies whether the bot is active |
| outboundEndpoint | string The endpoint url of the webhook registration. To this url the requests for the webhook events are done. Maximum length of 4000 characters. Based on the configured filters/flags the following events will be sent to the endpoint:
|
| outboundTimeoutMillis | integer <int64> The timeout for the requests sent to the outbound endpoint. Mandatory for webhookApiVersion greater than 3. |
| outboundApiVersion | string (EWebApiVersion) Enum: "V1" "V2" "V3" "V4" enum-descriptions: ["V1: Version 1 of the Web-API. Introduced with Unblu 4.x.","V2: Version 2 of the Web-API. Introduced with Unblu 5.","V3: Version 3 of the Web-API. Introduced with Unblu 6.","V4: Version 4 of the Web-API. Introduced with Unblu 8."] Version of the Web-API. Version of API corresponds to a path element of the request URL. E.g.: /rest/v3/<service>/... |
Create a new copilot dialog bot
{- "$_type": "CopilotDialogBotData",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "accountId": null,
- "name": "adminApi_createBot_botCreated_",
- "description": null,
- "botPersonId": "BoL9zZSbQeGGXMfCLxWZ4g",
- "onboardingOrder": 10,
- "reboardingOrder": 10,
- "offboardingOrder": 10,
- "onboardingFilter": "VISITORS",
- "reboardingEnabled": false,
- "offboardingFilter": "NONE",
- "needsCounterpartPresence": false,
- "onTimeoutBehavior": "HAND_OFF",
- "retryCount": null,
- "retryDelay": null,
- "type": "COPILOT",
- "authToken": "some auth token",
- "copilotId": "Some copilot id",
- "copilotEnvironmentId": "eaaz3AiSRp6wIB2wGq6L0g",
- "active": true,
- "outboundTimeoutMillis": 5000,
- "outboundApiVersion": "V4"
}New copilot dialog bot
{- "$_type": "CopilotDialogBotData",
- "id": "c1a-ED06Dbat9daFBtC4l85",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "adminApi_createBot_botCreated_",
- "description": null,
- "botPersonId": "BoL9zZSbQeGGXMfCLxWZ4g",
- "onboardingOrder": 10,
- "reboardingOrder": 10,
- "offboardingOrder": 10,
- "onboardingFilter": "VISITORS",
- "reboardingEnabled": false,
- "offboardingFilter": "NONE",
- "needsCounterpartPresence": false,
- "onTimeoutBehavior": "HAND_OFF",
- "retryCount": 0,
- "retryDelay": 0,
- "type": "COPILOT",
- "authToken": "some auth token",
- "copilotId": "Some copilot id",
- "copilotEnvironmentId": "eaaz3AiSRp6wIB2wGq6L0g",
- "active": true,
- "outboundTimeoutMillis": 5000,
- "outboundApiVersion": "V4"
}{- "$_type": "BotDialogClosedEvent",
- "timestamp": 0,
- "eventType": "string",
- "accountId": "string",
- "dialogToken": "string",
- "conversationId": "string",
- "counterpartPersonId": "string"
}Deletes an existing dialog bot
| dialogBotId required | string The ID of the dialog bot which should be deleted |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Marks a message as delivered to the bot.
Note: If the message is also read use the dialogMessageRead end point directly as it will also mark the message as delivered.
| dialogToken | string The token that belongs to the bot's dialog |
| messageId | string The ID of the delivered message |
Mark a message as delivered
{- "dialogToken": "AcviDb210C5BoFd6e_79oan-c-daOogO9iQmqUbgNzZN4X2A",
- "messageId": "mGesYagET_2GipaDGinA9A"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Marks a message as read to the bot.
Note: This will also mark the message as delivered, if this hasn't happened yet.
| dialogToken | string The token that belongs to the bot's dialog |
| messageId | string The ID of the message that was read |
Mark a message as read
{- "dialogToken": "AcviDb210C5BoFd6e_79oan-c-daOogO9iQmqUbgNzZN4X2A",
- "messageId": "mGesYagET_2GipaDGinA9A"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Ends the dialog. Depending on the reason given and whether the dialog takes place during onboarding, reboarding, or offboarding, this will have specific effects. See the list below.
Reason: EBotDialogFinishReason.HAND_OFF:
EBotDialogFinishReason.SOLVED:EBotDialogFinishReason.ABORTED:| dialogToken | string The dialog token contained in each bot dialog webhook. |
| reason | string (EBotDialogFinishReason) Enum: "HAND_OFF" "SOLVED" "ABORTED" enum-descriptions: ["HAND_OFF: The bot is done with his part and the next bot can to the on-, re- or offboarding.","SOLVED: The problem of the dialog was solved and therefore no further bots are invoked.","ABORTED: The dialog was not successful and the on-, re- or offboarding has to be aborted."] Reason why a bot finished a dialog. |
Hand off the dialog to an agent
{- "dialogToken": "AcviDb210C5BoFd6e_79oan-c-daOogO9iQmqUbgNzZN4X2A",
- "reason": "HAND_OFF"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Searches for an existing dialog bot with the given name.
| name | string Name of the dialog bot. |
Dialog bot
{- "$_type": "CustomDialogBotData",
- "id": "c1a-ED06Dbat9daFBtC4l85",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "test-bot-disabled-",
- "description": null,
- "botPersonId": "BoL9zZSbQeGGXMfCLxWZ4g",
- "onboardingOrder": 10,
- "reboardingOrder": 10,
- "offboardingOrder": 10,
- "onboardingFilter": "NONE",
- "reboardingEnabled": false,
- "offboardingFilter": "NONE",
- "needsCounterpartPresence": false,
- "onTimeoutBehavior": "HAND_OFF",
- "retryCount": 0,
- "retryDelay": 0,
- "type": "CUSTOM",
- "webhookStatus": "INACTIVE",
- "outboundTimeoutMillis": 3000,
- "webhookApiVersion": "V4",
- "webhookSecret": null,
- "messageStateHandledExternally": false,
- "automaticTypingStateHandlingEnabled": true
}Reads an existing dialog bot.
| dialogBotId required | string The ID of the dialog bot. |
Dialog bot
{- "$_type": "CustomDialogBotData",
- "id": "c1a-ED06Dbat9daFBtC4l85",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "test-bot-disabled-",
- "description": null,
- "botPersonId": "BoL9zZSbQeGGXMfCLxWZ4g",
- "onboardingOrder": 10,
- "reboardingOrder": 10,
- "offboardingOrder": 10,
- "onboardingFilter": "NONE",
- "reboardingEnabled": false,
- "offboardingFilter": "NONE",
- "needsCounterpartPresence": false,
- "onTimeoutBehavior": "HAND_OFF",
- "retryCount": 0,
- "retryDelay": 0,
- "type": "CUSTOM",
- "webhookStatus": "INACTIVE",
- "outboundTimeoutMillis": 3000,
- "webhookApiVersion": "V4",
- "webhookSecret": null,
- "messageStateHandledExternally": false,
- "automaticTypingStateHandlingEnabled": true
}Limits the length of a message the counterpart can send to the bot in a dialog.
The value is reset automatically when the bot hands off the dialog.
| dialogToken | string The dialog token included in each bot dialog webhook |
| maxChatInputLength | integer <int32> The maximum number of characters in a message |
{- "dialogToken": "string",
- "maxChatInputLength": 0
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Search for dialog bots in the current account
| $_type | string Default: "DialogBotQuery" Value: "DialogBotQuery" |
Array of any (DialogBotSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (DialogBotOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "DialogBotQuery",
- "searchFilters": [
- {
- "$_type": "BotPersonIdDialogBotSearchFilter",
- "field": "NAME",
- "operator": {
- "$_type": "EqualsIdOperator",
- "type": "EQUALS",
- "value": "string"
}
}
], - "orderBy": [
- {
- "$_type": "DialogBotOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "DialogBotResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "CustomDialogBotData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "botPersonId": "string",
- "onboardingOrder": 0,
- "reboardingOrder": 0,
- "offboardingOrder": 0,
- "onboardingFilter": "VISITORS",
- "reboardingEnabled": true,
- "offboardingFilter": "VISITORS",
- "needsCounterpartPresence": true,
- "onTimeoutBehavior": "ABORT",
- "retryCount": 0,
- "retryDelay": 0,
- "type": "COPILOT",
- "webhookStatus": "ACTIVE",
- "webhookEndpoint": "string",
- "outboundTimeoutMillis": 0,
- "webhookApiVersion": "V1",
- "webhookSecret": "string",
- "messageStateHandledExternally": true,
- "automaticTypingStateHandlingEnabled": true
}
]
}Sends a message as a bot into an ongoing dialog.
It can only be used after the bot received the BotDialogOpenEvent webhook for this dialog.
The message to send
| $_type | string Default: "BotDialogPostMessage" Value: "BotDialogPostMessage" |
| dialogToken | string The token belonging to the dialog the bot wants the message to |
any (PostMessageData) Base class for all conversation messages sent to the collaboration server. Can be one of |
{- "$_type": "BotDialogPostMessage",
- "dialogToken": "string",
- "messageData": {
- "$_type": "ListPostMessageData",
- "type": "TEXT",
- "fallbackText": "string",
- "locale": "string",
- "header": {
- "$_type": "MessageHeader",
- "imageUrl": "string",
- "imageAltText": "string",
- "title": "string",
- "body": "string",
- "bodyTextType": "SIMPLE_TEXT",
- "availableTranslations": [
- {
- "$_type": "MessageHeaderTranslation",
- "title": "string",
- "body": "string",
- "imageAltText": "string",
- "locale": "string"
}
]
}, - "items": [
- {
- "$_type": "PostListMessageCardItemData",
- "imageUrl": "string",
- "imageAltText": "string",
- "title": "string",
- "body": "string",
- "bodyTextType": "SIMPLE_TEXT",
- "action": {
- "$_type": "MessageAction",
- "actionType": "LINK_INTERNAL",
- "label": "string",
- "value": "string",
- "availableTranslations": [
- {
- "$_type": "MessageActionTranslation",
- "label": "string",
- "locale": "string"
}
]
}
}
], - "actions": [
- {
- "$_type": "MessageAction",
- "actionType": "LINK_INTERNAL",
- "label": "string",
- "value": "string",
- "availableTranslations": [
- {
- "$_type": "MessageActionTranslation",
- "label": "string",
- "locale": "string"
}
]
}
], - "quickReplies": [
- {
- "$_type": "QuickReply",
- "text": "string",
- "availableTranslations": [
- {
- "$_type": "QuickReplyTranslation",
- "text": "string",
- "locale": "string"
}
]
}
]
}
}{- "$_type": "SendMessageResult",
- "messageId": "string"
}Sends a message to a conversation as a bot.
This can be used at any time during a conversation. It is not related to bot dialogs.
The message to send
| $_type | string Default: "BotPostMessage" Value: "BotPostMessage" |
| conversationId | string The id of the conversation to which this message belongs to |
| senderPersonId | string ID of the bot person that sent the message. |
| recipientPersonIds | Array of strings Person IDs of the recipients of the message. If it is null, all active participations are recipients |
| internal | boolean Flag indicating whether the message is internal and only visible to agents. If 'false', the message is public and visible for everyone. Cannot be set for REPLY message type. |
| replyToMessageId | string Optional ID that identifies the message that this message is replying to |
any (PostMessageData) Base class for all conversation messages sent to the collaboration server. Can be one of |
Send card message from the bot
{- "$_type": "BotPostMessage",
- "conversationId": "AcviDb210C5BoFd6e_79oan",
- "senderPersonId": "nta30CBa-6d1a89cE57Db_F",
- "recipientPersonIds": [
- "PtwoVi1O-2G9FFCR_rZLKQ"
], - "internal": false,
- "replyToMessageId": null,
- "messageData": {
- "$_type": "CardPostMessageData",
- "type": "CARD",
- "fallbackText": "This is the plain body text",
- "locale": null,
- "imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQBAMAAABykSv/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAASUExURfolAT39/6qSgZ2hko6xpLeDbrzfdCUAAAFvSURBVHja7c8BDYBADASwBQfvAAkkSOCRgH8rmLgwAq2D1lYZy+hVIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiLvjxx7xuyOjI8QERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERedB5hXRH1koRERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERH5S2Sm3Pdeq7vUBkC2AAAAAElFTkSuQmCC",
- "imageAltText": "test image",
- "title": "Title",
- "body": "This is the **body text** with markdown",
- "bodyTextType": "MARKDOWN",
- "actions": [
- {
- "$_type": "MessageAction",
- "actionType": "LINK_INTERNAL",
- "label": "Unblu homepage",
- "availableTranslations": null
}, - {
- "$_type": "MessageAction",
- "actionType": "LINK_EXTERNAL",
- "label": "Wikipedia",
- "availableTranslations": null
}, - {
- "$_type": "MessageAction",
- "actionType": "LINK_COBROWSABLE",
- "label": "Cobrowse Unblu homepage",
- "availableTranslations": null
}, - {
- "$_type": "MessageAction",
- "actionType": "REPLY_MESSAGE",
- "label": "More info",
- "value": "Could you provide me with more info?",
- "availableTranslations": null
}
], - "quickReplies": [
- {
- "$_type": "QuickReply",
- "text": "Thank you",
- "availableTranslations": null
}, - {
- "$_type": "QuickReply",
- "text": "Great, that helped a lot",
- "availableTranslations": null
}
]
}
}{- "$_type": "SendMessageResult",
- "messageId": "string"
}Emits a WebhookPingEvent or PingRequest on the configured webhook/outbound endpoint for the dialog bot.
| dialogBotId required | string The ID of the dialog bot |
{- "$_type": "PingResponse",
- "pingId": "string"
}Displays a typing indicator for the dialog bot, to show the counterpart person that something is happening.
The typing indicator is removed automatically after four seconds or when the bot sends a message, whichever occurs sooner. If the typing indicator is already displayed, calling this endpoint resets the four second timer.
| dialogToken | string The token that belongs to the bot's dialog |
{- "dialogToken": "string"
}{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Updates an existing dialog bot.
| $_type | string Default: "CopilotDialogBotData" Value: "CopilotDialogBotData" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string Name of the dialog bot. Maximum length of 250 characters. Can not be omitted. |
| description | string Description of the dialog bot. Maximum length of 500 characters. Can be omitted. |
| botPersonId | string ID of the person representing the bot |
| onboardingOrder | integer <int32> Defines the onboarding order of this bot. If more than one bots want to participate in an onboarding, the one with the lowest order value will go first. |
| reboardingOrder | integer <int32> Defines the reboarding order of this bot. If more than one bots want to participate in an reboarding, the one with the lowest order value will go first. |
| offboardingOrder | integer <int32> Defines the offboarding priority of this bot. If more than one bots want to participate in an offboarding, the one with the lowest order value will go first. |
| onboardingFilter | string (EBotDialogFilter) Enum: "VISITORS" "AGENTS" "BOTH" "NONE" enum-descriptions: ["VISITORS: Only handle dialogs that with visitors as the counterpart.","AGENTS: Only handle dialogs with agents as the counterpart","BOTH: Handle dialogs with both agents and visitors as the counterpart","NONE: Don't handle any dialogs."] |
| reboardingEnabled | boolean Defines if this bot can reboard. A reboarding offer will be sent only if this flag is enabled, giving the bot the chance to be part of the reboarding. |
| offboardingFilter | string (EBotDialogFilter) Enum: "VISITORS" "AGENTS" "BOTH" "NONE" enum-descriptions: ["VISITORS: Only handle dialogs that with visitors as the counterpart.","AGENTS: Only handle dialogs with agents as the counterpart","BOTH: Handle dialogs with both agents and visitors as the counterpart","NONE: Don't handle any dialogs."] |
| needsCounterpartPresence | boolean Defines if the counterpart has to be online for the onboarding to start. E.g. if questions have to be answered live. |
| onTimeoutBehavior | string (EBotDialogTimeoutBehavior) Enum: "ABORT" "HAND_OFF" enum-descriptions: ["ABORT: Abort on-boarding the conversation when it comes to timeout. Default for internal bots.","HAND_OFF: Proceed further in on-boarding the conversation when it comes to timeout. Default for external bots."] Defines what should happen with the conversation when it comes to timeout during on-boarding. |
| retryCount | integer <int64> Defines the number of retries for failed outbound requests. If omitted, the default is 0. |
| retryDelay | integer <int64> Defines the delay between retries for failed outbound requests. If omitted, the default is 0. |
| type required | string (EBotType) enum-descriptions: ["COPILOT","CUSTOM"] Type of a dialog bot COPILOT COPILOT CUSTOM |
| authToken | string The Authentication Token for the Microsoft Copilot Agent. Maximum length: 2000 characters |
| copilotId | string The Copilot Agent ID for selecting the correct copilot. Maximum length: 36 characters |
| copilotEnvironmentId | string The Microsoft environment ID. Used by Microsoft Copilot. Maximum length: 2000 characters |
| active | boolean Specifies whether the bot is active |
| outboundEndpoint | string The endpoint url of the webhook registration. To this url the requests for the webhook events are done. Maximum length of 4000 characters. Based on the configured filters/flags the following events will be sent to the endpoint:
|
| outboundTimeoutMillis | integer <int64> The timeout for the requests sent to the outbound endpoint. Mandatory for webhookApiVersion greater than 3. |
| outboundApiVersion | string (EWebApiVersion) Enum: "V1" "V2" "V3" "V4" enum-descriptions: ["V1: Version 1 of the Web-API. Introduced with Unblu 4.x.","V2: Version 2 of the Web-API. Introduced with Unblu 5.","V3: Version 3 of the Web-API. Introduced with Unblu 6.","V4: Version 4 of the Web-API. Introduced with Unblu 8."] Version of the Web-API. Version of API corresponds to a path element of the request URL. E.g.: /rest/v3/<service>/... |
{- "$_type": "CopilotDialogBotData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "botPersonId": "string",
- "onboardingOrder": 0,
- "reboardingOrder": 0,
- "offboardingOrder": 0,
- "onboardingFilter": "VISITORS",
- "reboardingEnabled": true,
- "offboardingFilter": "VISITORS",
- "needsCounterpartPresence": true,
- "onTimeoutBehavior": "ABORT",
- "retryCount": 0,
- "retryDelay": 0,
- "type": "COPILOT",
- "authToken": "string",
- "copilotId": "string",
- "copilotEnvironmentId": "string",
- "active": true,
- "outboundEndpoint": "string",
- "outboundTimeoutMillis": 0,
- "outboundApiVersion": "V1"
}{- "$_type": "CopilotDialogBotData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "botPersonId": "string",
- "onboardingOrder": 0,
- "reboardingOrder": 0,
- "offboardingOrder": 0,
- "onboardingFilter": "VISITORS",
- "reboardingEnabled": true,
- "offboardingFilter": "VISITORS",
- "needsCounterpartPresence": true,
- "onTimeoutBehavior": "ABORT",
- "retryCount": 0,
- "retryDelay": 0,
- "type": "COPILOT",
- "authToken": "string",
- "copilotId": "string",
- "copilotEnvironmentId": "string",
- "active": true,
- "outboundEndpoint": "string",
- "outboundTimeoutMillis": 0,
- "outboundApiVersion": "V1"
}Returns the branch client state for the given branch client ID
| branchClientId required | string |
{- "$_type": "BranchClientStateData",
- "branchClientId": "string",
- "accountId": "string",
- "key": "string",
- "name": "string",
- "state": "AVAILABLE",
- "activeConversationId": "string",
- "clientIssues": [
- "MAIN_CAMERA"
]
}Search for branch client states in the current account
| $_type | string Default: "BranchClientStateDataQuery" Value: "BranchClientStateDataQuery" |
Array of any (BranchClientStateDataSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (BranchClientStateDataOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "BranchClientStateDataQuery",
- "searchFilters": [
- {
- "$_type": "BranchClientIdBranchClientStateDataSearchFilter",
- "field": "BRANCH_CLIENT_ID",
- "operator": {
- "$_type": "EqualsStringOperator",
- "type": "EQUALS",
- "value": "string"
}
}
], - "orderBy": [
- {
- "$_type": "BranchClientStateDataOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "BranchClientStateDataResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "BranchClientStateData",
- "branchClientId": "string",
- "accountId": "string",
- "key": "string",
- "name": "string",
- "state": "AVAILABLE",
- "activeConversationId": "string",
- "clientIssues": [
- "MAIN_CAMERA"
]
}
]
}Creates a new branch client
The branch client to create
| $_type | string Default: "BranchClientData" Value: "BranchClientData" |
| id | string ID of the branch client |
| accountId | string Account ID that the branch client belongs to |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity, incremented on each change. Updates must always be based on the latest version or they're rejected. When creating an object, the version can be omitted. |
| name | string Name of the branch client. Maximum of 250 characters. Mandatory. |
| description | string Description of the branch client. Maximum of 500 characters. Optional. |
object A Map of localized versions of the name and description of the branch client | |
| branchId | string The branch ID that the branch client belongs to |
| branchClientKey | string Branch Client Key |
| publicKey | string Public key for JWT token validation |
| mainCameraMediaDeviceLabel | string Media device label of the main branch client camera. The name is provided by the device. Maximum of 250 characters. Optional. |
| microphoneMediaDeviceLabel | string Media device label of the branch client microphone. The name is provided by the device. Maximum of 250 characters. Optional. |
| type | string (EBranchClientType) Enum: "RECEPTION" "SELF_SERVICE" "MEETING_ROOM" "OTHER" enum-descriptions: ["RECEPTION","SELF_SERVICE","MEETING_ROOM","OTHER"] |
| iconId | string File ID of the icon |
| x | integer <int32> X coordinate of the client's icon on the floor plan. 0 marks the left edge of the plan. |
| y | integer <int32> Y coordinate of the client's icon on the floor plan. 0 marks the top edge of the plan. |
| size | integer <int32> Size of the client's icon on the floor plan |
| rotation | integer <int32> Rotation, in degrees, of the client's icon on the floor plan. 0 degree is to the right and the rotation is clockwise. |
Array of objects (BranchClientDeviceData) [ items ] List of all branch client devices that belong to the branch client | |
Array of objects (BranchClientAuxiliaryCameraData) [ items ] List of all branch client auxiliary cameras that belong to the branch client | |
Array of objects (BranchClientLinkData) [ items ] List of all branch client links that belong to the branch client |
create branch client
{- "$_type": "BranchClientData",
- "id": null,
- "accountId": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "name": "my-branch-client",
- "description": null,
- "translations": null,
- "branchId": "C7UoOAHoSEudeCp7La7SpQ",
- "branchClientKey": "sCNM3bmbTESRtJjrfcxdxg",
- "publicKey": null,
- "mainCameraMediaDeviceLabel": "main-camera-device-label",
- "microphoneMediaDeviceLabel": "microphone-device-label",
- "type": null,
- "iconId": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "branchClientDevices": null,
- "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": null,
- "name": "branchClientAuxiliaryCamera1",
- "type": "DOCUMENT",
- "description": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera1_device-label",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "ID",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 400,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "Passport",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 200,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "Document",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 0,
- "defaultValue": true
}
]
}, - {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": null,
- "name": "branchClientAuxiliaryCamera2",
- "type": "OTHER",
- "description": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera2_device-label",
- "ptzPresets": [ ]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": null,
- "name": "my-branch-client",
- "description": null,
- "translations": null,
- "type": null,
- "url": "...",
- "linkTarget": "_blank",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": false,
- "autoOpenOnConversationEnd": false,
- "iconId": "icon_id"
}
]
}create branch client
{- "$_type": "BranchClientData",
- "id": "ZRoWTG9nQAGTniY0eeeqcw",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "name": "my-branch-client",
- "description": null,
- "translations": { },
- "branchId": "C7UoOAHoSEudeCp7La7SpQ",
- "branchClientKey": "sCNM3bmbTESRtJjrfcxdxg",
- "publicKey": "MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAo...c8kCAwEAAQ==",
- "mainCameraMediaDeviceLabel": "main-camera-device-label",
- "microphoneMediaDeviceLabel": "microphone-device-label",
- "type": "OTHER",
- "iconId": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "branchClientDevices": [ ],
- "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "e-Jva02KTAqb2P2t5TrbRQ",
- "name": "branchClientAuxiliaryCamera1",
- "type": "DOCUMENT",
- "description": null,
- "translations": { },
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera1_device-label",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "IbWH5D8nT-i-4xoAf3MGSA",
- "name": "ID",
- "description": null,
- "translations": { },
- "pan": null,
- "tilt": null,
- "zoom": 400,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "IbWH5D8nT-i-4xoAf3MGSA",
- "name": "Passport",
- "description": null,
- "translations": { },
- "pan": null,
- "tilt": null,
- "zoom": 200,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "IbWH5D8nT-i-4xoAf3MGSA",
- "name": "Document",
- "description": null,
- "translations": { },
- "pan": null,
- "tilt": null,
- "zoom": 0,
- "defaultValue": true
}
]
}, - {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "e-Jva02KTAqb2P2t5TrbRQ",
- "name": "branchClientAuxiliaryCamera2",
- "type": "OTHER",
- "description": null,
- "translations": { },
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera2_device-label",
- "ptzPresets": [ ]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "BKtnEH2sSe25ey1bfuLH3g",
- "name": "my-branch-client",
- "description": null,
- "translations": { },
- "type": "OTHER",
- "url": "...",
- "linkTarget": "_blank",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": false,
- "autoOpenOnConversationEnd": false,
- "iconId": "icon_id"
}
]
}Deletes a branch client
| branchClientId required | string The ID of the branch client to delete |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Generates a new branch client token
| branchClientId required | string The ID of the branch client |
| expiresAt | integer <int64> Expiration date as a Unix timestamp. Set to 0 if the token shouldn't expire. |
{- "expiresAt": 0
}{- "$_type": "BranchClientTokenResult",
- "token": "string",
- "expiresAt": 0
}Gets all the branch clients currently assigned to the given branch
| branchId | string The branch ID the branch clients are assigned to |
{- "branchId": "string"
}{- "$_type": "BranchClientDataList",
- "items": [
- {
- "$_type": "BranchClientData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "branchId": "string",
- "branchClientKey": "string",
- "publicKey": "string",
- "mainCameraMediaDeviceLabel": "string",
- "microphoneMediaDeviceLabel": "string",
- "type": "RECEPTION",
- "iconId": "string",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "branchClientDevices": [
- {
- "$_type": "BranchClientDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "string",
- "name": "string",
- "type": "DOCUMENT",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "string",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "pan": 0,
- "tilt": 0,
- "zoom": 0,
- "defaultValue": true
}
]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": true,
- "autoOpenOnConversationEnd": true,
- "iconId": "string"
}
]
}
]
}Invalidates all tokens that were generated for the given Branch client
| branchClientId required | string The branch client ID for which the tokens should be invalidated |
{- "$_type": "BranchClientData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "branchId": "string",
- "branchClientKey": "string",
- "publicKey": "string",
- "mainCameraMediaDeviceLabel": "string",
- "microphoneMediaDeviceLabel": "string",
- "type": "RECEPTION",
- "iconId": "string",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "branchClientDevices": [
- {
- "$_type": "BranchClientDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "string",
- "name": "string",
- "type": "DOCUMENT",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "string",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "pan": 0,
- "tilt": 0,
- "zoom": 0,
- "defaultValue": true
}
]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": true,
- "autoOpenOnConversationEnd": true,
- "iconId": "string"
}
]
}Returns the branch client for the given ID
| branchClientId required | string ID of the branch client |
{- "$_type": "BranchClientData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "branchId": "string",
- "branchClientKey": "string",
- "publicKey": "string",
- "mainCameraMediaDeviceLabel": "string",
- "microphoneMediaDeviceLabel": "string",
- "type": "RECEPTION",
- "iconId": "string",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "branchClientDevices": [
- {
- "$_type": "BranchClientDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "string",
- "name": "string",
- "type": "DOCUMENT",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "string",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "pan": 0,
- "tilt": 0,
- "zoom": 0,
- "defaultValue": true
}
]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": true,
- "autoOpenOnConversationEnd": true,
- "iconId": "string"
}
]
}Returns a list of branch clients for the given branch IDs
The branch IDs to fetch the branch clients for
[- "string"
]{- "$_type": "BranchClientDataList",
- "items": [
- {
- "$_type": "BranchClientData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "branchId": "string",
- "branchClientKey": "string",
- "publicKey": "string",
- "mainCameraMediaDeviceLabel": "string",
- "microphoneMediaDeviceLabel": "string",
- "type": "RECEPTION",
- "iconId": "string",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "branchClientDevices": [
- {
- "$_type": "BranchClientDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "string",
- "name": "string",
- "type": "DOCUMENT",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "string",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "pan": 0,
- "tilt": 0,
- "zoom": 0,
- "defaultValue": true
}
]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": true,
- "autoOpenOnConversationEnd": true,
- "iconId": "string"
}
]
}
]
}Searches for branch clients in the current account
| $_type | string Default: "BranchClientQuery" Value: "BranchClientQuery" |
Array of any (BranchClientSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (BranchClientOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "BranchClientQuery",
- "searchFilters": [
- {
- "$_type": "NameBranchClientSearchFilter",
- "field": "NAME",
- "operator": {
- "$_type": "EqualsStringOperator",
- "type": "EQUALS",
- "value": "string"
}
}
], - "orderBy": [
- {
- "$_type": "BranchClientOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "BranchClientResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "BranchClientData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "branchId": "string",
- "branchClientKey": "string",
- "publicKey": "string",
- "mainCameraMediaDeviceLabel": "string",
- "microphoneMediaDeviceLabel": "string",
- "type": "RECEPTION",
- "iconId": "string",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "branchClientDevices": [
- {
- "$_type": "BranchClientDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "string",
- "name": "string",
- "type": "DOCUMENT",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "string",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "pan": 0,
- "tilt": 0,
- "zoom": 0,
- "defaultValue": true
}
]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": true,
- "autoOpenOnConversationEnd": true,
- "iconId": "string"
}
]
}
]
}Updates a branch client
The branch client to update
| $_type | string Default: "BranchClientData" Value: "BranchClientData" |
| id | string ID of the branch client |
| accountId | string Account ID that the branch client belongs to |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity, incremented on each change. Updates must always be based on the latest version or they're rejected. When creating an object, the version can be omitted. |
| name | string Name of the branch client. Maximum of 250 characters. Mandatory. |
| description | string Description of the branch client. Maximum of 500 characters. Optional. |
object A Map of localized versions of the name and description of the branch client | |
| branchId | string The branch ID that the branch client belongs to |
| branchClientKey | string Branch Client Key |
| publicKey | string Public key for JWT token validation |
| mainCameraMediaDeviceLabel | string Media device label of the main branch client camera. The name is provided by the device. Maximum of 250 characters. Optional. |
| microphoneMediaDeviceLabel | string Media device label of the branch client microphone. The name is provided by the device. Maximum of 250 characters. Optional. |
| type | string (EBranchClientType) Enum: "RECEPTION" "SELF_SERVICE" "MEETING_ROOM" "OTHER" enum-descriptions: ["RECEPTION","SELF_SERVICE","MEETING_ROOM","OTHER"] |
| iconId | string File ID of the icon |
| x | integer <int32> X coordinate of the client's icon on the floor plan. 0 marks the left edge of the plan. |
| y | integer <int32> Y coordinate of the client's icon on the floor plan. 0 marks the top edge of the plan. |
| size | integer <int32> Size of the client's icon on the floor plan |
| rotation | integer <int32> Rotation, in degrees, of the client's icon on the floor plan. 0 degree is to the right and the rotation is clockwise. |
Array of objects (BranchClientDeviceData) [ items ] List of all branch client devices that belong to the branch client | |
Array of objects (BranchClientAuxiliaryCameraData) [ items ] List of all branch client auxiliary cameras that belong to the branch client | |
Array of objects (BranchClientLinkData) [ items ] List of all branch client links that belong to the branch client |
update branch client
{- "$_type": "BranchClientData",
- "id": null,
- "accountId": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "name": "my-branch-client",
- "description": null,
- "translations": null,
- "branchId": "C7UoOAHoSEudeCp7La7SpQ",
- "branchClientKey": "sCNM3bmbTESRtJjrfcxdxg",
- "publicKey": null,
- "mainCameraMediaDeviceLabel": "main-camera-device-label",
- "microphoneMediaDeviceLabel": "microphone-device-label",
- "type": null,
- "iconId": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "branchClientDevices": null,
- "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": null,
- "name": "branchClientAuxiliaryCamera1",
- "type": "DOCUMENT",
- "description": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera1_device-label",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "ID",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 400,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "Passport",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 200,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "Document",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 0,
- "defaultValue": true
}
]
}, - {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": null,
- "name": "branchClientAuxiliaryCamera2",
- "type": "OTHER",
- "description": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera2_device-label",
- "ptzPresets": [ ]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": null,
- "name": "my-branch-client",
- "description": null,
- "translations": null,
- "type": null,
- "url": "...",
- "linkTarget": "_blank",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": false,
- "autoOpenOnConversationEnd": false,
- "iconId": "icon_id"
}
]
}update branch client
{- "$_type": "BranchClientData",
- "id": "ZRoWTG9nQAGTniY0eeeqcw",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "name": "my-branch-client",
- "description": null,
- "translations": { },
- "branchId": "C7UoOAHoSEudeCp7La7SpQ",
- "branchClientKey": "sCNM3bmbTESRtJjrfcxdxg",
- "publicKey": "MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAo...c8kCAwEAAQ==",
- "mainCameraMediaDeviceLabel": "main-camera-device-label",
- "microphoneMediaDeviceLabel": "microphone-device-label",
- "type": "OTHER",
- "iconId": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "branchClientDevices": [ ],
- "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "e-Jva02KTAqb2P2t5TrbRQ",
- "name": "branchClientAuxiliaryCamera1-updated",
- "type": "DOCUMENT",
- "description": null,
- "translations": { },
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera1_device-label",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "IbWH5D8nT-i-4xoAf3MGSA",
- "name": "ID",
- "description": null,
- "translations": { },
- "pan": null,
- "tilt": null,
- "zoom": 400,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "IbWH5D8nT-i-4xoAf3MGSA",
- "name": "Passport",
- "description": null,
- "translations": { },
- "pan": null,
- "tilt": null,
- "zoom": 200,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "IbWH5D8nT-i-4xoAf3MGSA",
- "name": "Document",
- "description": null,
- "translations": { },
- "pan": null,
- "tilt": null,
- "zoom": 0,
- "defaultValue": true
}
]
}, - {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "e-Jva02KTAqb2P2t5TrbRQ",
- "name": "branchClientAuxiliaryCamera2",
- "type": "OTHER",
- "description": null,
- "translations": { },
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera2_device-label",
- "ptzPresets": [ ]
}, - {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "e-Jva02KTAqb2P2t5TrbRQ",
- "name": "branchClientAuxiliaryCamera3",
- "type": "OTHER",
- "description": null,
- "translations": { },
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera3_device-label",
- "ptzPresets": [ ]
}
], - "branchClientLinks": [ ]
}Creates a new branch
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The branch to create
| $_type | string Default: "BranchData" Value: "BranchData" |
| id | string ID of the branch |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| accountId | string Account ID the branch belongs to |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity, incremented on each change. Updates must always be based on the latest version or they're rejected. When creating an object, the version can be omitted. |
| name | string Name of the branch. Maximum of 250 characters. Mandatory. |
| description | string Description of the branch. Maximum of 500 characters. Optional. |
| streetAddress | string Street address including the street number. Maximum of 250 characters. Optional. |
| zip | string Zip code. Maximum of 20 characters. Optional. |
| city | string City. Maximum of 250 characters. Optional. |
| region | string Region. Maximum of 250 characters. Optional. |
| country | string Country. Maximum of 250 characters. Optional. |
object A Map of localized versions of the name, description and info of the branch | |
| state | string (EBranchState) Enum: "ACTIVE" "MAINTENANCE" "INACTIVE" enum-descriptions: ["ACTIVE: Branch is fully active and can be used","MAINTENANCE: Branch is currently under maintenance and isn't fully accessible for agents. Technicians can access the branch to configure it and to test functionality.","INACTIVE: Branch is inactive and cannot be used"] |
string or Image (object) expand-query-key: floorPlanImage type: ExpandableField Image of the entity: ID that can be expanded. | |
| width | integer <int32> Width of the floor plan. Derived from the uploaded image if not set. |
| height | integer <int32> Height of the floor plan. Derived from the uploaded image if not set. |
| displayLabelsOnFloorPlan | boolean Display the labels of branch elements inside the floor plan. False if not explicitly set. |
Array of objects (BranchClientData) [ items ] List of all branch clients that are assigned to the branch | |
Array of objects (BranchDeviceData) [ items ] List of all branch devices that belong to the branch | |
Array of objects (BranchTextBoxData) [ items ] List of all branch text boxes that belong to the branch | |
Array of objects (BranchLinkData) [ items ] List of all branch links that belong to the branch |
create branch
{- "$_type": "BranchData",
- "id": null,
- "creationTimestamp": null,
- "accountId": null,
- "modificationTimestamp": null,
- "version": null,
- "name": "my-branch",
- "description": null,
- "streetAddress": "Gartenstrasse 143",
- "zip": "4052",
- "city": "Basel",
- "region": "Basel-Stadt",
- "country": "Schweiz",
- "translations": null,
- "state": "ACTIVE",
- "floorPlanImage": null,
- "width": 1000,
- "height": 1000,
- "displayLabelsOnFloorPlan": null,
- "branchClients": [
- {
- "$_type": "BranchClientData",
- "id": null,
- "accountId": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "name": "branchClient1_my-branch",
- "description": null,
- "translations": null,
- "branchId": null,
- "branchClientKey": "sCNM3bmbTESRtJjrfcxdxg",
- "publicKey": null,
- "mainCameraMediaDeviceLabel": "main-camera-device-label",
- "microphoneMediaDeviceLabel": "microphone-device-label",
- "type": null,
- "iconId": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "branchClientDevices": null,
- "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": null,
- "name": "branchClientAuxiliaryCamera1",
- "type": "DOCUMENT",
- "description": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera1_device-label",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "ID",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 400,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "Passport",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 200,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "Document",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 0,
- "defaultValue": true
}
]
}, - {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": null,
- "name": "branchClientAuxiliaryCamera2",
- "type": "OTHER",
- "description": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera2_device-label",
- "ptzPresets": [ ]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": null,
- "name": "branchClient1_my-branch",
- "description": null,
- "translations": null,
- "type": null,
- "url": "...",
- "linkTarget": "_blank",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": false,
- "autoOpenOnConversationEnd": false,
- "iconId": "icon_id"
}
]
}
], - "branchDevices": [
- {
- "$_type": "BranchDeviceData",
- "id": null,
- "name": "device1",
- "description": null,
- "translations": null,
- "type": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "url": null,
- "linkTarget": null
}, - {
- "$_type": "BranchDeviceData",
- "id": null,
- "name": "device2",
- "description": null,
- "translations": null,
- "type": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "url": null,
- "linkTarget": null
}
], - "branchTextBoxes": [
- {
- "$_type": "BranchTextBoxData",
- "id": null,
- "text": "textBox1",
- "fontSize": 12,
- "fontColor": null,
- "backgroundColor": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "width": 20,
- "height": 20,
- "rotation": 0,
- "horizontalTextAlign": null,
- "verticalTextAlign": null
}
], - "branchLinks": [
- {
- "$_type": "BranchLinkData",
- "id": null,
- "name": "link1",
- "description": null,
- "translations": null,
- "type": null,
- "url": "...",
- "linkTarget": "_blank",
- "iconId": "icon_id"
}
]
}create branch
{- "$_type": "BranchData",
- "id": "C7UoOAHoSEudeCp7La7SpQ",
- "creationTimestamp": 1546300800000,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "name": "my-branch",
- "description": null,
- "streetAddress": "Gartenstrasse 143",
- "zip": "4052",
- "city": "Basel",
- "region": "Basel-Stadt",
- "country": "Schweiz",
- "translations": { },
- "state": "ACTIVE",
- "floorPlanImage": null,
- "width": 1000,
- "height": 1000,
- "displayLabelsOnFloorPlan": false,
- "branchClients": [
- {
- "$_type": "BranchClientData",
- "id": "ZRoWTG9nQAGTniY0eeeqcw",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "name": "branchClient1_my-branch",
- "description": null,
- "translations": { },
- "branchId": "C7UoOAHoSEudeCp7La7SpQ",
- "branchClientKey": "sCNM3bmbTESRtJjrfcxdxg",
- "publicKey": "MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAo...c8kCAwEAAQ==",
- "mainCameraMediaDeviceLabel": "main-camera-device-label",
- "microphoneMediaDeviceLabel": "microphone-device-label",
- "type": "OTHER",
- "iconId": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "branchClientDevices": [ ],
- "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "e-Jva02KTAqb2P2t5TrbRQ",
- "name": "branchClientAuxiliaryCamera1",
- "type": "DOCUMENT",
- "description": null,
- "translations": { },
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera1_device-label",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "IbWH5D8nT-i-4xoAf3MGSA",
- "name": "ID",
- "description": null,
- "translations": { },
- "pan": null,
- "tilt": null,
- "zoom": 400,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "IbWH5D8nT-i-4xoAf3MGSA",
- "name": "Passport",
- "description": null,
- "translations": { },
- "pan": null,
- "tilt": null,
- "zoom": 200,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "IbWH5D8nT-i-4xoAf3MGSA",
- "name": "Document",
- "description": null,
- "translations": { },
- "pan": null,
- "tilt": null,
- "zoom": 0,
- "defaultValue": true
}
]
}, - {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "e-Jva02KTAqb2P2t5TrbRQ",
- "name": "branchClientAuxiliaryCamera2",
- "type": "OTHER",
- "description": null,
- "translations": { },
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera2_device-label",
- "ptzPresets": [ ]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "BKtnEH2sSe25ey1bfuLH3g",
- "name": "branchClient1_my-branch",
- "description": null,
- "translations": { },
- "type": "OTHER",
- "url": "...",
- "linkTarget": "_blank",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": false,
- "autoOpenOnConversationEnd": false,
- "iconId": "icon_id"
}
]
}
], - "branchDevices": [
- {
- "$_type": "BranchDeviceData",
- "id": "DpkS7DWeQeiDzGUN58Og_Q",
- "name": "device1",
- "description": null,
- "translations": { },
- "type": "OTHER",
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "url": null,
- "linkTarget": "_blank"
}, - {
- "$_type": "BranchDeviceData",
- "id": "DpkS7DWeQeiDzGUN58Og_Q",
- "name": "device2",
- "description": null,
- "translations": { },
- "type": "OTHER",
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "url": null,
- "linkTarget": "_blank"
}
], - "branchTextBoxes": [
- {
- "$_type": "BranchTextBoxData",
- "id": "JASZlVmHRyK_W-qA3eEA1Q",
- "text": "textBox1",
- "fontSize": 12,
- "fontColor": null,
- "backgroundColor": null,
- "translations": { },
- "x": 0,
- "y": 0,
- "width": 20,
- "height": 20,
- "rotation": 0,
- "horizontalTextAlign": "MIDDLE",
- "verticalTextAlign": "MIDDLE"
}
], - "branchLinks": [
- {
- "$_type": "BranchLinkData",
- "id": "rD-qNMpURCqRNlcGMYYYCA",
- "name": "link1",
- "description": null,
- "translations": { },
- "type": "OTHER",
- "url": "...",
- "linkTarget": "_blank",
- "iconId": "icon_id"
}
]
}Deletes a branch. This will also delete all related branch clients.
| branchId required | string The ID of the branch to delete |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Returns the branch for the given branch ID
| branchId required | string ID of the branch |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "BranchData",
- "id": "string",
- "creationTimestamp": 0,
- "accountId": "string",
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "streetAddress": "string",
- "zip": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "translations": {
- "property1": {
- "$_type": "BranchTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "state": "ACTIVE",
- "floorPlanImage": "string",
- "width": 0,
- "height": 0,
- "displayLabelsOnFloorPlan": true,
- "branchClients": [
- {
- "$_type": "BranchClientData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "branchId": "string",
- "branchClientKey": "string",
- "publicKey": "string",
- "mainCameraMediaDeviceLabel": "string",
- "microphoneMediaDeviceLabel": "string",
- "type": "RECEPTION",
- "iconId": "string",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "branchClientDevices": [
- {
- "$_type": "BranchClientDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "string",
- "name": "string",
- "type": "DOCUMENT",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "string",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "pan": 0,
- "tilt": 0,
- "zoom": 0,
- "defaultValue": true
}
]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": true,
- "autoOpenOnConversationEnd": true,
- "iconId": "string"
}
]
}
], - "branchDevices": [
- {
- "$_type": "BranchDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchTextBoxes": [
- {
- "$_type": "BranchTextBoxData",
- "id": "string",
- "text": "string",
- "fontSize": 0,
- "fontColor": "string",
- "backgroundColor": "string",
- "translations": {
- "property1": {
- "$_type": "BranchTextBoxTranslation",
- "id": "string",
- "name": "string"
}, - "property2": {
- "$_type": "BranchTextBoxTranslation",
- "id": "string",
- "name": "string"
}
}, - "x": 0,
- "y": 0,
- "width": 0,
- "height": 0,
- "rotation": 0,
- "horizontalTextAlign": "START",
- "verticalTextAlign": "START"
}
], - "branchLinks": [
- {
- "$_type": "BranchLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "iconId": "string"
}
]
}Gets a list of branches for the given IDs
The IDs to fetch the branches for
[- "string"
]{- "$_type": "BranchDataList",
- "items": [
- {
- "$_type": "BranchData",
- "id": "string",
- "creationTimestamp": 0,
- "accountId": "string",
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "streetAddress": "string",
- "zip": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "translations": {
- "property1": {
- "$_type": "BranchTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "state": "ACTIVE",
- "floorPlanImage": "string",
- "width": 0,
- "height": 0,
- "displayLabelsOnFloorPlan": true,
- "branchClients": [
- {
- "$_type": "BranchClientData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "branchId": "string",
- "branchClientKey": "string",
- "publicKey": "string",
- "mainCameraMediaDeviceLabel": "string",
- "microphoneMediaDeviceLabel": "string",
- "type": "RECEPTION",
- "iconId": "string",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "branchClientDevices": [
- {
- "$_type": "BranchClientDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "string",
- "name": "string",
- "type": "DOCUMENT",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "string",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": null,
- "property2": null
}, - "pan": 0,
- "tilt": 0,
- "zoom": 0,
- "defaultValue": true
}
]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": true,
- "autoOpenOnConversationEnd": true,
- "iconId": "string"
}
]
}
], - "branchDevices": [
- {
- "$_type": "BranchDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchTextBoxes": [
- {
- "$_type": "BranchTextBoxData",
- "id": "string",
- "text": "string",
- "fontSize": 0,
- "fontColor": "string",
- "backgroundColor": "string",
- "translations": {
- "property1": {
- "$_type": "BranchTextBoxTranslation",
- "id": "string",
- "name": "string"
}, - "property2": {
- "$_type": "BranchTextBoxTranslation",
- "id": "string",
- "name": "string"
}
}, - "x": 0,
- "y": 0,
- "width": 0,
- "height": 0,
- "rotation": 0,
- "horizontalTextAlign": "START",
- "verticalTextAlign": "START"
}
], - "branchLinks": [
- {
- "$_type": "BranchLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "iconId": "string"
}
]
}
]
}Searches for branches in the current account
| $_type | string Default: "BranchQuery" Value: "BranchQuery" |
Array of any (BranchSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (BranchOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "BranchQuery",
- "searchFilters": [
- {
- "$_type": "NameBranchSearchFilter",
- "field": "NAME",
- "operator": {
- "$_type": "EqualsStringOperator",
- "type": "EQUALS",
- "value": "string"
}
}
], - "orderBy": [
- {
- "$_type": "BranchOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "BranchResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "BranchData",
- "id": "string",
- "creationTimestamp": 0,
- "accountId": "string",
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "streetAddress": "string",
- "zip": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "translations": {
- "property1": {
- "$_type": "BranchTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "state": "ACTIVE",
- "floorPlanImage": "string",
- "width": 0,
- "height": 0,
- "displayLabelsOnFloorPlan": true,
- "branchClients": [
- {
- "$_type": "BranchClientData",
- "id": "string",
- "accountId": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "branchId": "string",
- "branchClientKey": "string",
- "publicKey": "string",
- "mainCameraMediaDeviceLabel": "string",
- "microphoneMediaDeviceLabel": "string",
- "type": "RECEPTION",
- "iconId": "string",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "branchClientDevices": [
- {
- "$_type": "BranchClientDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": "string",
- "name": "string",
- "type": "DOCUMENT",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientAuxiliaryCameraTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "string",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": null,
- "property2": null
}, - "pan": 0,
- "tilt": 0,
- "zoom": 0,
- "defaultValue": true
}
]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchClientLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": true,
- "autoOpenOnConversationEnd": true,
- "iconId": "string"
}
]
}
], - "branchDevices": [
- {
- "$_type": "BranchDeviceData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchDeviceTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "SIGN_PAD",
- "x": 0,
- "y": 0,
- "size": 0,
- "rotation": 0,
- "iconId": "string",
- "url": "string",
- "linkTarget": "string"
}
], - "branchTextBoxes": [
- {
- "$_type": "BranchTextBoxData",
- "id": "string",
- "text": "string",
- "fontSize": 0,
- "fontColor": "string",
- "backgroundColor": "string",
- "translations": {
- "property1": {
- "$_type": "BranchTextBoxTranslation",
- "id": "string",
- "name": "string"
}, - "property2": {
- "$_type": "BranchTextBoxTranslation",
- "id": "string",
- "name": "string"
}
}, - "x": 0,
- "y": 0,
- "width": 0,
- "height": 0,
- "rotation": 0,
- "horizontalTextAlign": "START",
- "verticalTextAlign": "START"
}
], - "branchLinks": [
- {
- "$_type": "BranchLinkData",
- "id": "string",
- "name": "string",
- "description": "string",
- "translations": {
- "property1": {
- "$_type": "BranchLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "BranchLinkTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "type": "PHONE_NUMBER",
- "url": "string",
- "linkTarget": "string",
- "iconId": "string"
}
]
}
]
}Updates a branch
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The branch to update
| $_type | string Default: "BranchData" Value: "BranchData" |
| id | string ID of the branch |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| accountId | string Account ID the branch belongs to |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity, incremented on each change. Updates must always be based on the latest version or they're rejected. When creating an object, the version can be omitted. |
| name | string Name of the branch. Maximum of 250 characters. Mandatory. |
| description | string Description of the branch. Maximum of 500 characters. Optional. |
| streetAddress | string Street address including the street number. Maximum of 250 characters. Optional. |
| zip | string Zip code. Maximum of 20 characters. Optional. |
| city | string City. Maximum of 250 characters. Optional. |
| region | string Region. Maximum of 250 characters. Optional. |
| country | string Country. Maximum of 250 characters. Optional. |
object A Map of localized versions of the name, description and info of the branch | |
| state | string (EBranchState) Enum: "ACTIVE" "MAINTENANCE" "INACTIVE" enum-descriptions: ["ACTIVE: Branch is fully active and can be used","MAINTENANCE: Branch is currently under maintenance and isn't fully accessible for agents. Technicians can access the branch to configure it and to test functionality.","INACTIVE: Branch is inactive and cannot be used"] |
string or Image (object) expand-query-key: floorPlanImage type: ExpandableField Image of the entity: ID that can be expanded. | |
| width | integer <int32> Width of the floor plan. Derived from the uploaded image if not set. |
| height | integer <int32> Height of the floor plan. Derived from the uploaded image if not set. |
| displayLabelsOnFloorPlan | boolean Display the labels of branch elements inside the floor plan. False if not explicitly set. |
Array of objects (BranchClientData) [ items ] List of all branch clients that are assigned to the branch | |
Array of objects (BranchDeviceData) [ items ] List of all branch devices that belong to the branch | |
Array of objects (BranchTextBoxData) [ items ] List of all branch text boxes that belong to the branch | |
Array of objects (BranchLinkData) [ items ] List of all branch links that belong to the branch |
update branch
{- "$_type": "BranchData",
- "id": null,
- "creationTimestamp": null,
- "accountId": null,
- "modificationTimestamp": null,
- "version": null,
- "name": "my-branch",
- "description": null,
- "streetAddress": "Gartenstrasse 143",
- "zip": "4052",
- "city": "Basel",
- "region": "Basel-Stadt",
- "country": "Schweiz",
- "translations": null,
- "state": "ACTIVE",
- "floorPlanImage": null,
- "width": 1000,
- "height": 1000,
- "displayLabelsOnFloorPlan": null,
- "branchClients": [
- {
- "$_type": "BranchClientData",
- "id": null,
- "accountId": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "name": "branchClient1_my-branch",
- "description": null,
- "translations": null,
- "branchId": null,
- "branchClientKey": "sCNM3bmbTESRtJjrfcxdxg",
- "publicKey": null,
- "mainCameraMediaDeviceLabel": "main-camera-device-label",
- "microphoneMediaDeviceLabel": "microphone-device-label",
- "type": null,
- "iconId": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "branchClientDevices": null,
- "branchClientAuxiliaryCameras": [
- {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": null,
- "name": "branchClientAuxiliaryCamera1",
- "type": "DOCUMENT",
- "description": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera1_device-label",
- "ptzPresets": [
- {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "ID",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 400,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "Passport",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 200,
- "defaultValue": false
}, - {
- "$_type": "BranchClientAuxiliaryCameraPtzPresetData",
- "id": null,
- "name": "Document",
- "description": null,
- "translations": null,
- "pan": null,
- "tilt": null,
- "zoom": 0,
- "defaultValue": true
}
]
}, - {
- "$_type": "BranchClientAuxiliaryCameraData",
- "id": null,
- "name": "branchClientAuxiliaryCamera2",
- "type": "OTHER",
- "description": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "alwaysDisplayDuringCall": true,
- "displayInFloorPlan": true,
- "mediaDeviceLabel": "branchClientAuxiliaryCamera2_device-label",
- "ptzPresets": [ ]
}
], - "branchClientLinks": [
- {
- "$_type": "BranchClientLinkData",
- "id": null,
- "name": "branchClient1_my-branch",
- "description": null,
- "translations": null,
- "type": null,
- "url": "...",
- "linkTarget": "_blank",
- "autoOpenOnConnect": true,
- "autoOpenOnCallEnd": false,
- "autoOpenOnConversationEnd": false,
- "iconId": "icon_id"
}
]
}
], - "branchDevices": [
- {
- "$_type": "BranchDeviceData",
- "id": null,
- "name": "device1",
- "description": null,
- "translations": null,
- "type": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "url": null,
- "linkTarget": null
}, - {
- "$_type": "BranchDeviceData",
- "id": null,
- "name": "device2",
- "description": null,
- "translations": null,
- "type": null,
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "url": null,
- "linkTarget": null
}
], - "branchTextBoxes": [
- {
- "$_type": "BranchTextBoxData",
- "id": null,
- "text": "textBox1",
- "fontSize": 12,
- "fontColor": null,
- "backgroundColor": null,
- "translations": null,
- "x": 0,
- "y": 0,
- "width": 20,
- "height": 20,
- "rotation": 0,
- "horizontalTextAlign": null,
- "verticalTextAlign": null
}
], - "branchLinks": [
- {
- "$_type": "BranchLinkData",
- "id": null,
- "name": "link1",
- "description": null,
- "translations": null,
- "type": null,
- "url": "...",
- "linkTarget": "_blank",
- "iconId": "icon_id"
}
]
}update branch
{- "$_type": "BranchData",
- "id": "C7UoOAHoSEudeCp7La7SpQ",
- "creationTimestamp": 1546300800000,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "name": "my-branch",
- "description": null,
- "streetAddress": "Gartenstrasse 143",
- "zip": "4052",
- "city": "Basel",
- "region": "Basel-Stadt",
- "country": "Schweiz",
- "translations": { },
- "state": "ACTIVE",
- "floorPlanImage": null,
- "width": 1000,
- "height": 1000,
- "displayLabelsOnFloorPlan": false,
- "branchClients": [ ],
- "branchDevices": [
- {
- "$_type": "BranchDeviceData",
- "id": "DpkS7DWeQeiDzGUN58Og_Q",
- "name": "device2-updated",
- "description": null,
- "translations": { },
- "type": "OTHER",
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "url": null,
- "linkTarget": "_blank"
}, - {
- "$_type": "BranchDeviceData",
- "id": "DpkS7DWeQeiDzGUN58Og_Q",
- "name": "device3",
- "description": null,
- "translations": { },
- "type": "OTHER",
- "x": 0,
- "y": 0,
- "size": 20,
- "rotation": 0,
- "iconId": "icon_id",
- "url": null,
- "linkTarget": "_blank"
}
], - "branchTextBoxes": [
- {
- "$_type": "BranchTextBoxData",
- "id": "JASZlVmHRyK_W-qA3eEA1Q",
- "text": "textBox1",
- "fontSize": 12,
- "fontColor": null,
- "backgroundColor": null,
- "translations": { },
- "x": 0,
- "y": 0,
- "width": 20,
- "height": 20,
- "rotation": 0,
- "horizontalTextAlign": "MIDDLE",
- "verticalTextAlign": "MIDDLE"
}
], - "branchLinks": [
- {
- "$_type": "BranchLinkData",
- "id": "rD-qNMpURCqRNlcGMYYYCA",
- "name": "link1",
- "description": null,
- "translations": { },
- "type": "OTHER",
- "url": "...",
- "linkTarget": "_blank",
- "iconId": "icon_id"
}
]
}Returns the call with the given ID
| callId required | string |
{- "$_type": "Call",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "conversationId": "string",
- "serviceProviderCallId": "string",
- "serviceProviderType": "ACS",
- "initiatorPersonId": "string",
- "callType": "AUDIO",
- "initiationTimestamp": 0,
- "acceptTimestamp": 0,
- "establishedTimestamp": 0,
- "endTimestamp": 0,
- "endReason": "NOT_ANSWERED",
- "participations": [
- {
- "$_type": "CallParticipation",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "joinedTimestamp": 0,
- "leftTimestamp": 0,
- "personId": "string",
- "ringingTimestamp": 0,
- "connectedTimestamp": 0,
- "leftReason": "HANG_UP",
- "publications": [
- {
- "$_type": "CallDialInPublication",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "type": "DIAL_IN",
- "dialInServiceProviderType": "VONAGE",
- "dialInId": "string",
- "dialInNumber": "string",
- "startTimestamp": 0,
- "endTimestamp": 0
}
]
}
]
}Search for call logs in the current account
| $_type | string Default: "CallQuery" Value: "CallQuery" |
Array of any (CallSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (CallOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "CallQuery",
- "searchFilters": [
- {
- "$_type": "ConversationIdCallSearchFilter",
- "field": "CONVERSATION_ID",
- "operator": {
- "$_type": "EqualsIdOperator",
- "type": "EQUALS",
- "value": "string"
}
}
], - "orderBy": [
- {
- "$_type": "CallOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "CallResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "Call",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "conversationId": "string",
- "serviceProviderCallId": "string",
- "serviceProviderType": "ACS",
- "initiatorPersonId": "string",
- "callType": "AUDIO",
- "initiationTimestamp": 0,
- "acceptTimestamp": 0,
- "establishedTimestamp": 0,
- "endTimestamp": 0,
- "endReason": "NOT_ANSWERED",
- "participations": [
- {
- "$_type": "CallParticipation",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "joinedTimestamp": 0,
- "leftTimestamp": 0,
- "personId": "string",
- "ringingTimestamp": 0,
- "connectedTimestamp": 0,
- "leftReason": "HANG_UP",
- "publications": [
- {
- "$_type": "CallDialInPublication",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "type": "DIAL_IN",
- "dialInServiceProviderType": "VONAGE",
- "dialInId": "string",
- "dialInNumber": "string",
- "startTimestamp": 0,
- "endTimestamp": 0
}
]
}
]
}
]
}Service to manage canned responses.
The canned responses a user can edit and the ones they can use in chats can differ. The ones they can edit depend on their role. The ones they can use in a chat depend on their role as well as the team setup. Refer to the following policies for the list of canned responses available for chat:
Creates the given entity in the system. The ID of the entity is ignored for create operations, a new one is generated.
The entity to create
| $_type | string Default: "CannedResponse" Value: "CannedResponse" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| ownerId | string Id of the owner of the entity. Can not be omitted. |
| ownerType | string (EPropertyOwnerType) Enum: "GLOBAL" "ACCOUNT" "TEAM" "USER" "AREA" "APIKEY" "PERSON" "CONVERSATION" "CONVERSATION_TEMPLATE" "EXTERNAL_MESSENGER_CHANNEL" "CUSTOM_ACTION" enum-descriptions: ["GLOBAL: Global system is owner","ACCOUNT: Account is owner","TEAM: Team is owner","USER: User is owner","AREA: NamedArea is owner","APIKEY: ApiKey is owner","PERSON: Person","CONVERSATION: Conversation","CONVERSATION_TEMPLATE: Conversation template","EXTERNAL_MESSENGER_CHANNEL: External messenger channel","CUSTOM_ACTION: Custom action"] Type of an owner of an entity |
Array of objects (Placeholder) [ items ] | |
| title | string The title of a canned response as unique identifier. Maximum of 250 characters. |
| text | string The text of a canned response. Can be omitted, but should not. |
| language | string The language of a canned response, specified using the language tag format as defined in IETF BCP 47. This field can be omitted, but doing so may lead to behavior that doesn't matches users' expectations. Only canned responses matching a conversation's language are displayed in the UI.
|
Create a new canned response for the account
{- "$_type": "CannedResponse",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "accountId": null,
- "ownerId": null,
- "ownerType": "ACCOUNT",
- "placeholders": [ ],
- "title": "Have a nice day",
- "text": "It was great chatting with you, have a nice day!",
- "language": "en"
}New canned response for the account
{- "$_type": "CannedResponse",
- "id": "EasFde6CRn83pnBCec_4Ds0",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "ownerId": "A7d9E_0-c3cC4aoFDb85t6n",
- "ownerType": "ACCOUNT",
- "placeholders": [ ],
- "title": "Have a nice day",
- "text": "It was great chatting with you, have a nice day!",
- "language": "en"
}Deletes the canned response with the given ID
| cannedResponseId required | string The ID of the canned response to delete |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Returns the canned response with the given ID
| cannedResponseId required | string ID of the canned response to return |
{- "$_type": "CannedResponse",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "ownerId": "string",
- "ownerType": "GLOBAL",
- "placeholders": [
- {
- "$_type": "Placeholder",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderValues": [
- {
- "$_type": "PlaceholderValue",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderId": "string",
- "textValue": "string"
}
], - "cannedResponseId": "string",
- "type": "TEXT",
- "title": "string",
- "hint": "string"
}
], - "title": "string",
- "text": "string",
- "language": "string"
}Gets a list of canned responses for the given IDs
The IDs for which the canned responses should be fetched
[- "string"
]{- "$_type": "CannedResponseList",
- "items": [
- {
- "$_type": "CannedResponse",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "ownerId": "string",
- "ownerType": "GLOBAL",
- "placeholders": [
- {
- "$_type": "Placeholder",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderValues": [
- {
- "$_type": "PlaceholderValue",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderId": "string",
- "textValue": "string"
}
], - "cannedResponseId": "string",
- "type": "TEXT",
- "title": "string",
- "hint": "string"
}
], - "title": "string",
- "text": "string",
- "language": "string"
}
]
}Search for canned responses according to the policy that applies to the user making the API call
| $_type | string Default: "CannedResponseQuery" Value: "CannedResponseQuery" |
Array of any (CannedResponseSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (CannedResponseOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "CannedResponseQuery",
- "searchFilters": [
- {
- "$_type": "CreationTimestampCannedResponseSearchFilter",
- "field": "TITLE",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
], - "orderBy": [
- {
- "$_type": "CannedResponseOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "CannedResponseResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "CannedResponse",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "ownerId": "string",
- "ownerType": "GLOBAL",
- "placeholders": [
- {
- "$_type": "Placeholder",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderValues": [
- {
- "$_type": "PlaceholderValue",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderId": "string",
- "textValue": "string"
}
], - "cannedResponseId": "string",
- "type": "TEXT",
- "title": "string",
- "hint": "string"
}
], - "title": "string",
- "text": "string",
- "language": "string"
}
]
}Updates the entity in the system with the given entity.
The entity to update
| $_type | string Default: "CannedResponse" Value: "CannedResponse" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| ownerId | string Id of the owner of the entity. Can not be omitted. |
| ownerType | string (EPropertyOwnerType) Enum: "GLOBAL" "ACCOUNT" "TEAM" "USER" "AREA" "APIKEY" "PERSON" "CONVERSATION" "CONVERSATION_TEMPLATE" "EXTERNAL_MESSENGER_CHANNEL" "CUSTOM_ACTION" enum-descriptions: ["GLOBAL: Global system is owner","ACCOUNT: Account is owner","TEAM: Team is owner","USER: User is owner","AREA: NamedArea is owner","APIKEY: ApiKey is owner","PERSON: Person","CONVERSATION: Conversation","CONVERSATION_TEMPLATE: Conversation template","EXTERNAL_MESSENGER_CHANNEL: External messenger channel","CUSTOM_ACTION: Custom action"] Type of an owner of an entity |
Array of objects (Placeholder) [ items ] | |
| title | string The title of a canned response as unique identifier. Maximum of 250 characters. |
| text | string The text of a canned response. Can be omitted, but should not. |
| language | string The language of a canned response, specified using the language tag format as defined in IETF BCP 47. This field can be omitted, but doing so may lead to behavior that doesn't matches users' expectations. Only canned responses matching a conversation's language are displayed in the UI.
|
{- "$_type": "CannedResponse",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "ownerId": "string",
- "ownerType": "GLOBAL",
- "placeholders": [
- {
- "$_type": "Placeholder",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderValues": [
- {
- "$_type": "PlaceholderValue",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderId": "string",
- "textValue": "string"
}
], - "cannedResponseId": "string",
- "type": "TEXT",
- "title": "string",
- "hint": "string"
}
], - "title": "string",
- "text": "string",
- "language": "string"
}{- "$_type": "CannedResponse",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "ownerId": "string",
- "ownerType": "GLOBAL",
- "placeholders": [
- {
- "$_type": "Placeholder",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderValues": [
- {
- "$_type": "PlaceholderValue",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "placeholderId": "string",
- "textValue": "string"
}
], - "cannedResponseId": "string",
- "type": "TEXT",
- "title": "string",
- "hint": "string"
}
], - "title": "string",
- "text": "string",
- "language": "string"
}Retrieve the number of canned response usages according to the search filter provided
to use for the search
| $_type | string Default: "CannedResponseUsageCountQuery" Value: "CannedResponseUsageCountQuery" |
Array of any (CannedResponseUsageSearchFilter) [ items ] List of filters to narrow the search of entities |
{- "$_type": "CannedResponseUsageCountQuery",
- "searchFilters": [
- {
- "$_type": "CreationTimestampCannedResponseUsageSearchFilter",
- "field": "PERSON_ID",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
]
}{- "$_type": "CountResult",
- "count": 0
}Search for usages of canned responses
to use for the search
| $_type | string Default: "CannedResponseUsageQuery" Value: "CannedResponseUsageQuery" |
Array of any (CannedResponseUsageSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (CannedResponseUsageOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "CannedResponseUsageQuery",
- "searchFilters": [
- {
- "$_type": "CreationTimestampCannedResponseUsageSearchFilter",
- "field": "PERSON_ID",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
], - "orderBy": [
- {
- "$_type": "CannedResponseUsageOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "CannedResponseUsageResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "CannedResponseUsage",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "cannedResponseId": "string",
- "personId": "string",
- "messageId": "string",
- "conversationId": "string"
}
]
}Search for collaboration layer events in the current account
| $_type | string Default: "CollaborationLayerEventQuery" Value: "CollaborationLayerEventQuery" |
Array of any (CollaborationLayerEventSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (CollaborationLayerEventOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
Search for Collaboration Layer Event with all possible filters
{- "$_type": "CollaborationLayerEventQuery",
- "searchFilters": [
- {
- "$_type": "EventTimestampCollaborationLayerEventSearchFilter",
- "field": "EVENT_TIMESTAMP",
- "operator": {
- "$_type": "InRangeTimestampOperator",
- "type": "IN_RANGE",
- "minimum": 1706745500,
- "maximum": 1706745700
}
}, - {
- "$_type": "ConversationIdCollaborationLayerEventSearchFilter",
- "field": "CONVERSATION_ID",
- "operator": {
- "$_type": "EqualsIdOperator",
- "type": "EQUALS",
- "value": "1000"
}
}, - {
- "$_type": "EventSourceTypeCollaborationLayerEventSearchFilter",
- "field": "EVENT_SOURCE_TYPE",
- "operator": {
- "$_type": "EqualsCollaborationLayerEventSourceTypeOperator",
- "type": "EQUALS",
- "value": "EMBEDDED_COBROWSING"
}
}, - {
- "$_type": "TriggeringPersonIdCollaborationLayerEventSearchFilter",
- "field": "TRIGGERING_PERSON_ID",
- "operator": {
- "$_type": "EqualsIdOperator",
- "type": "EQUALS",
- "value": "1000"
}
}
], - "orderBy": [
- {
- "$_type": "CollaborationLayerEventOrderBy",
- "field": "EVENT_TIMESTAMP",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 1
}{- "$_type": "CollaborationLayerEventResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "UniversalCobrowsingCollaborationLayerEventData",
- "layerId": "string",
- "layerOwnerPersonId": "string",
- "layerOwnerPersonPresenceId": "string",
- "triggeringPersonId": "string",
- "triggeringPersonPresenceId": "string",
- "conversationId": "string",
- "eventTimestamp": 0,
- "layerSourceType": "UNIVERSAL_COBROWSING",
- "url": "string",
- "pageTitle": "string",
- "navigationType": "FULL_PAGE"
}
]
}Search for CollaborationLayerLogEntry in the current account
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| $_type | string Default: "CollaborationLayerLogEntryQuery" Value: "CollaborationLayerLogEntryQuery" |
Array of any (CollaborationLayerLogEntrySearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (CollaborationLayerLogEntryOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
Search for Collaboration Layer Log Entry with all possible filters
{- "$_type": "CollaborationLayerLogEntryQuery",
- "searchFilters": [
- {
- "$_type": "StartingTimestampCollaborationLayerLogEntrySearchFilter",
- "field": "STARTING_TIMESTAMP",
- "operator": {
- "$_type": "InRangeTimestampOperator",
- "type": "IN_RANGE",
- "minimum": 1704067100,
- "maximum": 1704067300
}
}, - {
- "$_type": "StopTimestampCollaborationLayerLogEntrySearchFilter",
- "field": "STOP_TIMESTAMP",
- "operator": {
- "$_type": "InRangeTimestampOperator",
- "type": "IN_RANGE",
- "minimum": 1706745500,
- "maximum": 1706745700
}
}, - {
- "$_type": "ConversationIdCollaborationLayerLogEntrySearchFilter",
- "field": "CONVERSATION_ID",
- "operator": {
- "$_type": "EqualsStringOperator",
- "type": "EQUALS",
- "value": "1000"
}
}, - {
- "$_type": "LayerTypeCollaborationLayerLogEntrySearchFilter",
- "field": "LAYER_TYPE",
- "operator": {
- "$_type": "EqualsLayerTypeOperator",
- "type": "EQUALS",
- "value": "SCREEN_SHARING"
}
}, - {
- "$_type": "StartingPersonIdCollaborationLayerLogEntrySearchFilter",
- "field": "STARTING_PERSON_ID",
- "operator": {
- "$_type": "EqualsStringOperator",
- "type": "EQUALS",
- "value": "1000"
}
}
], - "orderBy": [
- {
- "$_type": "CollaborationLayerLogEntryOrderBy",
- "field": "STOP_TIMESTAMP",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 1
}{- "$_type": "CollaborationLayerLogEntryResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "CollaborationLayerLogEntryData",
- "conversationId": "string",
- "layerType": "SCREEN_SHARING",
- "layerOwnerPersonData": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "startingPersonData": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "stoppingPersonData": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "startingTimestamp": 0,
- "approvalTimestamp": 0,
- "activationTimestamp": 0,
- "stopTimestamp": 0,
- "abortTimestamp": 0,
- "layerAbortReason": "STOPPED_BY_USER"
}
]
}Creates a new conversation access interceptor
| $_type | string Default: "ConversationAccessInterceptorData" Value: "ConversationAccessInterceptorData" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string A model representing a conversation access interceptor. These interceptors are used to approve or reject an attempt to join a conversation. Mandatory. |
| description | string Description of the conversation access interceptor. Maximum length of 500 characters. |
| timeoutBehavior | string (EConversationAccessInterceptorTimeoutBehavior) Enum: "REJECT" "CONTINUE" enum-descriptions: ["REJECT: Reject the access attempt when a timeout occurs","CONTINUE: Grant access to the conversation when a timeout occurs"] What should happen with a message when a timeout occurs during interception. |
| interceptedOpeningTypes | Array of strings (EConversationAccessType) Items Enum: "ACCESS_AS_VISITOR_PARTICIPANT" "ACCESS_AS_AGENT_PARTICIPANT" "ACCESS_AS_GHOST_PARTICIPANT" "ACCESS_AS_GHOST_WITHOUT_PARTICIPATION" Defines the different ways in which a conversation can be opened and which of these are intercepted. Mandatory. |
| outboundEndpoint | string The URL of the outbound request registration endpoint. Requests for outbound request events are sent to this URL. Maximum length of 4000 characters. Mandatory. The following event is sent to the endpoint:
|
| outboundStatus | string (EOutboundEndpointStatus) Enum: "ENABLED" "DISABLED" enum-descriptions: ["ENABLED: The endpoint is enabled and calls are allowed.","DISABLED: The endpoint is disabled and calls should be avoided, since they won't work."] The status of an Outbound Web-API endpoint. |
| outboundSecret | string Optional secret sent with each outbound event. Mandatory. Maximum length of 4000 characters. |
| outboundApiVersion | string (EWebApiVersion) Enum: "V1" "V2" "V3" "V4" enum-descriptions: ["V1: Version 1 of the Web-API. Introduced with Unblu 4.x.","V2: Version 2 of the Web-API. Introduced with Unblu 5.","V3: Version 3 of the Web-API. Introduced with Unblu 6.","V4: Version 4 of the Web-API. Introduced with Unblu 8."] Version of the Web-API. Version of API corresponds to a path element of the request URL. E.g.: /rest/v3/<service>/... |
| retryCount | integer <int64> Defines the number of retries for failed outbound requests. If omitted, it defaults to 0. |
| retryDelay | integer <int64> Defines the delay between retries for failed outbound requests. If omitted, it defaults to 0. |
| order | integer <int64> Order of execution of the file upload interceptor among all the file upload interceptors configured in the account. Mandatory. |
| timeoutMillis | integer <int64> A long for the amount of miliseconds until the timeout of the interceptor occurs. |
Create a new conversation access interceptor
{- "$_type": "ConversationAccessInterceptorData",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "accountId": null,
- "name": "test-conversation-access-interceptor-",
- "description": null,
- "timeoutBehavior": "CONTINUE",
- "interceptedOpeningTypes": [
- "ACCESS_AS_AGENT_PARTICIPANT",
- "ACCESS_AS_GHOST_PARTICIPANT"
], - "outboundStatus": "DISABLED",
- "outboundSecret": null,
- "outboundApiVersion": "V4",
- "retryCount": null,
- "retryDelay": null,
- "order": 3,
- "timeoutMillis": 5000
}New conversation access interceptor
{- "$_type": "ConversationAccessInterceptorData",
- "id": "03NX1BKHQhGg5MxxXUvUog",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "test-conversation-access-interceptor-",
- "description": null,
- "timeoutBehavior": "CONTINUE",
- "interceptedOpeningTypes": [
- "ACCESS_AS_AGENT_PARTICIPANT",
- "ACCESS_AS_GHOST_PARTICIPANT"
], - "outboundStatus": "DISABLED",
- "outboundSecret": null,
- "outboundApiVersion": "V4",
- "retryCount": 0,
- "retryDelay": 0,
- "order": 3,
- "timeoutMillis": 5000
}Deletes an existing conversation access interceptor. If the interceptor to be deleted can't be found, the HTTP status code 204 is returned.
| interceptorId required | string The ID of the conversation access interceptor which should be deleted |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Searches for a conversation access interceptor with the given name
| name | string The name of the conversation access interceptor |
Conversation access interceptor
{- "$_type": "ConversationAccessInterceptorData",
- "id": "03NX1BKHQhGg5MxxXUvUog",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "test-conversation-access-interceptor-",
- "description": null,
- "timeoutBehavior": "CONTINUE",
- "interceptedOpeningTypes": [
- "ACCESS_AS_AGENT_PARTICIPANT",
- "ACCESS_AS_GHOST_PARTICIPANT"
], - "outboundStatus": "DISABLED",
- "outboundSecret": null,
- "outboundApiVersion": "V4",
- "retryCount": 0,
- "retryDelay": 0,
- "order": 1,
- "timeoutMillis": 5000
}Reads an existing conversation access interceptor
| interceptorId required | string The ID of the conversation access interceptor to read |
Conversation access interceptor
{- "$_type": "ConversationAccessInterceptorData",
- "id": "03NX1BKHQhGg5MxxXUvUog",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "test-conversation-access-interceptor-",
- "description": null,
- "timeoutBehavior": "CONTINUE",
- "interceptedOpeningTypes": [
- "ACCESS_AS_AGENT_PARTICIPANT",
- "ACCESS_AS_GHOST_PARTICIPANT"
], - "outboundStatus": "DISABLED",
- "outboundSecret": null,
- "outboundApiVersion": "V4",
- "retryCount": 0,
- "retryDelay": 0,
- "order": 1,
- "timeoutMillis": 5000
}Searches for conversation access interceptor in the current account
| $_type | string Default: "ConversationAccessInterceptorQuery" Value: "ConversationAccessInterceptorQuery" |
Array of any (ConversationAccessInterceptorSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (ConversationAccessInterceptorOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "ConversationAccessInterceptorQuery",
- "searchFilters": [
- {
- "$_type": "CreationTimestampConversationAccessInterceptorSearchFilter",
- "field": "NAME",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
], - "orderBy": [
- {
- "$_type": "ConversationAccessInterceptorOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "ConversationAccessInterceptorResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "ConversationAccessInterceptorData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "timeoutBehavior": "REJECT",
- "interceptedOpeningTypes": [
- "ACCESS_AS_VISITOR_PARTICIPANT"
], - "outboundEndpoint": "string",
- "outboundStatus": "ENABLED",
- "outboundSecret": "string",
- "outboundApiVersion": "V1",
- "retryCount": 0,
- "retryDelay": 0,
- "order": 0,
- "timeoutMillis": 0
}
]
}Emits a PingRequest on the configured outbound endpoint for the conversation access interceptor.
| interceptorId required | string The ID of a conversation access interceptor |
{- "$_type": "PingResponse",
- "pingId": "string"
}Updates an existing conversation access interceptor
The conversation access interceptor to update
| $_type | string Default: "ConversationAccessInterceptorData" Value: "ConversationAccessInterceptorData" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string A model representing a conversation access interceptor. These interceptors are used to approve or reject an attempt to join a conversation. Mandatory. |
| description | string Description of the conversation access interceptor. Maximum length of 500 characters. |
| timeoutBehavior | string (EConversationAccessInterceptorTimeoutBehavior) Enum: "REJECT" "CONTINUE" enum-descriptions: ["REJECT: Reject the access attempt when a timeout occurs","CONTINUE: Grant access to the conversation when a timeout occurs"] What should happen with a message when a timeout occurs during interception. |
| interceptedOpeningTypes | Array of strings (EConversationAccessType) Items Enum: "ACCESS_AS_VISITOR_PARTICIPANT" "ACCESS_AS_AGENT_PARTICIPANT" "ACCESS_AS_GHOST_PARTICIPANT" "ACCESS_AS_GHOST_WITHOUT_PARTICIPATION" Defines the different ways in which a conversation can be opened and which of these are intercepted. Mandatory. |
| outboundEndpoint | string The URL of the outbound request registration endpoint. Requests for outbound request events are sent to this URL. Maximum length of 4000 characters. Mandatory. The following event is sent to the endpoint:
|
| outboundStatus | string (EOutboundEndpointStatus) Enum: "ENABLED" "DISABLED" enum-descriptions: ["ENABLED: The endpoint is enabled and calls are allowed.","DISABLED: The endpoint is disabled and calls should be avoided, since they won't work."] The status of an Outbound Web-API endpoint. |
| outboundSecret | string Optional secret sent with each outbound event. Mandatory. Maximum length of 4000 characters. |
| outboundApiVersion | string (EWebApiVersion) Enum: "V1" "V2" "V3" "V4" enum-descriptions: ["V1: Version 1 of the Web-API. Introduced with Unblu 4.x.","V2: Version 2 of the Web-API. Introduced with Unblu 5.","V3: Version 3 of the Web-API. Introduced with Unblu 6.","V4: Version 4 of the Web-API. Introduced with Unblu 8."] Version of the Web-API. Version of API corresponds to a path element of the request URL. E.g.: /rest/v3/<service>/... |
| retryCount | integer <int64> Defines the number of retries for failed outbound requests. If omitted, it defaults to 0. |
| retryDelay | integer <int64> Defines the delay between retries for failed outbound requests. If omitted, it defaults to 0. |
| order | integer <int64> Order of execution of the file upload interceptor among all the file upload interceptors configured in the account. Mandatory. |
| timeoutMillis | integer <int64> A long for the amount of miliseconds until the timeout of the interceptor occurs. |
{- "$_type": "ConversationAccessInterceptorData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "timeoutBehavior": "REJECT",
- "interceptedOpeningTypes": [
- "ACCESS_AS_VISITOR_PARTICIPANT"
], - "outboundEndpoint": "string",
- "outboundStatus": "ENABLED",
- "outboundSecret": "string",
- "outboundApiVersion": "V1",
- "retryCount": 0,
- "retryDelay": 0,
- "order": 0,
- "timeoutMillis": 0
}{- "$_type": "ConversationAccessInterceptorData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "timeoutBehavior": "REJECT",
- "interceptedOpeningTypes": [
- "ACCESS_AS_VISITOR_PARTICIPANT"
], - "outboundEndpoint": "string",
- "outboundStatus": "ENABLED",
- "outboundSecret": "string",
- "outboundApiVersion": "V1",
- "retryCount": 0,
- "retryDelay": 0,
- "order": 0,
- "timeoutMillis": 0
}Export messages belonging to a specific conversation
| conversationId required | string id of the conversation |
| $_type | string Default: "MessageExportQuery" Value: "MessageExportQuery" |
Array of any (MessageExportFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (MessageExportOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "MessageExportQuery",
- "searchFilters": [
- {
- "$_type": "SendTimestampMessageExportFilter",
- "field": "SEND_TIMESTAMP",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
], - "orderBy": [
- {
- "$_type": "MessageExportOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "MessageExportResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "ConversationHistoryMessageData",
- "id": "string",
- "conversationId": "string",
- "sendTimestamp": 0,
- "serverTimestamp": 0,
- "senderPersonId": "string",
- "type": "TEXT",
- "internal": true,
- "replyToMessageId": "string",
- "externalMessageId": "string",
- "recipientPersonIds": [
- "string"
], - "botThreadId": "string",
- "rejectionSeverity": "HIGH",
- "rejectionReason": "string",
- "text": "string",
- "deletedForAll": {
- "$_type": "MessageDeletionForAllInfo",
- "personId": "string",
- "deletionTimestamp": 0
}, - "deletedForSelf": [
- {
- "$_type": "MessageDeletionForSelfInfo",
- "personId": "string",
- "deletionTimestamp": 0
}
]
}
]
}Gets the list of conversation recordings belonging to a specific conversation
| conversationId required | string ID of the conversation |
{- "$_type": "ConversationRecordingHistoryDataList",
- "items": [
- {
- "$_type": "ConversationRecordingHistoryData",
- "conversationId": "string",
- "blobStoreId": "string",
- "fileName": "string",
- "mimeType": "string",
- "totalSize": 0,
- "downloadLinks": [
- {
- "$_type": "DownloadLink",
- "type": "WEB_API",
- "url": "string"
}
], - "recordingStartTimestamp": 0,
- "recordingEndTimestamp": 0,
- "status": "INITIALIZING",
- "endReason": "NORMAL",
- "recordingType": "AUDIO",
- "callIds": [
- "string"
]
}
]
}Returns the conversation history data for a given conversation.
| conversationId required | string id of the conversation |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "ConversationHistoryData",
- "id": "string",
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "endPerson": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "participants": [
- {
- "$_type": "ParticipantHistoryData",
- "state": "CREATED",
- "createdTimestamp": 0,
- "joinedTimestamp": 0,
- "activationTimestamp": 0,
- "offboardingTimestamp": 0,
- "leftTimestamp": 0,
- "leftReason": "FORWARDED",
- "leftComment": "string",
- "conversationRating": 0,
- "conversationFeedback": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT",
- "person": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "joinedAsAssistant": true
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantHistoryData",
- "state": "CREATED",
- "createdTimestamp": 0,
- "joinedTimestamp": 0,
- "activationTimestamp": 0,
- "offboardingTimestamp": 0,
- "leftTimestamp": 0,
- "leftReason": "FORWARDED",
- "leftComment": "string",
- "conversationRating": 0,
- "conversationFeedback": "string",
- "participationType": "CONTEXT_PERSON",
- "person": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "externalMessengerContact": {
- "$_type": "ExternalMessengerContact",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "externalMessengerChannelId": "string",
- "sourceId": "string",
- "personId": "string"
}
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantHistoryData",
- "state": "CREATED",
- "createdTimestamp": 0,
- "joinedTimestamp": 0,
- "activationTimestamp": 0,
- "offboardingTimestamp": 0,
- "leftTimestamp": 0,
- "hidden": true,
- "person": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "createdTimestamp": 0,
- "assigneeJoinTimestamp": 0,
- "endTimestamp": 0,
- "lastMessageTimestamp": 0,
- "lastCompletedRecordingTimestamp": 0,
- "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "locale": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "endComment": "string",
- "tokboxSessionId": "string",
- "conversationTemplateId": "string",
- "externalMessengerChannelIconId": "string",
- "externalMessengerChannelName": "string",
- "topic": "string",
- "sourceUrl": "string",
- "scheduledTimestamp": 0,
- "dueDeletionTimestamp": 0,
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "conversationVisibility": "PRIVATE",
- "stateChanges": [
- {
- "$_type": "ConversationStateChangeData",
- "state": "CREATED",
- "timestamp": 0
}
]
}Generic conversation history search.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The Conversation history query.
| $_type | string Default: "ConversationHistoryQuery" Value: "ConversationHistoryQuery" |
Array of any (ConversationHistorySearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (ConversationHistoryOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "ConversationHistoryQuery",
- "searchFilters": [
- {
- "$_type": "ParticipantPersonIdConversationHistorySearchFilter",
- "field": "COMPOUND",
- "operator": {
- "$_type": "AllOfIdListOperator",
- "type": "ALL_OF",
- "values": [
- "string"
]
}
}
], - "orderBy": [
- {
- "$_type": "ConversationHistoryOrderBy",
- "field": "CREATION_TIMESTAMP",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "ConversationHistoryDataResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "ConversationHistoryData",
- "id": "string",
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "endPerson": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "participants": [
- {
- "$_type": "ParticipantHistoryData",
- "state": "CREATED",
- "createdTimestamp": 0,
- "joinedTimestamp": 0,
- "activationTimestamp": 0,
- "offboardingTimestamp": 0,
- "leftTimestamp": 0,
- "leftReason": "FORWARDED",
- "leftComment": "string",
- "conversationRating": 0,
- "conversationFeedback": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT",
- "person": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "joinedAsAssistant": true
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantHistoryData",
- "state": "CREATED",
- "createdTimestamp": 0,
- "joinedTimestamp": 0,
- "activationTimestamp": 0,
- "offboardingTimestamp": 0,
- "leftTimestamp": 0,
- "leftReason": "FORWARDED",
- "leftComment": "string",
- "conversationRating": 0,
- "conversationFeedback": "string",
- "participationType": "CONTEXT_PERSON",
- "person": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "externalMessengerContact": {
- "$_type": "ExternalMessengerContact",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "externalMessengerChannelId": "string",
- "sourceId": "string",
- "personId": "string"
}
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantHistoryData",
- "state": "CREATED",
- "createdTimestamp": 0,
- "joinedTimestamp": 0,
- "activationTimestamp": 0,
- "offboardingTimestamp": 0,
- "leftTimestamp": 0,
- "hidden": true,
- "person": {
- "$_type": "PersonData",
- "id": "string",
- "accountId": "string",
- "personSource": "USER_DB",
- "sourceId": "string",
- "sourceUrl": "string",
- "sourceData": "string",
- "firstName": "string",
- "lastName": "string",
- "username": "string",
- "nickname": "string",
- "displayName": "string",
- "displayNameForAgent": "string",
- "displayNameForVisitor": "string",
- "personType": "AGENT",
- "authorizationRole": "SUPER_ADMIN",
- "email": "string",
- "phone": "string",
- "teamId": "string",
- "labels": [
- {
- "$_type": "PersonLabel",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "color": "string",
- "settableOn": [
- "AGENT"
], - "readableByRoles": [
- "SUPERVISOR"
], - "settableByRoles": [
- "SUPERVISOR"
], - "displayedToRoles": [
- "SUPERVISOR"
]
}
], - "note": "string",
- "noteLastEditedTimestamp": 0,
- "noteLastEditedPersonId": "string",
- "links": [
- {
- "$_type": "PersonLink",
- "type": "AGENT_DESK_VISITOR_DETAILS",
- "url": "string"
}
], - "avatar": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "createdTimestamp": 0,
- "assigneeJoinTimestamp": 0,
- "endTimestamp": 0,
- "lastMessageTimestamp": 0,
- "lastCompletedRecordingTimestamp": 0,
- "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "locale": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "endComment": "string",
- "tokboxSessionId": "string",
- "conversationTemplateId": "string",
- "externalMessengerChannelIconId": "string",
- "externalMessengerChannelName": "string",
- "topic": "string",
- "sourceUrl": "string",
- "scheduledTimestamp": 0,
- "dueDeletionTimestamp": 0,
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "conversationVisibility": "PRIVATE",
- "stateChanges": [
- {
- "$_type": "ConversationStateChangeData",
- "state": "CREATED",
- "timestamp": 0
}
]
}
]
}getAvailableTranslations operation
| conversationSummaryId required | string The ID of the conversation summary used for the research |
{- "$_type": "ConversationSummaryAvailableTranslations",
- "conversationSummaryId": "string",
- "languages": [
- "string"
]
}Searches for a conversation summary with the given conversationId
| conversationId | string The conversationId of the conversation |
{- "$_type": "ConversationSummaryResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "ConversationSummaryData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "summaryTriggerType": "CONVERSATION_OFFBOARDING",
- "conversationSummaryTemplateId": "string",
- "summarizationState": "PENDING",
- "requestingAgentPersonId": "string",
- "reviewingAgentPersonId": "string",
- "reviewTimestamp": 0,
- "rejectingReason": "string",
- "failReason": "TIMEOUT",
- "conversationId": "string",
- "firstMessageId": "string",
- "lastMessageId": "string",
- "summarizedMessagesCount": 0,
- "firstCallTranscriptId": "string",
- "lastCallTranscriptId": "string",
- "participatingPersonIds": [
- "string"
], - "startTimestamp": 0,
- "endTimestamp": 0,
- "processingTime": 0,
- "summaryServiceProvider": "NATIVE_LLM",
- "summaryServiceDetails": "string",
- "summarizedContentLength": 0,
- "generatedSummary": "string",
- "reviewedSummary": "string",
- "summaryLanguage": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true
}
]
}Reads an existing conversation summary.
| conversationSummaryId required | string The ID of the conversation summary to read |
{- "$_type": "ConversationSummaryData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "summaryTriggerType": "CONVERSATION_OFFBOARDING",
- "conversationSummaryTemplateId": "string",
- "summarizationState": "PENDING",
- "requestingAgentPersonId": "string",
- "reviewingAgentPersonId": "string",
- "reviewTimestamp": 0,
- "rejectingReason": "string",
- "failReason": "TIMEOUT",
- "conversationId": "string",
- "firstMessageId": "string",
- "lastMessageId": "string",
- "summarizedMessagesCount": 0,
- "firstCallTranscriptId": "string",
- "lastCallTranscriptId": "string",
- "participatingPersonIds": [
- "string"
], - "startTimestamp": 0,
- "endTimestamp": 0,
- "processingTime": 0,
- "summaryServiceProvider": "NATIVE_LLM",
- "summaryServiceDetails": "string",
- "summarizedContentLength": 0,
- "generatedSummary": "string",
- "reviewedSummary": "string",
- "summaryLanguage": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true
}Searches for conversation summaries in the current account
| $_type | string Default: "ConversationSummaryQuery" Value: "ConversationSummaryQuery" |
Array of any (ConversationSummarySearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (ConversationSummaryOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "ConversationSummaryQuery",
- "searchFilters": [
- {
- "$_type": "CreationTimestampConversationSummarySearchFilter",
- "field": "CONVERSATION_ID",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
], - "orderBy": [
- {
- "$_type": "ConversationSummaryOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "ConversationSummaryResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "ConversationSummaryData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "accountId": "string",
- "summaryTriggerType": "CONVERSATION_OFFBOARDING",
- "conversationSummaryTemplateId": "string",
- "summarizationState": "PENDING",
- "requestingAgentPersonId": "string",
- "reviewingAgentPersonId": "string",
- "reviewTimestamp": 0,
- "rejectingReason": "string",
- "failReason": "TIMEOUT",
- "conversationId": "string",
- "firstMessageId": "string",
- "lastMessageId": "string",
- "summarizedMessagesCount": 0,
- "firstCallTranscriptId": "string",
- "lastCallTranscriptId": "string",
- "participatingPersonIds": [
- "string"
], - "startTimestamp": 0,
- "endTimestamp": 0,
- "processingTime": 0,
- "summaryServiceProvider": "NATIVE_LLM",
- "summaryServiceDetails": "string",
- "summarizedContentLength": 0,
- "generatedSummary": "string",
- "reviewedSummary": "string",
- "summaryLanguage": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true
}
]
}Creates a new conversation summary template
The conversation summary template to create
| $_type | string Default: "ConversationSummaryTemplateData" Value: "ConversationSummaryTemplateData" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string Name of the conversation summary template. Maximum length of 250 characters. Mandatory. |
| description | string Description of the conversation summary template. Maximum length of 500 characters. |
| reviewRequired | boolean Specify whether summaries created with this template require reviewing. Mandatory. |
| reviewableBy | Array of strings (EConversationAgentParticipationType) Items Enum: "ASSIGNED_AGENT" "SECONDARY_AGENT" "GHOST" Conversation participation types allowed to review summaries created with this template. Mandatory if |
| visibleTo | Array of strings (EConversationAgentParticipationType) Items Enum: "ASSIGNED_AGENT" "SECONDARY_AGENT" "GHOST" Conversation participation types allowed to see summaries created with this template. Mandatory. |
| summarizationLanguageConfiguration | string (ESummarizationLanguageConfiguration) Enum: "CONVERSATION_LANGUAGE" "DEFINED_LANGUAGE" enum-descriptions: ["CONVERSATION_LANGUAGE: Summary will be generated using the conversation language.","DEFINED_LANGUAGE: Summary will be generated using the language defined with the `ConversationSummaryTemplate` specificGenerationLanguage field."] |
| specificGenerationLanguage | string The language used for all summaries created with this template. Mandatory if summarizationLanguageConfiguration is set to DEFINED_LANGUAGE, ignored otherwise. |
| promptStructure | string Customizable part of the prompt used to generate summaries. It describes the expected output structure of the summary. Maximum length of 2000 characters. Optional. |
| promptCustomization | string Customizable part of the prompt used to generate summaries. It describes specific behavior the model should have when generating the summary. Maximum length of 2000 characters. Optional. |
| minCharacterCountFilter | integer <int64> Minimum character count to generate a summary. If the number of characters is smaller than this value, no summary is created. Mandatory. |
| summarizationTimeFrame | string (ESummarizationTimeFrame) Enum: "WHOLE_CONVERSATION" "UNTIL_LAST_SUMMARY" "UNTIL_LAST_UNASSIGNED" "TRIGGER_SPECIFIC" enum-descriptions: ["WHOLE_CONVERSATION: The entire conversation will be used to generate the summary","UNTIL_LAST_SUMMARY: All the messages sent in the conversation, after last summary was generated, will be used to generate the summary","UNTIL_LAST_UNASSIGNED: All the messages sent in the conversation, after the second last time the conversation moved to the `EConversationState.UNASSIGNED`, and before the last time the conversation moved to the `EConversationState.UNASSIGNED`, will be used to generate the summary","TRIGGER_SPECIFIC: The time frame of the messages used to generate the summary will depend on the `EConversationSummaryTriggerType` triggering the summary generation"] |
| includeInternalMessages | boolean Specify whether internal messages should be used when generating summaries with this template. Mandatory. |
| includeOnboardingMessages | boolean Specify whether messages sent during onboarding should be used when generating summaries with this template. Mandatory. |
| includeOffboardingMessages | boolean Specify whether messages sent during offboarding should be used when generating summaries with this template. Mandatory. |
| includeReboardingMessages | boolean Specify whether messages sent during reboarding are taken into account for the summary. Mandatory. |
object A map of localized versions of the name and description of this entity |
{- "$_type": "ConversationSummaryTemplateData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationLanguageConfiguration": "CONVERSATION_LANGUAGE",
- "specificGenerationLanguage": "string",
- "promptStructure": "string",
- "promptCustomization": "string",
- "minCharacterCountFilter": 0,
- "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true,
- "translations": {
- "property1": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}
}{- "$_type": "ConversationSummaryTemplateData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationLanguageConfiguration": "CONVERSATION_LANGUAGE",
- "specificGenerationLanguage": "string",
- "promptStructure": "string",
- "promptCustomization": "string",
- "minCharacterCountFilter": 0,
- "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true,
- "translations": {
- "property1": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}
}Deletes an existing conversation summary template
| conversationSummaryTemplateId required | string The ID of the conversation summary template which should be deleted |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Searches for a conversation summary template with the given name
| name | string The name of the conversation summary template |
{- "$_type": "ConversationSummaryTemplateData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationLanguageConfiguration": "CONVERSATION_LANGUAGE",
- "specificGenerationLanguage": "string",
- "promptStructure": "string",
- "promptCustomization": "string",
- "minCharacterCountFilter": 0,
- "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true,
- "translations": {
- "property1": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}
}Reads an existing conversation summary template.
| conversationSummaryTemplateId required | string The ID of the conversation summary template to read |
{- "$_type": "ConversationSummaryTemplateData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationLanguageConfiguration": "CONVERSATION_LANGUAGE",
- "specificGenerationLanguage": "string",
- "promptStructure": "string",
- "promptCustomization": "string",
- "minCharacterCountFilter": 0,
- "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true,
- "translations": {
- "property1": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}
}Searches for conversation summary templates in the current account
| $_type | string Default: "ConversationSummaryTemplateQuery" Value: "ConversationSummaryTemplateQuery" |
Array of any (ConversationSummaryTemplateSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (ConversationSummaryTemplateOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "ConversationSummaryTemplateQuery",
- "searchFilters": [
- {
- "$_type": "CreationTimestampConversationSummaryTemplateSearchFilter",
- "field": "NAME",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
], - "orderBy": [
- {
- "$_type": "ConversationSummaryTemplateOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "ConversationSummaryTemplateResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "ConversationSummaryTemplateData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationLanguageConfiguration": "CONVERSATION_LANGUAGE",
- "specificGenerationLanguage": "string",
- "promptStructure": "string",
- "promptCustomization": "string",
- "minCharacterCountFilter": 0,
- "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true,
- "translations": {
- "property1": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}
}
]
}Updates an existing conversation summary template
The conversation summary template to update
| $_type | string Default: "ConversationSummaryTemplateData" Value: "ConversationSummaryTemplateData" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string Name of the conversation summary template. Maximum length of 250 characters. Mandatory. |
| description | string Description of the conversation summary template. Maximum length of 500 characters. |
| reviewRequired | boolean Specify whether summaries created with this template require reviewing. Mandatory. |
| reviewableBy | Array of strings (EConversationAgentParticipationType) Items Enum: "ASSIGNED_AGENT" "SECONDARY_AGENT" "GHOST" Conversation participation types allowed to review summaries created with this template. Mandatory if |
| visibleTo | Array of strings (EConversationAgentParticipationType) Items Enum: "ASSIGNED_AGENT" "SECONDARY_AGENT" "GHOST" Conversation participation types allowed to see summaries created with this template. Mandatory. |
| summarizationLanguageConfiguration | string (ESummarizationLanguageConfiguration) Enum: "CONVERSATION_LANGUAGE" "DEFINED_LANGUAGE" enum-descriptions: ["CONVERSATION_LANGUAGE: Summary will be generated using the conversation language.","DEFINED_LANGUAGE: Summary will be generated using the language defined with the `ConversationSummaryTemplate` specificGenerationLanguage field."] |
| specificGenerationLanguage | string The language used for all summaries created with this template. Mandatory if summarizationLanguageConfiguration is set to DEFINED_LANGUAGE, ignored otherwise. |
| promptStructure | string Customizable part of the prompt used to generate summaries. It describes the expected output structure of the summary. Maximum length of 2000 characters. Optional. |
| promptCustomization | string Customizable part of the prompt used to generate summaries. It describes specific behavior the model should have when generating the summary. Maximum length of 2000 characters. Optional. |
| minCharacterCountFilter | integer <int64> Minimum character count to generate a summary. If the number of characters is smaller than this value, no summary is created. Mandatory. |
| summarizationTimeFrame | string (ESummarizationTimeFrame) Enum: "WHOLE_CONVERSATION" "UNTIL_LAST_SUMMARY" "UNTIL_LAST_UNASSIGNED" "TRIGGER_SPECIFIC" enum-descriptions: ["WHOLE_CONVERSATION: The entire conversation will be used to generate the summary","UNTIL_LAST_SUMMARY: All the messages sent in the conversation, after last summary was generated, will be used to generate the summary","UNTIL_LAST_UNASSIGNED: All the messages sent in the conversation, after the second last time the conversation moved to the `EConversationState.UNASSIGNED`, and before the last time the conversation moved to the `EConversationState.UNASSIGNED`, will be used to generate the summary","TRIGGER_SPECIFIC: The time frame of the messages used to generate the summary will depend on the `EConversationSummaryTriggerType` triggering the summary generation"] |
| includeInternalMessages | boolean Specify whether internal messages should be used when generating summaries with this template. Mandatory. |
| includeOnboardingMessages | boolean Specify whether messages sent during onboarding should be used when generating summaries with this template. Mandatory. |
| includeOffboardingMessages | boolean Specify whether messages sent during offboarding should be used when generating summaries with this template. Mandatory. |
| includeReboardingMessages | boolean Specify whether messages sent during reboarding are taken into account for the summary. Mandatory. |
object A map of localized versions of the name and description of this entity |
{- "$_type": "ConversationSummaryTemplateData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationLanguageConfiguration": "CONVERSATION_LANGUAGE",
- "specificGenerationLanguage": "string",
- "promptStructure": "string",
- "promptCustomization": "string",
- "minCharacterCountFilter": 0,
- "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true,
- "translations": {
- "property1": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}
}{- "$_type": "ConversationSummaryTemplateData",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "reviewRequired": true,
- "reviewableBy": [
- "ASSIGNED_AGENT"
], - "visibleTo": [
- "ASSIGNED_AGENT"
], - "summarizationLanguageConfiguration": "CONVERSATION_LANGUAGE",
- "specificGenerationLanguage": "string",
- "promptStructure": "string",
- "promptCustomization": "string",
- "minCharacterCountFilter": 0,
- "summarizationTimeFrame": "WHOLE_CONVERSATION",
- "includeInternalMessages": true,
- "includeOnboardingMessages": true,
- "includeOffboardingMessages": true,
- "includeReboardingMessages": true,
- "translations": {
- "property1": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationSummaryTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}
}Creates the given entity in the system. The ID of the entity is ignored for create operations, a new one is generated.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The entity to create
| $_type | string Default: "ConversationTemplate" Value: "ConversationTemplate" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string Name of the conversation template. Maximum of 250 characters. Mandatory. |
| description | string Description of the conversation template. Maximum of 500 characters. Optional. |
| defaultTemplate | boolean If true, this will be the default template for the initial engagement Type |
| conversationVisibility | string (EConversationVisibility) Enum: "PRIVATE" "RULE_BASED" enum-descriptions: ["PRIVATE: Conversation can only be seen by participants","RULE_BASED: Conversation can be seen by participants as well as non-participating agents who can see the conversation's context person based on their visibility rules"] The visibility of a conversation. The visibility used at creation time determines who is allowed to see the conversation. |
| initialEngagementType | string (EInitialEngagementType) Enum: "CHAT_REQUEST" "OFFLINE_CHAT_REQUEST" "VIDEO_REQUEST" "AUDIO_REQUEST" "HEADLESS_BROWSER_REQUEST" "DOMCAP_BROWSER_REQUEST" "MOBILE_COBROWSING_REQUEST" "WHITEBOARD_REQUEST" "SCREEN_SHARING_REQUEST" "VISITOR_COBROWSING" "BRANCH_CLIENT_REQUEST" "HEADLESS_PIN" "DOMCAP_PIN" "MOBILE_PIN" "WHITEBOARD_PIN" "SCREEN_SHARING_PIN" "CHAT_PIN" "CHAT_INVITE" "EMBEDDED_COBROWSING_INVITE" "HEADLESS_INVITE" "MOBILE_COBROWSING_INVITE" "WHITEBOARD_INVITE" "SCREEN_SHARING_INVITE" "SCHEDULED_CONVERSATION" "BRANCH_CLIENT_PREVIEW" enum-descriptions: ["CHAT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming chat conversation.","OFFLINE_CHAT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming chat conversation while all agents are offline.","VIDEO_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming video conversation.","AUDIO_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming audio conversation.","HEADLESS_BROWSER_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming universal co-browsing conversation.","DOMCAP_BROWSER_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming embedded co-browsing conversation.","MOBILE_COBROWSING_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming mobile co-browsing conversation.","WHITEBOARD_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming whiteboard conversation.","SCREEN_SHARING_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming screen sharing conversation.","VISITOR_COBROWSING: (Api initiated, visitor centered) A visitor creates a conversation via API which is not added to the queue and where he can invite other visitor to do embedded","BRANCH_CLIENT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming conversation from a branch client.","HEADLESS_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join an universal co-browsing conversation.","DOMCAP_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join an embedded co-browsing conversation.","MOBILE_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a mobile co-browsing conversation.","WHITEBOARD_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a whiteboard conversation.","SCREEN_SHARING_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a screen sharing conversation.","CHAT_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a chat conversation.","CHAT_INVITE: (Web-API initiated, agent centered) A chat conversation is created for a visitor to join a chat conversation.","EMBEDDED_COBROWSING_INVITE: (Agent initiated, agent centered) An agent creates an embedded co-browsing conversation and invites customer later.","HEADLESS_INVITE: (Agent initiated, agent centered) An agent creates universal co-browsing conversation and invites customer later.","MOBILE_COBROWSING_INVITE: (Agent initiated, agent centered) An agent creates a mobile co-browsing conversation and invites customer later.","WHITEBOARD_INVITE: (Agent initiated, agent centered) An agent creates whiteboard conversation and invites customer later.","SCREEN_SHARING_INVITE: (Agent initiated, agent centered) An agent creates screen sharing conversation and invites customer later.","SCHEDULED_CONVERSATION: (Agent initiated, agent centered) Conversation created with a certain topic and scheduled for some point in time.","BRANCH_CLIENT_PREVIEW: (Agent initiated, agent centered) Conversation created by an agent to view a branch client."] The initial type of a conversation. The type used at creation time of the conversation determines the conversation template that is used. |
object A map of localized versions of the name and description of this entity | |
| inheritConfigurationAndTexts | boolean True if conversations, created from this template, inherit all configuration and texts. If omitted, the property is set to false. New conversations receive a copy of this conversation template's configuration and texts. |
object expand-query-key: configuration type: Map The entity's configuration properties. Only contains values when the 'expand' query parameter is used with the value 'configuration'. Not filled in webhook events. | |
object expand-query-key: text type: Map The entity's text properties. Only contains values when the 'expand' query parameter is used with the value 'text'. Not filled in webhook events. | |
object expand-query-key: metadata type: Map The entity's metadata properties. Only contains values when the 'expand' query parameter is used with the value 'metadata'. Not filled in webhook events. |
Create a ConversationTemplate with translations of the name and description for it
{- "$_type": "ConversationTemplate",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "accountId": null,
- "name": "with-translations-test",
- "description": "The Conversation Template",
- "defaultTemplate": false,
- "conversationVisibility": "PRIVATE",
- "initialEngagementType": "CHAT_INVITE",
- "translations": {
- "de": {
- "$_type": "ConversationTemplateTranslation",
- "id": null,
- "name": "Kreditanstalt",
- "description": "Bieten kurzfristige Darlehen"
}, - "en": {
- "$_type": "ConversationTemplateTranslation",
- "id": null,
- "name": "Loan bank",
- "description": "Offering short term loans"
}
}, - "inheritConfigurationAndTexts": true,
- "configuration": null,
- "text": null,
- "metadata": null
}Create a ConversationTemplate with translations of the name and description for it
{- "$_type": "ConversationTemplate",
- "id": "ab32em6Be-5le_48rE1F9Ad",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "name": "with-translations-test",
- "description": "The Conversation Template",
- "defaultTemplate": false,
- "conversationVisibility": "PRIVATE",
- "initialEngagementType": "CHAT_INVITE",
- "translations": {
- "de": {
- "$_type": "ConversationTemplateTranslation",
- "id": "dPsIfqoiTjGhjtRyesrEBQ",
- "name": "Kreditanstalt",
- "description": "Bieten kurzfristige Darlehen"
}, - "en": {
- "$_type": "ConversationTemplateTranslation",
- "id": "dPsIfqoiTjGhjtRyesrEBQ",
- "name": "Loan bank",
- "description": "Offering short term loans"
}
}, - "inheritConfigurationAndTexts": true,
- "configuration": null,
- "text": null,
- "metadata": null
}Deletes the template with the given ID
| templateId required | string The ID of the template which should be deleted |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Gets the default conversation template for a given initial engagement type
| initialEngagementType | string (EInitialEngagementType) Enum: "CHAT_REQUEST" "OFFLINE_CHAT_REQUEST" "VIDEO_REQUEST" "AUDIO_REQUEST" "HEADLESS_BROWSER_REQUEST" "DOMCAP_BROWSER_REQUEST" "MOBILE_COBROWSING_REQUEST" "WHITEBOARD_REQUEST" "SCREEN_SHARING_REQUEST" "VISITOR_COBROWSING" "BRANCH_CLIENT_REQUEST" "HEADLESS_PIN" "DOMCAP_PIN" "MOBILE_PIN" "WHITEBOARD_PIN" "SCREEN_SHARING_PIN" "CHAT_PIN" "CHAT_INVITE" "EMBEDDED_COBROWSING_INVITE" "HEADLESS_INVITE" "MOBILE_COBROWSING_INVITE" "WHITEBOARD_INVITE" "SCREEN_SHARING_INVITE" "SCHEDULED_CONVERSATION" "BRANCH_CLIENT_PREVIEW" enum-descriptions: ["CHAT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming chat conversation.","OFFLINE_CHAT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming chat conversation while all agents are offline.","VIDEO_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming video conversation.","AUDIO_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming audio conversation.","HEADLESS_BROWSER_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming universal co-browsing conversation.","DOMCAP_BROWSER_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming embedded co-browsing conversation.","MOBILE_COBROWSING_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming mobile co-browsing conversation.","WHITEBOARD_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming whiteboard conversation.","SCREEN_SHARING_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming screen sharing conversation.","VISITOR_COBROWSING: (Api initiated, visitor centered) A visitor creates a conversation via API which is not added to the queue and where he can invite other visitor to do embedded","BRANCH_CLIENT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming conversation from a branch client.","HEADLESS_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join an universal co-browsing conversation.","DOMCAP_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join an embedded co-browsing conversation.","MOBILE_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a mobile co-browsing conversation.","WHITEBOARD_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a whiteboard conversation.","SCREEN_SHARING_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a screen sharing conversation.","CHAT_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a chat conversation.","CHAT_INVITE: (Web-API initiated, agent centered) A chat conversation is created for a visitor to join a chat conversation.","EMBEDDED_COBROWSING_INVITE: (Agent initiated, agent centered) An agent creates an embedded co-browsing conversation and invites customer later.","HEADLESS_INVITE: (Agent initiated, agent centered) An agent creates universal co-browsing conversation and invites customer later.","MOBILE_COBROWSING_INVITE: (Agent initiated, agent centered) An agent creates a mobile co-browsing conversation and invites customer later.","WHITEBOARD_INVITE: (Agent initiated, agent centered) An agent creates whiteboard conversation and invites customer later.","SCREEN_SHARING_INVITE: (Agent initiated, agent centered) An agent creates screen sharing conversation and invites customer later.","SCHEDULED_CONVERSATION: (Agent initiated, agent centered) Conversation created with a certain topic and scheduled for some point in time.","BRANCH_CLIENT_PREVIEW: (Agent initiated, agent centered) Conversation created by an agent to view a branch client."] The initial type of a conversation. The type used at creation time of the conversation determines the conversation template that is used. |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "ConversationTemplate",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "defaultTemplate": true,
- "conversationVisibility": "PRIVATE",
- "initialEngagementType": "CHAT_REQUEST",
- "translations": {
- "property1": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "inheritConfigurationAndTexts": true,
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}Returns the template with the given ID
| templateId required | string ID of the template which should be returned |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "ConversationTemplate",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "defaultTemplate": true,
- "conversationVisibility": "PRIVATE",
- "initialEngagementType": "CHAT_REQUEST",
- "translations": {
- "property1": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "inheritConfigurationAndTexts": true,
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}Gets a list of conversation templates with the given IDs. IDs that can't be found are ignored.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The IDs of the conversation templates to fetch
[- "string"
]{- "$_type": "ConversationTemplateList",
- "items": [
- {
- "$_type": "ConversationTemplate",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "defaultTemplate": true,
- "conversationVisibility": "PRIVATE",
- "initialEngagementType": "CHAT_REQUEST",
- "translations": {
- "property1": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "inheritConfigurationAndTexts": true,
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}
]
}Search for conversation-templates in the current account
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| $_type | string Default: "ConversationTemplateQuery" Value: "ConversationTemplateQuery" |
Array of any (ConversationTemplateSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (ConversationTemplateOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "ConversationTemplateQuery",
- "searchFilters": [
- {
- "$_type": "CreationTimestampConversationTemplateSearchFilter",
- "field": "NAME",
- "operator": {
- "$_type": "EqualsTimestampOperator",
- "type": "EQUALS",
- "value": 0
}
}
], - "orderBy": [
- {
- "$_type": "ConversationTemplateOrderBy",
- "field": "ID",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "ConversationTemplateResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "ConversationTemplate",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "defaultTemplate": true,
- "conversationVisibility": "PRIVATE",
- "initialEngagementType": "CHAT_REQUEST",
- "translations": {
- "property1": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "inheritConfigurationAndTexts": true,
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}
]
}Updates the entity in the system with the given entity.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The entity to update
| $_type | string Default: "ConversationTemplate" Value: "ConversationTemplate" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| name | string Name of the conversation template. Maximum of 250 characters. Mandatory. |
| description | string Description of the conversation template. Maximum of 500 characters. Optional. |
| defaultTemplate | boolean If true, this will be the default template for the initial engagement Type |
| conversationVisibility | string (EConversationVisibility) Enum: "PRIVATE" "RULE_BASED" enum-descriptions: ["PRIVATE: Conversation can only be seen by participants","RULE_BASED: Conversation can be seen by participants as well as non-participating agents who can see the conversation's context person based on their visibility rules"] The visibility of a conversation. The visibility used at creation time determines who is allowed to see the conversation. |
| initialEngagementType | string (EInitialEngagementType) Enum: "CHAT_REQUEST" "OFFLINE_CHAT_REQUEST" "VIDEO_REQUEST" "AUDIO_REQUEST" "HEADLESS_BROWSER_REQUEST" "DOMCAP_BROWSER_REQUEST" "MOBILE_COBROWSING_REQUEST" "WHITEBOARD_REQUEST" "SCREEN_SHARING_REQUEST" "VISITOR_COBROWSING" "BRANCH_CLIENT_REQUEST" "HEADLESS_PIN" "DOMCAP_PIN" "MOBILE_PIN" "WHITEBOARD_PIN" "SCREEN_SHARING_PIN" "CHAT_PIN" "CHAT_INVITE" "EMBEDDED_COBROWSING_INVITE" "HEADLESS_INVITE" "MOBILE_COBROWSING_INVITE" "WHITEBOARD_INVITE" "SCREEN_SHARING_INVITE" "SCHEDULED_CONVERSATION" "BRANCH_CLIENT_PREVIEW" enum-descriptions: ["CHAT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming chat conversation.","OFFLINE_CHAT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming chat conversation while all agents are offline.","VIDEO_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming video conversation.","AUDIO_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming audio conversation.","HEADLESS_BROWSER_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming universal co-browsing conversation.","DOMCAP_BROWSER_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming embedded co-browsing conversation.","MOBILE_COBROWSING_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming mobile co-browsing conversation.","WHITEBOARD_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming whiteboard conversation.","SCREEN_SHARING_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming screen sharing conversation.","VISITOR_COBROWSING: (Api initiated, visitor centered) A visitor creates a conversation via API which is not added to the queue and where he can invite other visitor to do embedded","BRANCH_CLIENT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming conversation from a branch client.","HEADLESS_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join an universal co-browsing conversation.","DOMCAP_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join an embedded co-browsing conversation.","MOBILE_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a mobile co-browsing conversation.","WHITEBOARD_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a whiteboard conversation.","SCREEN_SHARING_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a screen sharing conversation.","CHAT_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a chat conversation.","CHAT_INVITE: (Web-API initiated, agent centered) A chat conversation is created for a visitor to join a chat conversation.","EMBEDDED_COBROWSING_INVITE: (Agent initiated, agent centered) An agent creates an embedded co-browsing conversation and invites customer later.","HEADLESS_INVITE: (Agent initiated, agent centered) An agent creates universal co-browsing conversation and invites customer later.","MOBILE_COBROWSING_INVITE: (Agent initiated, agent centered) An agent creates a mobile co-browsing conversation and invites customer later.","WHITEBOARD_INVITE: (Agent initiated, agent centered) An agent creates whiteboard conversation and invites customer later.","SCREEN_SHARING_INVITE: (Agent initiated, agent centered) An agent creates screen sharing conversation and invites customer later.","SCHEDULED_CONVERSATION: (Agent initiated, agent centered) Conversation created with a certain topic and scheduled for some point in time.","BRANCH_CLIENT_PREVIEW: (Agent initiated, agent centered) Conversation created by an agent to view a branch client."] The initial type of a conversation. The type used at creation time of the conversation determines the conversation template that is used. |
object A map of localized versions of the name and description of this entity | |
| inheritConfigurationAndTexts | boolean True if conversations, created from this template, inherit all configuration and texts. If omitted, the property is set to false. New conversations receive a copy of this conversation template's configuration and texts. |
object expand-query-key: configuration type: Map The entity's configuration properties. Only contains values when the 'expand' query parameter is used with the value 'configuration'. Not filled in webhook events. | |
object expand-query-key: text type: Map The entity's text properties. Only contains values when the 'expand' query parameter is used with the value 'text'. Not filled in webhook events. | |
object expand-query-key: metadata type: Map The entity's metadata properties. Only contains values when the 'expand' query parameter is used with the value 'metadata'. Not filled in webhook events. |
{- "$_type": "ConversationTemplate",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "defaultTemplate": true,
- "conversationVisibility": "PRIVATE",
- "initialEngagementType": "CHAT_REQUEST",
- "translations": {
- "property1": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "inheritConfigurationAndTexts": true,
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}{- "$_type": "ConversationTemplate",
- "id": "string",
- "creationTimestamp": 0,
- "modificationTimestamp": 0,
- "version": 0,
- "accountId": "string",
- "name": "string",
- "description": "string",
- "defaultTemplate": true,
- "conversationVisibility": "PRIVATE",
- "initialEngagementType": "CHAT_REQUEST",
- "translations": {
- "property1": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}, - "property2": {
- "$_type": "ConversationTemplateTranslation",
- "id": "string",
- "name": "string",
- "description": "string"
}
}, - "inheritConfigurationAndTexts": true,
- "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}Adds a participant connected through an external messenger to the given conversation.
For participants that will write messages directly through Unblu, use addParticipant instead.
| conversationId required | string The conversation to update |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| externalMessengerContactId | string The ID of the |
{- "externalMessengerContactId": "string"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Adds a participant to the given conversation.
This can only be used for participants who send messages through Unblu. Use addExternalParticipant for participants who send messages through an external messenger channel.
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| personId | string Id of the person to add |
| hidden | boolean If the person should be hidden or not. Note: only secondary agents and bots may be hidden. |
| conversationStarred | boolean If this conversation should be marked as starred for the person. If |
Add a participant to a conversation
{- "personId": "nta30CBa-6d1a89cE57Db_F",
- "hidden": false,
- "conversationStarred": false
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Changes the visibility of a conversation's participant.
| conversationId required | string |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| personId | string |
| hidden | boolean |
Mark an agent as visible
{- "personId": "nta30CBa-6d1a89cE57Db_F",
- "hidden": false
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Creates the conversation in the system. The conversation ID mustn't be set as a new one will be generated.
If called with the authorization role SUPERVISOR or REGISTERED_USER, there are a number of restrictions regarding the conversation to be created:
initialEngagementType or the referenced conversationTemplateId must be a conversation type initiated by agents assigneePersonId must refer to the person entity of the agent making the call sourceId and externalMessengerChannelId are set they have to be unique for any active conversations. Ended conversations are ignored.| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| $_type | string Default: "ConversationCreationData" Value: "ConversationCreationData" |
| topic | string Topic of the conversation. Optional unless the initial engagement type is |
| scheduledTimestamp | integer <int64> Unix timestamp (ms) when the conversation is scheduled. Can only be set for conversations with the initial engagement type |
object (ConversationCreationRecipientData) The recipient of a conversation when creating a new conversation | |
Array of objects (ConversationCreationParticipantData) [ items ] Participants taking part in the conversation through Unblu. There must be at least one participant in this list or in the | |
Array of objects (ConversationCreationExternalParticipantData) [ items ] Participants taking part in the conversation through an external messenger. There must be at least one participant in this list or in the | |
Array of objects (ConversationCreationBotParticipantData) [ items ] Bots taking part in the conversation. Optional. | |
| initialEngagementType | string (EInitialEngagementType) Enum: "CHAT_REQUEST" "OFFLINE_CHAT_REQUEST" "VIDEO_REQUEST" "AUDIO_REQUEST" "HEADLESS_BROWSER_REQUEST" "DOMCAP_BROWSER_REQUEST" "MOBILE_COBROWSING_REQUEST" "WHITEBOARD_REQUEST" "SCREEN_SHARING_REQUEST" "VISITOR_COBROWSING" "BRANCH_CLIENT_REQUEST" "HEADLESS_PIN" "DOMCAP_PIN" "MOBILE_PIN" "WHITEBOARD_PIN" "SCREEN_SHARING_PIN" "CHAT_PIN" "CHAT_INVITE" "EMBEDDED_COBROWSING_INVITE" "HEADLESS_INVITE" "MOBILE_COBROWSING_INVITE" "WHITEBOARD_INVITE" "SCREEN_SHARING_INVITE" "SCHEDULED_CONVERSATION" "BRANCH_CLIENT_PREVIEW" enum-descriptions: ["CHAT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming chat conversation.","OFFLINE_CHAT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming chat conversation while all agents are offline.","VIDEO_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming video conversation.","AUDIO_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming audio conversation.","HEADLESS_BROWSER_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming universal co-browsing conversation.","DOMCAP_BROWSER_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming embedded co-browsing conversation.","MOBILE_COBROWSING_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming mobile co-browsing conversation.","WHITEBOARD_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming whiteboard conversation.","SCREEN_SHARING_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming screen sharing conversation.","VISITOR_COBROWSING: (Api initiated, visitor centered) A visitor creates a conversation via API which is not added to the queue and where he can invite other visitor to do embedded","BRANCH_CLIENT_REQUEST: (Visitor initiated, visitor centered) A visitor creates an incoming conversation from a branch client.","HEADLESS_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join an universal co-browsing conversation.","DOMCAP_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join an embedded co-browsing conversation.","MOBILE_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a mobile co-browsing conversation.","WHITEBOARD_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a whiteboard conversation.","SCREEN_SHARING_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a screen sharing conversation.","CHAT_PIN: (Agent initiated, visitor centered) An agent creates a conversation with a PIN invitation for the visitor to join a chat conversation.","CHAT_INVITE: (Web-API initiated, agent centered) A chat conversation is created for a visitor to join a chat conversation.","EMBEDDED_COBROWSING_INVITE: (Agent initiated, agent centered) An agent creates an embedded co-browsing conversation and invites customer later.","HEADLESS_INVITE: (Agent initiated, agent centered) An agent creates universal co-browsing conversation and invites customer later.","MOBILE_COBROWSING_INVITE: (Agent initiated, agent centered) An agent creates a mobile co-browsing conversation and invites customer later.","WHITEBOARD_INVITE: (Agent initiated, agent centered) An agent creates whiteboard conversation and invites customer later.","SCREEN_SHARING_INVITE: (Agent initiated, agent centered) An agent creates screen sharing conversation and invites customer later.","SCHEDULED_CONVERSATION: (Agent initiated, agent centered) Conversation created with a certain topic and scheduled for some point in time.","BRANCH_CLIENT_PREVIEW: (Agent initiated, agent centered) Conversation created by an agent to view a branch client."] The initial type of a conversation. The type used at creation time of the conversation determines the conversation template that is used. |
| conversationVisibility | string (EConversationVisibility) Enum: "PRIVATE" "RULE_BASED" enum-descriptions: ["PRIVATE: Conversation can only be seen by participants","RULE_BASED: Conversation can be seen by participants as well as non-participating agents who can see the conversation's context person based on their visibility rules"] The visibility of a conversation. The visibility used at creation time determines who is allowed to see the conversation. |
| locale | string The locale of the conversation language as a BCP 47 language tag, including the region if available. Optional, if not provided, the account default locale will be used. |
| visitorData | string Custom data for the visitor. This has no specific format. Optional. |
| conversationTemplateId | string Template ID of the conversation. If omitted, the default conversation template is retrieved based on the initial engagement type. If provided the value of |
| inheritConfigurationAndTexts | boolean True if the conversation inherits all configuration and text properties from its conversation template. If omitted, the value |
| externalMessengerChannelId | string ID of the external messenger channel the conversation should be linked to. If this property is null the conversation is an Unblu conversation and not linked to an external messenger channel. |
| sourceId | string Custom ID to identify the source of the conversation. Typically used in connection with an external messenger to create a link to the external conversation. |
| sourceUrl | string URL identifying the system where the conversation was created, for example a CRM. Optional. |
| initialEngagementUrl | string The URL where the conversation originated. Optional. |
object expand-query-key: metadata type: Map The entity's metadata properties. Only contains values when the 'expand' query parameter is used with the value 'metadata'. Not filled in webhook events. | |
object expand-query-key: configuration type: Map The entity's configuration properties. Only contains values when the 'expand' query parameter is used with the value 'configuration'. Not filled in webhook events. | |
object expand-query-key: text type: Map The entity's text properties. Only contains values when the 'expand' query parameter is used with the value 'text'. Not filled in webhook events. |
{- "$_type": "ConversationCreationData",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "ConversationCreationRecipientData",
- "type": "AGENT",
- "id": "string"
}, - "participants": [
- {
- "$_type": "ConversationCreationParticipantData",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ConversationCreationExternalParticipantData",
- "externalMessengerContactId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "ConversationCreationBotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "initialEngagementUrl": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}New conversation created
{- "$_type": "ConversationData",
- "creationTimestamp": 1546300800000,
- "endTimestamp": null,
- "id": "AcviDb210C5BoFd6e_79oan",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "topic": null,
- "scheduledTimestamp": null,
- "recipient": {
- "$_type": "AccountData",
- "id": "A7d9E_0-c3cC4aoFDb85t6n",
- "displayName": "Main Account",
- "displayNameTranslations": { },
- "avatar": null
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "ACTIVE",
- "personId": "nta30CBa-6d1a89cE57Db_F",
- "hidden": false,
- "conversationStarred": false,
- "participationType": "CONTEXT_PERSON"
}
], - "externalParticipants": [ ],
- "botParticipants": [ ],
- "state": "QUEUED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "en",
- "tokboxSessionId": null,
- "visitorData": "test-visitorData-1234",
- "conversationTemplateId": "ab32em6Be-5le_48rE1F9Ad",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_VISITOR_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_AGENT_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_AS_GHOST_IN_AGENT_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_AGENT_SINGLE_VIEW",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_AS_GHOST_IN_AGENT_SINGLE_VIEW",
- "url": "..."
}
], - "externalMessengerChannelId": null,
- "sourceId": null,
- "endReason": null,
- "initialEngagementUrl": null,
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": null,
- "metadata": null,
- "configuration": null,
- "text": null
}Deletes the conversation with the given ID.
Calls with the authorization role SUPERVISOR or REGISTERED_USER are only permissible if:
| conversationId required | string The ID of the conversation to be deleted |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Ends a conversation. If called with the authorization role SUPERVISOR or REGISTERED_USER, the agent making the call must have the necessary permissions to end a conversation.
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| reason | string (EConversationEndReason) Enum: "ENDED_BY_PARTICIPANT" "MANDATORY_PARTICIPANT_GONE" "REQUEST_DECLINED" "REQUEST_NOT_ANSWERED" "EXTERNAL_CHANNEL_CLOSED" "SOLVED_BY_BOT" "CANCELED" "CALL_ENDED" "NO_AGENT_AVAILABLE" "OTHER" enum-descriptions: ["ENDED_BY_PARTICIPANT","MANDATORY_PARTICIPANT_GONE","REQUEST_DECLINED","REQUEST_NOT_ANSWERED","EXTERNAL_CHANNEL_CLOSED","SOLVED_BY_BOT","CANCELED","CALL_ENDED","NO_AGENT_AVAILABLE","OTHER"] Closing reason of a conversation |
| comment | string |
End a conversation
{- "reason": "OTHER",
- "comment": "Some comment"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Returns the active conversation for the given source ID and channel ID. When called with the authorization role REGISTERED_USER, the agent making the call must be a participant in the conversation matching the search criteria. If they aren't, the call will fail. When called with the authorization role SUPERVISOR, the conversation matching the search criteria must include a participant who is an agent in their team (or one of their teams). If it doesn't, the call will fail.
Ended conversations for the same sourceId and channel are ignored. These can be retrieved using the /search service.
| sourceId | string The source ID the conversation was created with |
| externalMessengerChannelId | string The messenger channel ID the conversation is connected to. Can be null for internal conversations. |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Returns a list of all files that have been shared/sent within the specified conversation.
| conversationId required | string the id of conversation, for which the file list should be retrieved |
{- "$_type": "ConversationFileDataList",
- "items": [
- {
- "$_type": "ConversationFileData",
- "conversationId": "string",
- "ownerPersonId": "string",
- "name": "string",
- "mimeType": "string",
- "source": "string",
- "fileStoreId": "string",
- "totalSize": 0,
- "downloadLinks": [
- {
- "$_type": "DownloadLink",
- "type": "WEB_API",
- "url": "string"
}
], - "creationTimestamp": 0
}
]
}Retrieve the current recording state of the given conversation
| conversationId required | string The conversation to retrieve the recording state for |
{- "$_type": "ConversationRecordingState",
- "conversationId": "string",
- "recordingState": "IDLE",
- "recordingType": "AUDIO",
- "recordingStartTimestamp": 0
}Offboards a participant from a conversation.
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| personId | string |
| reason | string (EConversationLeftReason) Enum: "FORWARDED" "PARTICIPANT_LEFT" "REMOVED_AFTER_TIMEOUT" "ONBOARDING_DECLINED" "ONBOARDING_IDLE_TIMEOUT" "ONBOARDING_TIMEOUT" "USER_CHANGED" "KICKED" "CONVERSATION_UNASSIGNED" "CONVERSATION_REQUEUED" "PUBLIC_DIALIN_ENDED" "EXTERNAL_CONTACT_UNLINKED" "ASSISTANT_SYNCHRONIZATION" "DEPUTY_REMOVAL" "OTHER" enum-descriptions: ["FORWARDED","PARTICIPANT_LEFT","REMOVED_AFTER_TIMEOUT","ONBOARDING_DECLINED","ONBOARDING_IDLE_TIMEOUT","ONBOARDING_TIMEOUT","USER_CHANGED","KICKED","CONVERSATION_UNASSIGNED","CONVERSATION_REQUEUED","PUBLIC_DIALIN_ENDED","EXTERNAL_CONTACT_UNLINKED","ASSISTANT_SYNCHRONIZATION","DEPUTY_REMOVAL","OTHER"] Participation left reason of a conversation |
| comment | string |
Offboard a participant
{- "personId": "nta30CBa-6d1a89cE57Db_F",
- "reason": "OTHER",
- "comment": "Some other important reason"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Returns the conversation with the given ID. If called with the authorization role SUPERVISOR or REGISTERED_USER, the agent making the call must be a participant in the conversation.
| conversationId required | string ID of the conversation which should be returned |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Search for conversations in the current account. If called with the authorization role REGISTERED_USER, the call only returns conversations matching the search criteria where the agent making a call is the participant. If the agent making the call has the user role SUPERVISOR, the results only include conversations of the agents in their team or teams.
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| $_type | string Default: "ConversationQuery" Value: "ConversationQuery" |
Array of any (ConversationSearchFilter) [ items ] List of filters to narrow the search of entities | |
Array of objects (ConversationOrderBy) [ items ] List of criteria to order the search result list | |
| offset | integer <int32> Offset position in the result set to start pagination |
| limit | integer <int32> Maximal amount of items returned |
{- "$_type": "ConversationQuery",
- "searchFilters": [
- {
- "$_type": "ParticipantPersonIdConversationSearchFilter",
- "field": "CREATION_TIMESTAMP",
- "operator": {
- "$_type": "AllOfIdListOperator",
- "type": "ALL_OF",
- "values": [
- "string"
]
}
}
], - "orderBy": [
- {
- "$_type": "ConversationOrderBy",
- "field": "CREATION_TIMESTAMP",
- "order": "ASCENDING"
}
], - "offset": 0,
- "limit": 0
}{- "$_type": "ConversationResult",
- "hasMoreItems": true,
- "nextOffset": 0,
- "items": [
- {
- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}
]
}Sets an agent as assignee to a conversation.
Note: The person has to have an active participation in the conversation
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| personId | string |
Set the assigned agent
{- "personId": "nta30CBa-6d1a89cE57Db_F"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets the awaited person type in a conversation
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| awaitedPersonType | string (EAwaitedPersonType) Enum: "NONE" "VISITOR" "AGENT" enum-descriptions: ["NONE","VISITOR","AGENT"] Indicates which type of person the conversation is waiting for |
Set the conversation awaited person
{- "awaitedPersonType": "VISITOR"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets a visitor as context person of a conversation.
Note: The person has to have an active participation in the conversation
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| personId | string |
Set the primary visitor
{- "personId": "nta30CBa-6d1a89cE57Db_F"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Manually modify the inheritance of configuration and text properties for a specific conversation
| conversationId required | string The conversation for which the configuration and text property inheritance are updated. |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| inherit | boolean Whether to inherit the configuration and text properties from the conversation template or not. |
{- "inherit": true
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets the locale of the conversation language (as BCP 47 language tag form including region if available).
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| locale | string the new locale |
Set the conversation locale to german
{- "locale": "de"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets a person, named area, team or account as the recipient of a conversation.
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| $_type required | string Default: "AccountData" AccountData TeamData PersonData NamedAreaData AccountData |
| id | string Unique id of the account. |
| displayName | string Display-Name of the account |
object Localized Display-Name of the account | |
string or Avatar (object) expand-query-key: avatar type: ExpandableField Avatar of the account: id that can be expanded. |
{- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets the scheduled time of the conversation. The timestamp is the Unix timestamp (ms) when the conversation is scheduled for, rounded to the nearest minute. Can only be set for conversations with initialEngagementType = "SCHEDULED_CONVERSATION".
When called with the authorization role SUPERVISOR or REGISTERED_USER, the behavior of the call depends on the configuration property com.unblu.conversation.message.allowNonAdminUsersChangeConversationScheduledTimeViaWebApi:
true, the agent making the call can only change the conversation's scheduledTimestamp if they're a participant in the conversation. false, the agent making the call can change the scheduledTimestamp provided their participation type in the conversation is listed in the configuration property com.unblu.conversation.allowChangeConversationScheduledTime. | conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| scheduledTimestamp | integer <int64> the new scheduledTimestamp rounded to nearest minute |
Set the conversation scheduledTimestamp
{- "scheduledTimestamp": 1551398400000
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets the sourceUrl for the specified conversation. Passing null deletes the existing sourceUrl.
| conversationId required | string the ID of the conversation to update |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| sourceUrl | string the URL to set, or |
{- "sourceUrl": "string"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets the starred status of a conversation for a particular person
| conversationId required | string the conversation to be starred/unstarred |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| personId | string the person for whom the starred status will be set |
| starred | boolean the starred status to be set |
{- "personId": "string",
- "starred": true
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets the topic of the conversation. Setting it to null deletes the topic, provided it isn't mandatory to specify a topic for the conversation type (e.g. SCHEDULED_CONVERSATION).
When called with the authorization role SUPERVISOR or REGISTERED_USER, the behavior of the call depends on the configuration property com.unblu.conversation.message.allowNonAdminUsersChangeConversationTopicViaWebApi:
true, the agent making the call can only change the conversation's topic if they're a participant in the conversation. false, the agent making the call can change the topic provided their participation type in the conversation is listed in the configuration property com.unblu.conversation.message.allowChangeConversationTopic. | conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| topic | string the new topic |
Set the conversation topic
{- "topic": "Topic of the conversation"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets the conversation visibility
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
| conversationVisibility | string (EConversationVisibility) Enum: "PRIVATE" "RULE_BASED" enum-descriptions: ["PRIVATE: Conversation can only be seen by participants","RULE_BASED: Conversation can be seen by participants as well as non-participating agents who can see the conversation's context person based on their visibility rules"] The visibility of a conversation. The visibility used at creation time determines who is allowed to see the conversation. |
Set the conversation visibility
{- "conversationVisibility": "RULE_BASED"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Sets custom visitor data. The data is readable on the visitor side. Don't include any confidential information. Security-related data should be stored in the conversation metadata.
| conversationId required | string the conversation where the custom data should be added |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
the custom visitor data
| $_type | string Default: "ConversationsSetVisitorDataBody" Value: "ConversationsSetVisitorDataBody" |
| visitorData | string Custom visitor data in any format. |
{- "$_type": "ConversationsSetVisitorDataBody",
- "visitorData": "string"
}{- "$_type": "ConversationData",
- "creationTimestamp": 0,
- "endTimestamp": 0,
- "id": "string",
- "accountId": "string",
- "topic": "string",
- "scheduledTimestamp": 0,
- "recipient": {
- "$_type": "AccountData",
- "id": "string",
- "displayName": "string",
- "displayNameTranslations": {
- "property1": "string",
- "property2": "string"
}, - "avatar": "string"
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "CREATED",
- "personId": "string",
- "hidden": true,
- "conversationStarred": true,
- "participationType": "ASSIGNED_AGENT"
}
], - "externalParticipants": [
- {
- "$_type": "ExternalParticipantData",
- "state": "CREATED",
- "externalMessengerContactId": "string",
- "personId": "string",
- "sourceId": "string",
- "participationType": "CONTEXT_PERSON"
}
], - "botParticipants": [
- {
- "$_type": "BotParticipantData",
- "personId": "string",
- "hidden": true
}
], - "state": "CREATED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "string",
- "tokboxSessionId": "string",
- "visitorData": "string",
- "conversationTemplateId": "string",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "ACCEPT_IN_AGENT_DESK",
- "url": "string"
}
], - "externalMessengerChannelId": "string",
- "sourceId": "string",
- "sourceUrl": "string",
- "endReason": "ENDED_BY_PARTICIPANT",
- "initialEngagementUrl": "string",
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "configuration": {
- "property1": "string",
- "property2": "string"
}, - "text": {
- "property1": {
- "property1": "string",
- "property2": "string"
}, - "property2": {
- "property1": "string",
- "property2": "string"
}
}
}Manually start a conversation recording. The recording is only started if:
conversation.recording_failed webhook is triggered.| conversationId required | string The conversation for which a recording should be started |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Manually stop a conversation recording. The recording is stopped if:
| conversationId required | string The conversation for which a recording should be stopped |
{- "$_type": "Error",
- "statusCode": 0,
- "statusDescription": "string",
- "errorMessage": "string"
}Updates the configuration map for a specific conversation
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
the key-value map of settings that will be updated. The source for this map has to be the configuration attribute when you read the conversation using configuration in the expand query parameter.
| property name* | string |
Map to update the translations
{- "$_version": "3854d16accc07ea25ddcca42924d5096",
- "com.unblu.conversation.concierge.conciergeHandleVisitorOnboarding": "false",
- "com.unblu.conversation.feature.callEnabled": "true",
- "com.unblu.conversation.feature.textChatEnabled": "false",
- "com.unblu.conversation.invitation.allowPublicLinkAccess": "false",
- "com.unblu.conversation.lifecycle.autoEndOnLeave": "SECONDARY_AGENT"
}Conversation after the settings update (loaded with expanded configuration)
{- "$_type": "ConversationData",
- "creationTimestamp": 1546300800000,
- "endTimestamp": null,
- "id": "AcviDb210C5BoFd6e_79oan",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "topic": null,
- "scheduledTimestamp": null,
- "recipient": {
- "$_type": "AccountData",
- "id": "A7d9E_0-c3cC4aoFDb85t6n",
- "displayName": "Main Account",
- "displayNameTranslations": { },
- "avatar": null
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "ACTIVE",
- "personId": "nta30CBa-6d1a89cE57Db_F",
- "hidden": false,
- "conversationStarred": false,
- "participationType": "CONTEXT_PERSON"
}
], - "externalParticipants": [ ],
- "botParticipants": [ ],
- "state": "QUEUED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "en",
- "tokboxSessionId": null,
- "visitorData": null,
- "conversationTemplateId": "ab32em6Be-5le_48rE1F9Ad",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_VISITOR_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_AGENT_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_AS_GHOST_IN_AGENT_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_AGENT_SINGLE_VIEW",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_AS_GHOST_IN_AGENT_SINGLE_VIEW",
- "url": "..."
}
], - "externalMessengerChannelId": null,
- "sourceId": null,
- "sourceUrl": null,
- "endReason": null,
- "initialEngagementUrl": null,
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": null,
- "metadata": null,
- "configuration": {
- "$_version": "93e02251d50759e647ff991131986c30",
- "com.unblu.conversation.concierge.conciergeHandleVisitorOnboarding": "false",
- "com.unblu.conversation.feature.callEnabled": "true",
- "com.unblu.conversation.feature.textChatEnabled": "false",
- "com.unblu.conversation.invitation.allowPublicLinkAccess": "false",
- "com.unblu.conversation.lifecycle.autoEndOnLeave": "SECONDARY_AGENT"
}, - "text": null
}Updates the metadata map for a specific conversation
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
the key-value map of metadata that will be updated. The source for this map has to be the metadata attribute when you read the conversation using metadata in the expand query parameter.
| property name* | string |
Map to update the medata
{- "$_version": "d41d8cd98f00b204e9800998ecf8427e",
- "foo": "bar",
- "lorem": "ipsum"
}Conversation after the metadata update (loaded with expanded metadata)
{- "$_type": "ConversationData",
- "creationTimestamp": 1546300800000,
- "endTimestamp": null,
- "id": "AcviDb210C5BoFd6e_79oan",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "topic": null,
- "scheduledTimestamp": null,
- "recipient": {
- "$_type": "AccountData",
- "id": "A7d9E_0-c3cC4aoFDb85t6n",
- "displayName": "Main Account",
- "displayNameTranslations": { },
- "avatar": null
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "ACTIVE",
- "personId": "nta30CBa-6d1a89cE57Db_F",
- "hidden": false,
- "conversationStarred": false,
- "participationType": "CONTEXT_PERSON"
}
], - "externalParticipants": [ ],
- "botParticipants": [ ],
- "state": "QUEUED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "en",
- "tokboxSessionId": null,
- "visitorData": null,
- "conversationTemplateId": "ab32em6Be-5le_48rE1F9Ad",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_VISITOR_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_AGENT_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_AS_GHOST_IN_AGENT_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_AGENT_SINGLE_VIEW",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_AS_GHOST_IN_AGENT_SINGLE_VIEW",
- "url": "..."
}
], - "externalMessengerChannelId": null,
- "sourceId": null,
- "sourceUrl": null,
- "endReason": null,
- "initialEngagementUrl": null,
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": null,
- "metadata": {
- "$_version": "cd8762c9c0e0525d8e49e173276420ff",
- "foo": "bar",
- "lorem": "ipsum"
}, - "configuration": null,
- "text": null
}Updates the text map for a specific conversation
| conversationId required | string the conversation that is updated |
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
the key-value map of translations that will be updated. The source for this map has to be the text attribute when you read the conversation using text in the expand query parameter.
object |
Map to update the translations
{- "$_version": {
- "$_version": "d41d8cd98f00b204e9800998ecf8427e"
}, - "com.unblu.conversation.concierge.visitorOnboardingDoneMessage": {
- "en": "Thank you, see you soon."
}, - "com.unblu.conversation.concierge.visitorOnboardingWelcomeMessage": {
- "en": "Hello, I am the concierge.",
- "fr": "Bonjour je suis le concierge."
}
}Conversation after the translations update (loaded with expanded text)
{- "$_type": "ConversationData",
- "creationTimestamp": 1546300800000,
- "endTimestamp": null,
- "id": "AcviDb210C5BoFd6e_79oan",
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "topic": null,
- "scheduledTimestamp": null,
- "recipient": {
- "$_type": "AccountData",
- "id": "A7d9E_0-c3cC4aoFDb85t6n",
- "displayName": "Main Account",
- "displayNameTranslations": { },
- "avatar": null
}, - "participants": [
- {
- "$_type": "ParticipantData",
- "state": "ACTIVE",
- "personId": "nta30CBa-6d1a89cE57Db_F",
- "hidden": false,
- "conversationStarred": false,
- "participationType": "CONTEXT_PERSON"
}
], - "externalParticipants": [ ],
- "botParticipants": [ ],
- "state": "QUEUED",
- "initialEngagementType": "CHAT_REQUEST",
- "conversationVisibility": "PRIVATE",
- "locale": "en",
- "tokboxSessionId": null,
- "visitorData": null,
- "conversationTemplateId": "ab32em6Be-5le_48rE1F9Ad",
- "inheritConfigurationAndTexts": true,
- "links": [
- {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_VISITOR_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_AGENT_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_AS_GHOST_IN_AGENT_DESK",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_IN_AGENT_SINGLE_VIEW",
- "url": "..."
}, - {
- "$_type": "ConversationLink",
- "type": "OPEN_AS_GHOST_IN_AGENT_SINGLE_VIEW",
- "url": "..."
}
], - "externalMessengerChannelId": null,
- "sourceId": null,
- "sourceUrl": null,
- "endReason": null,
- "initialEngagementUrl": null,
- "awaitedPersonType": "NONE",
- "awaitedPersonTypeChangeTimestamp": null,
- "metadata": null,
- "configuration": null,
- "text": {
- "$_version": {
- "$_version": "f3cad33a9248c20423fd8328da6a4eff"
}, - "com.unblu.conversation.concierge.visitorOnboardingDoneMessage": {
- "en": "Thank you, see you soon."
}, - "com.unblu.conversation.concierge.visitorOnboardingWelcomeMessage": {
- "en": "Hello, I am the concierge.",
- "fr": "Bonjour je suis le concierge."
}
}
}Creates a new custom action. You must specify the expanded parameter "actionIcon".
| expand | Array of strings (ExpandFields) Items Enum: "actionIcon" "affFile" "avatar" "channelIcon" "configuration" "dicFile" "floorPlanImage" "metadata" "text" |
The custom action to create
| $_type | string Default: "CustomConversationActionData" Value: "CustomConversationActionData" |
| id | string Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. |
| creationTimestamp | integer <int64> Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency. |
| modificationTimestamp | integer <int64> Timestamp of the last modification. This property is always optional and can be omitted when sending data to the server. If sent to the server, it is ignored. It is only informational in character. Note: If you set this property, it returns the same value but it isn't written to storage and doesn't affect the data consistency. |
| version | integer <int64> Version of the entity. Will be incremented on each change. New updates must always be based on the newest version, if not updates will be rejected. When creating an object, the version can be omitted. |
| accountId | string ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID. |
| key | string The unique key of the action |
| name | string The name of the custom action. Maximum of 250 characters. Can not be omitted. |
| description | string The description of the custom action. Maximum of 500 characters. Can be omitted. |
object A map of localized versions of the name and description of this custom action | |
string or Avatar (object) expand-query-key: actionIcon type: ExpandableField The avatar ID of the avatar used as the action's icon. The ID can be expanded. | |
| state | string (ECustomActionState) Enum: "ACTIVE" "INACTIVE" "INACTIVE_UNAVAILABLE" enum-descriptions: ["ACTIVE: State when a custom action is manually enabled","INACTIVE: State when a custom action is manually disabled","INACTIVE_UNAVAILABLE: State when a custom action is automatically disabled because it's webhook registration got automatically disabled"] Possible Custom Action State |
object (CustomActionWebhookRegistration) Holds information about the optional webhook registration or outbound request triggered by the invocation of a custom action.
| |
| invocableFromFrontends | Array of strings (EFrontend) Items Enum: "VISITOR_SITE_INTEGRATION" "VISITOR_SITE_EMBEDDED" "VISITOR_DESK" "VISITOR_MOBILE" "VISITOR_POPOUT" "AGENT_DESK" "TEAMS_AGENT_DESK" "AGENT_SINGLE_CONVERSATION_DESK" "AGENT_MOBILE" "BRANCH_CLIENT" The frontends that the action may be invoked from |
| invocableForConversationStates | Array of strings (EConversationState) Items Enum: "CREATED" "ONBOARDING" "REBOARDING" "QUEUED" "ACTIVE" "UNASSIGNED" "OFFBOARDING" "ENDED" The conversation states the action may be invoked in |
| invocableForParticipationStates | Array of strings (EConversationParticipationState) Items Enum: "CREATED" "ONBOARDING" "ACTIVE" "OFFBOARDING" "ENDED" The participation states a person may invoke the action in |
| invocableBy | Array of strings (EConversationImpactingParticipationType) Items Enum: "ASSIGNED_AGENT" "CONTEXT_PERSON" "SECONDARY_AGENT" "SECONDARY_VISITOR" "GHOST" The types of participant who may invoke the action |
| triggerSystemMessage | boolean A flag indicating whether the action should trigger a system message. The default value is true. |
| triggerVisitorMobileSdkEvent | boolean A flag indicating whether the action should trigger a visitor mobile SDK event. The default value is false. |
| triggerVisitorEmbeddedApiEvent | boolean A flag indicating whether the action should trigger an Embedded JS API event. The default value is false. |
| triggerVisitorFloatingApiEvent | boolean A flag indicating whether the action should trigger a Visitor JS API event. The default value is false. |
| triggerAgentMobileSdkEvent | boolean A flag indicating whether the action should trigger an agent mobile SDK event. The default value is false. |
| sortingOrder | integer <int32> The sorting order within the custom actions when displayed in the action bar. The default value is 5. |
| type required | string (ECustomActionType) enum-descriptions: ["CONVERSATION: Conversation custom action type","PERSON: Person custom action type","MESSAGE: Message custom action type"] The type of the custom action CONVERSATION CONVERSATION PERSON MESSAGE |
| actionBarPosition | string (EActionBarItemPosition) Enum: "ALWAYS_VISIBLE" "ALWAYS_IN_OVERFLOW" "SHOW_IF_POSSIBLE" enum-descriptions: ["ALWAYS_VISIBLE: Action is always displayed in the action bar","ALWAYS_IN_OVERFLOW: Action is always displayed in the overflow section of the action bar","SHOW_IF_POSSIBLE: Action is displayed in the action bar if there is enough space"] The position of an item within an action bar |
| apiEventTriggerFilter | string (ECustomConversationActionEventTriggerFilter) Enum: "SELF" "OTHERS" "ALL" enum-descriptions: ["SELF: Trigger the custom action API event only for the person who invoked it","OTHERS: Trigger the custom action API event for everyone except the person who invoked it","ALL: Trigger the custom action API event for everyone"] Who a custom conversation action API event should be triggered for |
Create a new custom action
{- "$_type": "CustomConversationActionData",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "version": null,
- "accountId": null,
- "key": "conv1-custom-action",
- "name": "conv1-custom-action-name",
- "description": "Custom action to be triggered on conversation level",
- "translations": {
- "de": {
- "$_type": "CustomActionTranslation",
- "id": null,
- "name": "Meine Konversation Aktion",
- "description": null
}, - "en": {
- "$_type": "CustomActionTranslation",
- "id": null,
- "name": "My conversation action",
- "description": null
}
}, - "actionIcon": {
- "$_type": "Avatar",
- "id": null,
- "creationTimestamp": null,
- "modificationTimestamp": null,
- "accountId": null,
- "imageZoomFactor": null,
- "imageXPositionRatio": null,
- "imageYPositionRatio": null,
- "imageRotationAngle": null,
- "imageData": "data:image/png;base64,iVBORw0KG...QmCC"
}, - "state": "ACTIVE",
- "triggerWebhook": {
- "$_type": "CustomActionWebhookRegistration",
- "apiVersion": "V4",
- "secret": null,
- "outboundTimeout": 5000,
- "retryCount": null,
- "retryDelay": null
}, - "invocableFromFrontends": [
- "AGENT_DESK",
- "AGENT_SINGLE_CONVERSATION_DESK"
], - "invocableForConversationStates": [
- "ACTIVE",
- "ONBOARDING"
], - "invocableForParticipationStates": [
- "ACTIVE",
- "ONBOARDING"
], - "invocableBy": [
- "ASSIGNED_AGENT",
- "SECONDARY_AGENT"
], - "triggerSystemMessage": true,
- "triggerVisitorMobileSdkEvent": true,
- "triggerVisitorEmbeddedApiEvent": true,
- "triggerVisitorFloatingApiEvent": true,
- "triggerAgentMobileSdkEvent": false,
- "sortingOrder": 3,
- "type": "CONVERSATION",
- "actionBarPosition": "ALWAYS_VISIBLE",
- "apiEventTriggerFilter": "ALL"
}New custom action
{- "$_type": "CustomConversationActionData",
- "id": "qIzXjL9hRx-aIQVADZdq7Q",
- "creationTimestamp": 1546300800000,
- "modificationTimestamp": 1548979200000,
- "version": 1,
- "accountId": "A7d9E_0-c3cC4aoFDb85t6n",
- "key": "conv1-custom-action",
- "name": "conv1-custom-action-name",
- "description": "Custom action to be triggered on conversation level",
- "translations": {
- "de": {
- "$_type": "CustomActionTranslation",
- "id": "3GxKB_qhRjSwFbhKXjrz5w",
- "name": "Meine Konversation Aktion",
- "description": null
}, - "en": {
- "$_type": "CustomActionTranslation",