Download OpenAPI specification:Download
Welcome to the API Documentation of Messaging REST API. This API provides a broad set of endpoints to access and manage Conversation lifecycle resources.
Use the LivePerson Domain API to retrieve this information by providing the following service name
messagingRestApiDomain
.
The base path for all calls to this API should be https://{messagingRestApiDomain}/messaging
.
This mode of authentication is for Consumer clients. It uses the same JWT token as the consumer window currently uses for authentication on the UMS Websocket API.
It requires the Authorization
header be set in the following format:
Bearer <JWT Token>
Follow this documentation for details on how to generate these tokens.
bearer
JWT
This mode of authentication is meant for server-to-server authorization, where the client is calling on behalf of a Consumer. It is the same authentication method currently used for the SendAPI. It requires two headers to be set
Authorization
- should contain the AppJWT,LP-On-Behalf
- should contain the ConsumerJWS.Follow this documentation for details on how to generate these headers.
bearer
JWT
This mode of authentication is for Agent/Bot clients. It uses the same bearer token that agents currently use for authentication on the UMS Websocket API.
It requires the Authorization
header be set in the following format
Bearer <Agent Bearer Token>
bearer
All API endpoints require the following headers to be present
Authorization
- see Authentication section for supported Authentication/Authorization modes supportedBrand-ID
- Brand or Account IDClient-source
- Specifies the client source. This is a free-text field used to describe the client application, such as its name or type (e.g., "mobile-banking-app")In addition we also recommend that you pass the Request-ID
header with every request. This helps with traceability and troubleshooting failures
All REST API endpoints have quotas per brand. When any brand exceeds the configured quota, the API will return a 429
response code.
Follow the LivePerson Retry Policy Recommendation for handling 429
or any error response in general.
Consumers and Agents are the actors or Participants in a Conversation. This group of API endpoints are for operations on Consumers and Agents resources.
Saves the Consumer user profile in UMS.
This is equivalent to the SetUserProfile API for WebSockets.
consumer_id required | string The Consumer ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
If-Match | string Example: {{ConsumerEtag}} Required if this is an update rather than first time creation. |
firstName | string (firstName) The Consumer's first name |
lastName | string (lastName) The Consumer's last name |
nickName | string (nickName) The Consumer's nick name |
brandId | string (brandId) LivePerson account or site ID for this brand |
description | string (description) Brief description about the Consumer or additional information |
avatarUrl | string (avatarUrl) Pending |
backgndImgUrl | string (backgndImgUrl) Pending |
string (email) The Consumer's email | |
mobileNumber | string (mobileNumber) The Consumer's mobile number |
object (claims) Claims associated with this Consumer set by the Brand. This includes SDEs. | |
acr | string (acr) The Authentication Context Class Reference (or authentication level) of this Consumer. A value '0' means Unauthenticated, and a value of 'loa1' means Authenticated. |
object (PNData) PushNotificationData |
{- "firstName": "John",
- "lastName": "Smith",
- "brandId": "b123456789",
- "mobileNumber": "5551234560",
- "email": "john.smith@liveperson.com",
- "claims": {
- "51574755": {
- "lp_sdes_json": [
- {
- "type": "ctmrinfo",
- "info": {
- "companyBranch": "049502354688",
- "customerId": "7e5826d7aa743f2c85e9b53f598cfe92337c9baa3"
}
}, - {
- "type": "personal",
- "personal": {
- "firstname": "John"
}
}
]
}
}, - "pnData": {
- "certName": "com.tmo.lpapp",
- "serviceName": "",
- "token": "c9e790392be1d393050b3a61ee453db5cffda90c52a24930c29e50d4fac16c80d6eb0363946a93d1363063dbf73d71e3f6f330e3d74893a7cc6ee44c30cf832fe400b073efc8399b9f4b7c15241d90cd.53449da4008882f12264aad806dc1b6f.d610c350869c091ec97e5115215e0f221f705b560df3d69ff33ea58beb0f7dc5"
}, - "acr": "l01",
- "createdTs": "2023-05-24T06:07:11.767+00:00",
- "lastUpdatedTs": "2023-05-24T06:07:11.775+00:00"
}
{- "firstName": "John",
- "lastName": "Smith",
- "brandId": "b123456789",
- "mobileNumber": "5551234560",
- "email": "john.smith@liveperson.com",
- "claims": {
- "51574755": {
- "lp_sdes_json": [
- {
- "type": "ctmrinfo",
- "info": {
- "companyBranch": "049502354688",
- "customerId": "7e5826d7aa743f2c85e9b53f598cfe92337c9baa3"
}
}, - {
- "type": "personal",
- "personal": {
- "firstname": "John"
}
}
]
}
}, - "pnData": {
- "certName": "com.tmo.lpapp",
- "serviceName": "",
- "token": "c9e790392be1d393050b3a61ee453db5cffda90c52a24930c29e50d4fac16c80d6eb0363946a93d1363063dbf73d71e3f6f330e3d74893a7cc6ee44c30cf832fe400b073efc8399b9f4b7c15241d90cd.53449da4008882f12264aad806dc1b6f.d610c350869c091ec97e5115215e0f221f705b560df3d69ff33ea58beb0f7dc5"
}, - "acr": "l01",
- "createdTs": "2023-05-24T06:07:11.767+00:00",
- "lastUpdatedTs": "2023-05-24T06:07:11.775+00:00"
}
Fetches the Consumer user profile persisted in UMS.
This is equivalent to the GetUserProfile API for WebSockets.
consumer_id required | string The Consumer ID |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "firstName": "John",
- "lastName": "Smith",
- "brandId": "b123456789",
- "mobileNumber": "5551234560",
- "email": "john.smith@liveperson.com",
- "claims": {
- "51574755": {
- "lp_sdes_json": [
- {
- "type": "ctmrinfo",
- "info": {
- "companyBranch": "049502354688",
- "customerId": "7e5826d7aa743f2c85e9b53f598cfe92337c9baa3"
}
}, - {
- "type": "personal",
- "personal": {
- "firstname": "John"
}
}
]
}
}, - "pnData": {
- "certName": "com.tmo.lpapp",
- "serviceName": "",
- "token": "c9e790392be1d393050b3a61ee453db5cffda90c52a24930c29e50d4fac16c80d6eb0363946a93d1363063dbf73d71e3f6f330e3d74893a7cc6ee44c30cf832fe400b073efc8399b9f4b7c15241d90cd.53449da4008882f12264aad806dc1b6f.d610c350869c091ec97e5115215e0f221f705b560df3d69ff33ea58beb0f7dc5"
}, - "acr": "l01",
- "createdTs": "2023-05-24T06:07:11.767+00:00",
- "lastUpdatedTs": "2023-05-24T06:07:11.775+00:00"
}
agent_id required | string The Agent ID |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "id": "b123456789.1234567890",
- "firstName": "John",
- "nickName": "Doe",
- "brandId": "b123456789",
- "email": "john.doe@gmail.com",
- "maxSlots": 4,
- "skillIds": [
- 4120012310,
- 4119949110
], - "permissionGroups": [ ],
- "memberOf": 4120323310,
- "managerOf": [ ],
- "employeeId": 12345,
- "userTypeId": 1,
- "active": false,
- "pnData": {
- "certName": "com.tmo.lpapp",
- "serviceName": "",
- "token": ""
}, - "lpa": false
}
A Conversation captures a messaging interaction between a Consumer and a Brand. Typically the Consumer is on one end of the Conversation, and the Brand is represented by either an Agent, Bot, or both.
Creates a new Conversation in UMS with the Consumer as a participant.
consumer_id required | string The Consumer ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
LP-Metadata | string Example: [{"type":"ActionReason","reason":"some reason","reasonId":"some reason Id"}] Needs to conform to the metadata json schema. |
skillId | string (skillId) The Skill ID |
CustomContext (object) or FacebookContext (object) or MobileAppContext (object) or ProactiveContext (object) or SharkContext (object) or SMSContext (object) or VoiceContext (object) Describes the conversation environment, like where from it was created and by whom | |
channelType | string (channelType) Enum: "MESSAGING" "LIVE_CHAT" "COBROWSE" The Channel Type |
object (campaignInfo) The Campaign Information contains the campaignId and engagementId |
{- "skillId": "4119939010",
- "context": {
- "type": "CustomContext",
- "clientProperties": {
- "appId": "whatsapp",
- "ipAddress": "67.102.67.108",
- "deviceFamily": "DESKTOP",
- "features": [
- "PHOTO_SHARING",
- "QUICK_REPLIES",
- "AUTO_MESSAGES",
- "MULTI_DIALOG",
- "FILE_SHARING",
- "RICH_CONTENT"
]
}, - "name": "WhatsApp Business"
}
}
{- "id": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "createdTs": "2022-06-10T19:16:09.947+00:00",
- "lastUpdatedTs": "2022-06-10T19:16:09.947+00:00",
- "brandId": "le84625337",
- "skillId": "4119939010",
- "state": "OPEN",
- "stage": "OPEN",
- "note": "",
- "dialogs": [
- {
- "id": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "createdTs": "2022-06-10T19:16:09.947+00:00",
- "lastUpdatedTs": "2022-06-10T19:16:09.947+00:00",
- "conversationId": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "participants": [
- {
- "id": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN"
}
], - "context": {
- "type": "CustomContext",
- "clientProperties": {
- "appId": "whatsapp",
- "ipAddress": "67.102.67.108",
- "deviceFamily": "DESKTOP",
- "features": [
- "PHOTO_SHARING",
- "QUICK_REPLIES",
- "AUTO_MESSAGES",
- "MULTI_DIALOG",
- "FILE_SHARING",
- "RICH_CONTENT"
]
}, - "name": "WhatsApp Business"
}, - "ttr": {
- "type": "PRIORITIZED",
- "value": 600
}, - "csat": {
- "rate": 0
}, - "conversationRollOverHandler": {
- "accountId": "le84625337",
- "skillId": "4119939010"
}
}
Returns all conversations where the given Consumer was a participant.
consumer_id required | string The Consumer ID |
limit | integer Number of records to return (default 100) |
offset | integer The number of items to skip before starting to collect the result set (default 0) |
sortBy | string Default: "createdTs" Enum: "createdTs" "lastUpdatedTs" Name of the field by which to sort the result set. |
sortOrder | string Default: "DESC" Enum: "ASC" "DESC" Allows to order the result set in ascending or descending order |
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "data": [
- {
- "id": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00",
- "brandId": "le84625337",
- "skillId": "4119939010",
- "state": "CLOSE",
- "stage": "CLOSE",
- "closeReason": "CONSUMER",
- "note": "",
- "dialogs": [
- {
- "id": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00",
- "conversationId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "closedTs": "2022-06-14T06:48:41.843+00:00",
- "participants": [
- {
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "CLOSE",
- "closedBy": "CONSUMER",
- "closedCause": "Ignored"
}
], - "ttr": {
- "type": "PRIORITIZED",
- "value": 600
}, - "csat": {
- "rate": 0
}, - "conversationRollOverHandler": {
- "accountId": "le84625337",
- "skillId": "4119939010"
}
}, - {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "createdTs": "2022-06-14T06:49:05.046+00:00",
- "lastUpdatedTs": "2022-06-14T06:49:05.046+00:00",
- "brandId": "le84625337",
- "skillId": "4119939010",
- "state": "OPEN",
- "stage": "OPEN",
- "note": "",
- "dialogs": [
- {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "createdTs": "2022-06-14T06:49:05.046+00:00",
- "lastUpdatedTs": "2022-06-14T06:49:05.046+00:00",
- "conversationId": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "participants": [
- {
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN"
}
], - "context": {
- "type": "SharkContext",
- "clientProperties": {
- "appId": "shark",
- "ipAddress": "215.243.68.105",
- "deviceFamily": "DESKTOP",
- "features": [
- "PHOTO_SHARING",
- "QUICK_REPLIES",
- "AUTO_MESSAGES",
- "MULTI_DIALOG",
- "FILE_SHARING",
- "RICH_CONTENT"
]
}, - "interactionContextId": "ID-123456"
}, - "ttr": {
- "type": "NORMAL",
- "value": 3600
}, - "csat": {
- "rate": 0
}, - "conversationRollOverHandler": {
- "accountId": "le84625337",
- "skillId": "4119939010"
}
}
],
}
Returns conversation count where the given Consumer was a participant.
consumer_id required | string The Consumer ID |
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
"Empty Body"
Returns a single Conversation with given ID.
conv_id required | string (conversationId) The Conversation ID |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "id": "string",
- "brandId": "string",
- "skillId": "string",
- "state": "OPEN",
- "stage": "OPEN",
- "closeReason": "CONSUMER",
- "note": "string",
- "dialogs": [
- {
- "id": "string",
- "conversationId": "string",
- "metaData": { },
- "closedTs": "2019-08-24T14:15:22Z",
- "participants": [
- {
- "id": "string",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN",
- "closedBy": "CONSUMER",
- "closedCause": "string",
- "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z"
}
], - "context": {
- "type": "CustomContext",
- "entryPoint": "string",
- "lang": "string",
- "clientProperties": {
- "appId": "string",
- "appVersion": "string",
- "ipAddress": "string",
- "deviceFamily": "DESKTOP",
- "os": "WINDOWS",
- "osVersion": "string",
- "osName": "string",
- "integration": "WEB_SDK",
- "integrationVersion": "string",
- "browser": "string",
- "browserVersion": "string",
- "timeZone": "string",
- "deviceManufacture": "string",
- "deviceModel": "string",
- "features": [
- "CO_BROWSE"
]
}, - "visitorId": "string",
- "sessionId": "string",
- "name": "string",
- "description": "string"
}, - "channelType": "MESSAGING",
- "ttr": {
- "type": "NORMAL",
- "value": 0
}, - "campaignInfo": {
- "campaignId": 0,
- "engagementId": 0
}, - "csat": {
- "rate": 0,
- "resolutionConfirmation": true,
- "status": "FILLED"
}, - "delay": {
- "type": "NIGHT",
- "tillWhen": 0
}, - "manualETTR": 0,
- "conversationRollOverHandler": {
- "accountId": "string",
- "skillId": "string"
}, - "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z"
}
conv_id required | string (conversationId) The Conversation ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{ConversationEtag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
note | string (note) Additional Information |
{- "note": "New note for conversation"
}
{- "id": "string",
- "brandId": "string",
- "skillId": "string",
- "state": "OPEN",
- "stage": "OPEN",
- "closeReason": "CONSUMER",
- "note": "string",
- "dialogs": [
- {
- "id": "string",
- "conversationId": "string",
- "metaData": { },
- "closedTs": "2019-08-24T14:15:22Z",
- "participants": [
- {
- "id": "string",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN",
- "closedBy": "CONSUMER",
- "closedCause": "string",
- "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z"
}
], - "context": {
- "type": "CustomContext",
- "entryPoint": "string",
- "lang": "string",
- "clientProperties": {
- "appId": "string",
- "appVersion": "string",
- "ipAddress": "string",
- "deviceFamily": "DESKTOP",
- "os": "WINDOWS",
- "osVersion": "string",
- "osName": "string",
- "integration": "WEB_SDK",
- "integrationVersion": "string",
- "browser": "string",
- "browserVersion": "string",
- "timeZone": "string",
- "deviceManufacture": "string",
- "deviceModel": "string",
- "features": [
- "CO_BROWSE"
]
}, - "visitorId": "string",
- "sessionId": "string",
- "name": "string",
- "description": "string"
}, - "channelType": "MESSAGING",
- "ttr": {
- "type": "NORMAL",
- "value": 0
}, - "campaignInfo": {
- "campaignId": 0,
- "engagementId": 0
}, - "csat": {
- "rate": 0,
- "resolutionConfirmation": true,
- "status": "FILLED"
}, - "delay": {
- "type": "NIGHT",
- "tillWhen": 0
}, - "manualETTR": 0,
- "conversationRollOverHandler": {
- "accountId": "string",
- "skillId": "string"
}, - "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z"
}
Resumes a closed Conversation in UMS with the given Consumer and Agent as participants. A new conversation will always be created even if the origin conversation does not exist.
agent_id required | string The Agent ID |
consumerId required | string Consumer's ID from the origin conversation |
optInRequired | boolean Pending |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
LP-Metadata | string Example: [{"type":"ActionReason","reason":"some reason","reasonId":"some reason Id"}] Needs to conform to the metadata json schema. |
skillId | string (skillId) The Skill ID |
object (ProactiveContext) |
{- "skillId": "4119939010",
- "context": {
- "type": "ProactiveContext",
- "originConversationId": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "originConversationContext": {
- "type": "SharkContext",
- "clientProperties": {
- "appId": "shark",
- "ipAddress": "67.102.67.108",
- "deviceFamily": "DESKTOP",
- "features": [
- "PHOTO_SHARING",
- "QUICK_REPLIES",
- "AUTO_MESSAGES",
- "MULTI_DIALOG",
- "FILE_SHARING",
- "RICH_CONTENT"
]
}
}
}
}
{- "id": "f798af10-c64f-47fa-ab39-4928d3271a41",
- "createdTs": "2022-06-10T19:16:09.947+00:00",
- "lastUpdatedTs": "2022-06-10T19:16:09.947+00:00",
- "brandId": "le84625337",
- "skillId": "4119939010",
- "state": "OPEN",
- "stage": "OPEN",
- "note": "",
- "dialogs": [
- {
- "id": "f798af10-c64f-47fa-ab39-4928d3271a41",
- "createdTs": "2022-06-10T19:16:09.947+00:00",
- "lastUpdatedTs": "2022-06-10T19:16:09.947+00:00",
- "conversationId": "f798af10-c64f-47fa-ab39-4928d3271a41",
- "participants": [
- {
- "id": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN"
}
], - "context": {
- "type": "ProactiveContext",
- "originConversationId": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "originConversationContext": {
- "type": "SharkContext",
- "clientProperties": {
- "appId": "shark",
- "ipAddress": "67.102.67.108",
- "deviceFamily": "DESKTOP",
- "features": [
- "PHOTO_SHARING",
- "QUICK_REPLIES",
- "AUTO_MESSAGES",
- "MULTI_DIALOG",
- "FILE_SHARING",
- "RICH_CONTENT"
]
}
}
}, - "ttr": {
- "type": "NORMAL",
- "value": 3600
}, - "csat": {
- "rate": 0
}, - "conversationRollOverHandler": {
- "accountId": "le84625337",
- "skillId": "4119939010"
}
}
Returns all conversations where the given Agent was a participant.
agent_id required | string The Agent ID |
limit | integer Number of records to return (default 100) |
offset | integer The number of items to skip before starting to collect the result set (default 0) |
sortBy | string Default: "createdTs" Enum: "createdTs" "lastUpdatedTs" Name of the field by which to sort the result set. |
sortOrder | string Default: "DESC" Enum: "ASC" "DESC" Allows to order the result set in ascending or descending order |
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "data": [
- {
- "id": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00",
- "brandId": "le84625337",
- "skillId": "4119939010",
- "state": "CLOSE",
- "stage": "CLOSE",
- "closeReason": "CONSUMER",
- "note": "",
- "dialogs": [
- {
- "id": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00",
- "conversationId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "closedTs": "2022-06-14T06:48:41.843+00:00",
- "participants": [
- {
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "CLOSE",
- "closedBy": "CONSUMER",
- "closedCause": "Ignored"
}
], - "ttr": {
- "type": "PRIORITIZED",
- "value": 600
}, - "csat": {
- "rate": 0
}, - "conversationRollOverHandler": {
- "accountId": "le84625337",
- "skillId": "4119939010"
}
}, - {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "createdTs": "2022-06-14T06:49:05.046+00:00",
- "lastUpdatedTs": "2022-06-14T06:49:05.046+00:00",
- "brandId": "le84625337",
- "skillId": "4119939010",
- "state": "OPEN",
- "stage": "OPEN",
- "note": "",
- "dialogs": [
- {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "createdTs": "2022-06-14T06:49:05.046+00:00",
- "lastUpdatedTs": "2022-06-14T06:49:05.046+00:00",
- "conversationId": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "participants": [
- {
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN"
}
], - "context": {
- "type": "SharkContext",
- "clientProperties": {
- "appId": "shark",
- "ipAddress": "215.243.68.105",
- "deviceFamily": "DESKTOP",
- "features": [
- "PHOTO_SHARING",
- "QUICK_REPLIES",
- "AUTO_MESSAGES",
- "MULTI_DIALOG",
- "FILE_SHARING",
- "RICH_CONTENT"
]
}, - "interactionContextId": "ID-123456"
}, - "ttr": {
- "type": "NORMAL",
- "value": 3600
}, - "csat": {
- "rate": 0
}, - "conversationRollOverHandler": {
- "accountId": "le84625337",
- "skillId": "4119939010"
}
}
],
}
Returns conversation count where the given Agent was a participant.
agent_id required | string The Agent ID |
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
"Empty Body"
Returns all conversations for the given Brand.
limit | integer Number of records to return (default: 100, max: 1000) |
offset | integer The number of items to skip before starting to collect the result set (default 0) |
sortBy | string Default: "createdTs" Enum: "createdTs" "lastUpdatedTs" Name of the field by which to sort the result set. |
sortOrder | string Default: "DESC" Enum: "ASC" "DESC" Allows to order the result set in ascending or descending order |
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "data": [
- {
- "id": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00",
- "brandId": "le84625337",
- "skillId": "4119939010",
- "state": "CLOSE",
- "stage": "CLOSE",
- "closeReason": "CONSUMER",
- "note": "",
- "dialogs": [
- {
- "id": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00",
- "conversationId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "closedTs": "2022-06-14T06:48:41.843+00:00",
- "participants": [
- {
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "CLOSE",
- "closedBy": "CONSUMER",
- "closedCause": "Ignored"
}
], - "ttr": {
- "type": "PRIORITIZED",
- "value": 600
}, - "csat": {
- "rate": 0
}, - "conversationRollOverHandler": {
- "accountId": "le84625337",
- "skillId": "4119939010"
}
}, - {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "createdTs": "2022-06-14T06:49:05.046+00:00",
- "lastUpdatedTs": "2022-06-14T06:49:05.046+00:00",
- "brandId": "le84625337",
- "skillId": "4119939010",
- "state": "OPEN",
- "stage": "OPEN",
- "note": "",
- "dialogs": [
- {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "createdTs": "2022-06-14T06:49:05.046+00:00",
- "lastUpdatedTs": "2022-06-14T06:49:05.046+00:00",
- "conversationId": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "participants": [
- {
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN"
}
], - "context": {
- "type": "SharkContext",
- "clientProperties": {
- "appId": "shark",
- "ipAddress": "215.243.68.105",
- "deviceFamily": "DESKTOP",
- "features": [
- "PHOTO_SHARING",
- "QUICK_REPLIES",
- "AUTO_MESSAGES",
- "MULTI_DIALOG",
- "FILE_SHARING",
- "RICH_CONTENT"
]
}, - "interactionContextId": "ID-123456"
}, - "ttr": {
- "type": "NORMAL",
- "value": 3600
}, - "csat": {
- "rate": 0
}, - "conversationRollOverHandler": {
- "accountId": "le84625337",
- "skillId": "4119939010"
}
}
],
}
Returns the conversation count for the given Brand.
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
"Empty Body"
A Dialog is a bounded exchange of messages between Participants within the context of a Conversation. A conversation can have multiple Dialogs. For example a MAIN
dialog (which contains the exchange of messages between the Consumer and Agent), then a second POST_SURVEY
dialog for collecting the Customer Satisfaction score.
Add a Participant, with the specified role, to the specified Dialog. This endpoint also works for the Consumer Step Up flow.
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
id required | string The User ID of the Participant. If Agent, the ID should be sent as |
role required | string Enum: "CONSUMER" "ASSIGNED_AGENT" "AGENT" "MANAGER" "READER" "BRAND_BOT" "CONTROLLER" The Role that this Participant should assume. Sending the |
state | string (participantState) Enum: "ACTIVE" "SUGGESTED" The Participant State |
{- "id": "1000001.1000001",
- "role": "ASSIGNED_AGENT",
- "state": "ACTIVE"
}
{- "id": "1000001.1000001",
- "role": "ASSIGNED_AGENT",
- "state": "ACTIVE"
}
Get all participants in a Dialog.
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
limit | integer Number of records to return (default 100) |
offset | integer The number of items to skip before starting to collect the result set (default 0) |
sortBy | string Default: "role" Enum: "id" "role" Name of the field by which to sort the result set. |
sortOrder | string Default: "DESC" Enum: "ASC" "DESC" Allows to order the result set in ascending or descending order |
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "data": [
- {
- "id": "le84625337.4120323110\"",
- "role": "ASSIGNED_AGENT",
- "state": "ACTIVE"
}, - {
- "id": "f66691cd-6ecd-4c81-90d5-37bddab32726",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
],
}
Returns participant count in a Dialog.
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
"Empty Body"
Returns a single Participant resource with the given ID within a Dialog
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
participant_id required | string The Participant ID |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "id": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
Updates the role of a single participant in a Dialog. If the Participant in the request is an Agent that updates its role to AGENT_ASSIGNED
and an agent with this role already exists in the conversation, the existing agent with the role will be replaced by the one in the request.
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
participant_id required | string The Participant ID |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{Etag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
id required | string The User ID of the Participant. If Agent, the ID should be sent as |
role required | string Enum: "CONSUMER" "ASSIGNED_AGENT" "AGENT" "MANAGER" "READER" "BRAND_BOT" "CONTROLLER" The Role that this Participant should assume. Sending the |
state | string (participantState) Enum: "ACTIVE" "SUGGESTED" The Participant State |
{- "id": "1000001.1000001",
- "role": "READER",
- "state": "ACTIVE"
}
{- "id": "1000001.1000001",
- "role": "READER",
- "state": "ACTIVE"
}
Removes a single Participant from a Dialog. If the removed Participant was an ASSIGNED_AGENT
, this action will trigger the "back to queue" flow for matching another available Agent.
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
participant_id required | string The Participant ID |
transferToSkillId | string The Skill ID to which the conversation would be changed |
transferToAgentId | string The Agent ID to transfer the conversation |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{Etag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
"Empty Body"
conv_id required | string (conversationId) The Conversation ID |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
required | Array of objects (participants) List of Participants |
dialogType required | string (dialogType) Enum: "MAIN" "AGENTS" "OTHER" "POST_SURVEY" "PRE_CONVERSATION_OPT_IN" The Dialog Type |
channelType | string (channelType) Enum: "MESSAGING" "LIVE_CHAT" "COBROWSE" The Channel Type |
state | string (dialogState) Enum: "OPEN" "CLOSE" The Dialog State |
{- "participants": [
- {
- "id": "b123456789.1234567890",
- "role": "AGENT",
- "state": "ACTIVE"
}
], - "dialogType": "AGENTS",
- "channelType": "MESSAGING",
- "state": "OPEN"
}
{- "id": "yDLvflnpT66SNTL06YcT0w",
- "lastUpdatedTs": "2022-12-16T05:03:09.903+00:00",
- "conversationId": "616cb657-1f63-43b8-aa48-78dfd1f3e749",
- "participants": [
- {
- "id": "le84625337.4120323110",
- "role": "ASSIGNED_AGENT",
- "state": "ACTIVE"
}
], - "dialogType": "AGENTS",
- "channelType": "MESSAGING",
- "state": "OPEN"
}
Returns a single Dialog resource within a Conversation
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "id": "616cb657-1f63-43b8-aa48-78dfd1f3e749",
- "createdTs": "2022-12-16T05:02:47.709+00:00",
- "lastUpdatedTs": "2022-12-16T05:03:09.903+00:00",
- "conversationId": "616cb657-1f63-43b8-aa48-78dfd1f3e749",
- "participants": [
- {
- "id": "le84625337.4120323110",
- "role": "ASSIGNED_AGENT",
- "state": "ACTIVE"
}, - {
- "id": "47510a9e-39a2-45c6-9b26-2adbdf832d87",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN"
}
Update a field on a Dialog. For example dialog metadata, or dialog State (to close the dialog)
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{DialogEtag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
metadata | object (dialogMetadata) The Dialog Metadata |
{- "metadata": {
- "appInstallId": "81283dd0-791f-4ec1-9bd6-522a758b6f19"
}
}
{- "id": "616cb657-1f63-43b8-aa48-78dfd1f3e749",
- "createdTs": "2022-12-16T05:02:47.709+00:00",
- "lastUpdatedTs": "2022-12-16T05:03:09.903+00:00",
- "conversationId": "616cb657-1f63-43b8-aa48-78dfd1f3e749",
- "participants": [
- {
- "id": "le84625337.4120323110",
- "role": "ASSIGNED_AGENT",
- "state": "ACTIVE"
}, - {
- "id": "47510a9e-39a2-45c6-9b26-2adbdf832d87",
- "role": "CONSUMER",
- "state": "ACTIVE"
}
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN"
}
A Message is a single block of text posted by any participant within a Dialog. UMS supports different types of Messages like PLAIN_TEXT
, RICH_CONTENT
, HOSTED_FILE
, EXTERNAL_FILE
, ACKNOWLEDGEMENT
, etc.
Publish a message to a Dialog in a Conversation
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
type required | string (messageType) Enum: "PLAIN_TEXT" "EXTERNAL_FILE" "HOSTED_FILE" "RICH_CONTENT" "SECURE_FORM_INVITATION" "SECURE_FORM_SUBMISSION" "ACKNOWLEDGEMENT" "CHAT_STATE" Message Type |
required | PLAIN_TEXT (object) or RICH_CONTENT (object) or HOSTED_FILE (object) or EXTERNAL_FILE (object) or SECURE_FORM_INVITATION (object) or SECURE_FORM_SUBMISSION (object) or ACKNOWLEDGEMENT (object) or CHAT_STATE (object) (messageContent) |
object (ClientProperties) Properties of the Client device | |
metadata | Array of objects (messageMetadata) Needs to conform to the metadata json schema. |
messageAudience | string (messageAudience) Enum: "ALL" "AGENTS_AND_MANAGERS" Message Audience |
{- "type": "PLAIN_TEXT",
- "content": {
- "text": "Hi, I'm John",
- "alt": "Alternative Text",
- "quickReplies": {
- "type": "quickReplies",
- "itemsPerRow": 3,
- "replies": [
- {
- "type": "button",
- "title": "Find similar",
- "tooltip": "store is the thing",
- "click": {
- "metadata": [
- {
- "type": "ExternalId",
- "id": "MY_CARD_ID.FIND_SIMILAR_ACTION_ID"
}
],
}
}, - {
- "type": "button",
- "tooltip": "button tooltip",
- "title": "Publish text",
- "click": {
- "actions": [
- {
- "type": "publishText",
- "text": "my text"
}
]
}
}
]
}
}, - "metadata": [
- {
- "type": "ActionReason",
- "reason": "some reason",
- "reasonId": "some reason Id"
}
], - "messageAudience": "ALL"
}
{- "id": "14e4d43d-081c-4d40-81c0-37893f63dfad_1",
- "type": "PLAIN_TEXT",
- "sequence": "1",
- "dialogId": "14e4d43d-081c-4d40-81c0-37893f63dfad",
- "content": {
- "text": "Hi, I'm John",
- "alt": "Alternative Text",
- "quickReplies": {
- "type": "quickReplies",
- "itemsPerRow": 3,
- "replies": [
- {
- "type": "button",
- "title": "Find similar",
- "tooltip": "store is the thing",
- "click": {
- "metadata": [
- {
- "type": "ExternalId",
- "id": "MY_CARD_ID.FIND_SIMILAR_ACTION_ID"
}
],
}
}, - {
- "type": "button",
- "tooltip": "button tooltip",
- "title": "Publish text",
- "click": {
- "actions": [
- {
- "type": "publishText",
- "text": "my text"
}
]
}
}
]
}
}, - "originator": {
- "role": "CONSUMER",
- "id": "6e6620eb-715e-4116-a5a7-47fcb9ac8932"
}, - "metadata": [
- {
- "type": "ActionReason",
- "reason": "some reason",
- "reasonId": "some reason Id"
}
], - "messageAudience": "ALL"
}
Returns a paginated list of messages in a dialog. This is equivalent to the Query Messages WebSocket API. Messages are sorted in descending order of sequence (oldest first).
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
limit | integer Number of records to return (default 100) |
offset | integer The number of items to skip before starting to collect the result set (default 0) |
sortBy | string Value: "sequence" Name of the field by which to sort the result set. |
sortOrder | string Default: "DESC" Enum: "ASC" "DESC" Allows to order the result set in ascending or descending order |
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
newerThanSequence | integer Only return messages with sequence number greater than or equal to this value |
olderThanSequence | integer Only return messages with sequence number smaller than or equal to this value |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "data": [
- {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c_2",
- "createdTs": "2022-06-14T07:05:09.471+00:00",
- "dialogId": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "sequence": "2",
- "content": {
- "text": "Hi",
- "alt": "Alternative text",
- "quickReplies": {
- "type": "quickReplies",
- "itemsPerRow": 3,
- "replies": [
- {
- "type": "button",
- "title": "Find similar",
- "tooltip": "store is the thing",
- "click": {
- "metadata": [
- {
- "type": "ExternalId",
- "id": "MY_CARD_ID.FIND_SIMILAR_ACTION_ID"
}
],
}
}, - {
- "type": "button",
- "tooltip": "button tooltip",
- "title": "Publish text",
- "click": {
- "actions": [
- {
- "type": "publishText",
- "text": "my text"
}
]
}
}
]
}
}, - "type": "PLAIN_TEXT",
- "originator": {
- "role": "CONSUMER",
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e"
}, - "metadata": [
- {
- "type": "ActionReason",
- "reason": "some reason",
- "reasonId": "some reason Id"
}
], - "messageAudience": "ALL"
}, - {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c_3",
- "createdTs": "2022-06-14T07:05:12.350+00:00",
- "dialogId": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "sequence": "3",
- "content": {
- "text": "Hi",
- "alt": "Alternative text",
- "quickReplies": {
- "type": "quickReplies",
- "itemsPerRow": 3,
- "replies": [
- {
- "type": "button",
- "title": "Find similar",
- "tooltip": "store is the thing",
- "click": {
- "metadata": [
- {
- "type": "ExternalId",
- "id": "MY_CARD_ID.FIND_SIMILAR_ACTION_ID"
}
],
}
}, - {
- "type": "button",
- "tooltip": "button tooltip",
- "title": "Publish text",
- "click": {
- "actions": [
- {
- "type": "publishText",
- "text": "my text"
}
]
}
}
]
}
}, - "type": "PLAIN_TEXT",
- "originator": {
- "role": "CONSUMER",
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e"
}, - "metadata": [
- {
- "type": "ActionReason",
- "reason": "some reason",
- "reasonId": "some reason Id"
}
], - "messageAudience": "ALL"
}, - {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c_4",
- "createdTs": "2022-06-14T07:06:02.784+00:00",
- "dialogId": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "sequence": "4",
- "content": {
- "text": "Hi",
- "alt": "Alternative text",
- "quickReplies": {
- "type": "quickReplies",
- "itemsPerRow": 3,
- "replies": [
- {
- "type": "button",
- "title": "Find similar",
- "tooltip": "store is the thing",
- "click": {
- "metadata": [
- {
- "type": "ExternalId",
- "id": "MY_CARD_ID.FIND_SIMILAR_ACTION_ID"
}
],
}
}, - {
- "type": "button",
- "tooltip": "button tooltip",
- "title": "Publish text",
- "click": {
- "actions": [
- {
- "type": "publishText",
- "text": "my text"
}
]
}
}
]
}
}, - "type": "PLAIN_TEXT",
- "originator": {
- "role": "CONSUMER",
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e"
}, - "metadata": [
- {
- "type": "ActionReason",
- "reason": "some reason",
- "reasonId": "some reason Id"
}
], - "messageAudience": "ALL"
}, - {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c_5",
- "createdTs": "2022-06-14T07:06:04.438+00:00",
- "dialogId": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "sequence": "5",
- "content": {
- "text": "Hi",
- "alt": "Alternative text",
- "quickReplies": {
- "type": "quickReplies",
- "itemsPerRow": 3,
- "replies": [
- {
- "type": "button",
- "title": "Find similar",
- "tooltip": "store is the thing",
- "click": {
- "metadata": [
- {
- "type": "ExternalId",
- "id": "MY_CARD_ID.FIND_SIMILAR_ACTION_ID"
}
],
}
}, - {
- "type": "button",
- "tooltip": "button tooltip",
- "title": "Publish text",
- "click": {
- "actions": [
- {
- "type": "publishText",
- "text": "my text"
}
]
}
}
]
}
}, - "type": "PLAIN_TEXT",
- "originator": {
- "role": "CONSUMER",
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e"
}, - "metadata": [
- {
- "type": "ActionReason",
- "reason": "some reason",
- "reasonId": "some reason Id"
}
], - "messageAudience": "ALL"
}, - {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c_6",
- "createdTs": "2022-06-14T07:06:06.638+00:00",
- "dialogId": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "sequence": "6",
- "content": {
- "text": "Hi",
- "alt": "Alternative text",
- "quickReplies": {
- "type": "quickReplies",
- "itemsPerRow": 3,
- "replies": [
- {
- "type": "button",
- "title": "Find similar",
- "tooltip": "store is the thing",
- "click": {
- "metadata": [
- {
- "type": "ExternalId",
- "id": "MY_CARD_ID.FIND_SIMILAR_ACTION_ID"
}
],
}
}, - {
- "type": "button",
- "tooltip": "button tooltip",
- "title": "Publish text",
- "click": {
- "actions": [
- {
- "type": "publishText",
- "text": "my text"
}
]
}
}
]
}
}, - "type": "PLAIN_TEXT",
- "originator": {
- "role": "CONSUMER",
- "id": "83e31974-2c34-47b8-b240-730cd9b02a9e"
}, - "metadata": [
- {
- "type": "ActionReason",
- "reason": "some reason",
- "reasonId": "some reason Id"
}
], - "messageAudience": "ALL"
}
], - "links": {
}
}
Returns the message count in a dialog.
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
filters | string Examples:
Any filters to apply on the collection. This needs to be in a URL encoded json string. For example |
newerThanSequence | integer Only return messages with sequence number greater than or equal to this value |
olderThanSequence | integer Only return messages with sequence number smaller than or equal to this value |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
"Empty Body"
Returns the unread message count in a dialog for a participant.
conv_id required | string (conversationId) The Conversation ID |
dialog_id required | string (dialogId) The Dialog ID |
participant_id required | string The Participant ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
"Empty Body"
A Subscription resource encapsulates an Agent's or Consumer's intent to receive notifications on future updates to certain UMS resources that match a specified criteria. UMS supports two types of Subscriptions
Conversation Subscription
- Subscription on updates to Conversation resourcesMessage Subscription
- Subscription on messaging events on a DialogBefore creating a Subscription, the client needs to ensure a webhook endpoint is set up to receive notifications. See the Webhooks section for more details.
consumer_id required | string The Consumer ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
required | object (MessageSubscriptionFilter) Filter criteria for this Subscription. Specify filters to narrow the scope of events that qualify for this Subscription. |
required | object (SubscriptionNotifications) Describes how notifications against this Subscription should be delivered |
{- "filters": {
- "dialogId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "fromSeq": 0
}, - "notifications": {
- "webhookEndpointId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "mode": "WEBHOOK"
}
}
{- "id": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "brandId": "51574755",
- "subscriber": {
- "userId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "userType": "CONSUMER"
}, - "filters": {
- "dialogId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "fromSeq": 0
}, - "notifications": {
- "webhookEndpointId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "mode": "WEBHOOK"
}, - "createdTs": "2022-06-14T06:48:10.987+00:00"
}
[- {
- "subscription": {
- "id": "string",
- "subscriber": {
- "userId": "string",
- "userType": "CONSUMER"
}
}, - "notification": {
- "type": "MessagingEventNotification",
- "sentTs": "string",
- "changes": [
- {
- "dialogId": "string",
- "conversationId": "string",
- "sequence": "string",
- "type": "PLAIN_TEXT",
- "content": {
- "text": "string",
- "alt": "string",
- "quickReplies": { }
}, - "originator": {
- "id": "string",
- "role": "CONSUMER"
}, - "metadata": [
- { }
], - "messageAudience": "ALL",
- "createdTs": "2019-08-24T14:15:22Z"
}
]
}
}
]
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
required | object (MessageSubscriptionFilter) Filter criteria for this Subscription. Specify filters to narrow the scope of events that qualify for this Subscription. |
required | object (SubscriptionNotifications) Describes how notifications against this Subscription should be delivered |
{- "filters": {
- "dialogId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "fromSeq": 0
}, - "notifications": {
- "webhookEndpointId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "mode": "WEBHOOK"
}
}
{- "id": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "brandId": "51574755",
- "subscriber": {
- "userId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "userType": "CONSUMER"
}, - "filters": {
- "dialogId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "fromSeq": 0
}, - "notifications": {
- "webhookEndpointId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "mode": "WEBHOOK"
}, - "createdTs": "2022-06-14T06:48:10.987+00:00"
}
[- {
- "subscription": {
- "id": "string",
- "subscriber": {
- "userId": "string",
- "userType": "CONSUMER"
}
}, - "notification": {
- "type": "MessagingEventNotification",
- "sentTs": "string",
- "changes": [
- {
- "dialogId": "string",
- "conversationId": "string",
- "sequence": "string",
- "type": "PLAIN_TEXT",
- "content": {
- "text": "string",
- "alt": "string",
- "quickReplies": { }
}, - "originator": {
- "id": "string",
- "role": "CONSUMER"
}, - "metadata": [
- { }
], - "messageAudience": "ALL",
- "createdTs": "2019-08-24T14:15:22Z"
}
]
}
}
]
subscription_id required | string The Subscription ID |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "id": "string",
- "brandId": "string",
- "subscriber": {
- "userId": "string",
- "userType": "string"
}, - "filters": {
- "dialogId": "string",
- "fromSeq": 0
}, - "notifications": {
- "webhookEndpointId": "string",
- "mode": "WEBHOOK"
}, - "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z",
- "expirationTs": "2019-08-24T14:15:22Z"
}
Equivalent to an Unsubscribe request.
subscription_id required | string The Subscription ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{SubscriptionEtag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
consumer_id required | string The Consumer ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
required | object (ConversationSubscriptionFilter) Filter criteria for this Subscription. Specify filters to narrow the scope of events that qualify for this Subscription. |
required | object (SubscriptionNotifications) Describes how notifications against this Subscription should be delivered |
{- "filters": {
- "consumerId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "brandId": "51574755",
- "conversationStates": [
- "OPEN",
- "CLOSE"
], - "conversationStages": [
- "OPEN",
- "CLOSE"
], - "dialogTypes": [
- "MAIN",
- "POST_SURVEY",
- "PRE_CONVERSATION_OPT_IN"
]
}, - "notifications": {
- "webhookEndpointId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "mode": "WEBHOOK"
}
}
{- "id": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "brandId": "le84625337",
- "subscriber": {
- "userId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "userType": "CONSUMER"
}, - "filters": {
- "consumerId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "brandId": "le84625337",
- "conversationStates": [
- "OPEN",
- "CLOSE"
], - "conversationStages": [
- "OPEN",
- "CLOSE"
], - "dialogTypes": [
- "MAIN",
- "POST_SURVEY",
- "PRE_CONVERSATION_OPT_IN"
]
}, - "notifications": {
- "webhookEndpointId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "mode": "WEBHOOK"
}, - "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00",
- "expirationTs": "2022-07-14T06:48:41.843+00:00"
}
[- {
- "subscription": {
- "id": "string",
- "subscriber": {
- "userId": "string",
- "userType": "CONSUMER"
}
}, - "notification": {
- "type": "ExConversationChangeNotification",
- "sentTs": "string",
- "changes": [
- {
- "type": "string",
- "result": {
- "conversation": {
- "id": "string",
- "brandId": "string",
- "skillId": "string",
- "state": "OPEN",
- "stage": "OPEN",
- "closeReason": "CONSUMER",
- "note": "string",
- "dialogs": [
- {
- "id": "string",
- "conversationId": "string",
- "metaData": { },
- "closedTs": "2019-08-24T14:15:22Z",
- "participants": [
- null
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN",
- "closedBy": "CONSUMER",
- "closedCause": "string",
- "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z"
}
], - "context": {
- "type": "CustomContext",
- "entryPoint": "string",
- "lang": "string",
- "clientProperties": {
- "appId": "string",
- "appVersion": "string",
- "ipAddress": "string",
- "deviceFamily": "DESKTOP",
- "os": "WINDOWS",
- "osVersion": "string",
- "osName": "string",
- "integration": "WEB_SDK",
- "integrationVersion": "string",
- "browser": "string",
- "browserVersion": "string",
- "timeZone": "string",
- "deviceManufacture": "string",
- "deviceModel": "string",
- "features": [
- null
]
}, - "visitorId": "string",
- "sessionId": "string",
- "name": "string",
- "description": "string"
}, - "channelType": "MESSAGING",
- "ttr": {
- "type": "NORMAL",
- "value": 0
}, - "campaignInfo": {
- "campaignId": 0,
- "engagementId": 0
}, - "csat": {
- "rate": 0,
- "resolutionConfirmation": true,
- "status": "FILLED"
}, - "delay": {
- "type": "NIGHT",
- "tillWhen": 0
}, - "manualETTR": 0,
- "conversationRollOverHandler": {
- "accountId": "string",
- "skillId": "string"
}, - "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z"
}, - "effectiveTTR": "string"
}
}
]
}
}
]
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
required | object (ConversationSubscriptionFilter) Filter criteria for this Subscription. Specify filters to narrow the scope of events that qualify for this Subscription. |
required | object (SubscriptionNotifications) Describes how notifications against this Subscription should be delivered |
{- "filters": {
- "brandId": "51574755",
- "conversationStages": [
- "OPEN"
], - "dialogTypes": [
- "MAIN"
]
}, - "notifications": {
- "webhookEndpointId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "mode": "WEBHOOK"
}
}
{- "id": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "brandId": "le84625337",
- "subscriber": {
- "userId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "userType": "CONSUMER"
}, - "filters": {
- "consumerId": "54e5384b-e37d-4fee-b361-b54ce8affdc0",
- "brandId": "le84625337",
- "conversationStates": [
- "OPEN",
- "CLOSE"
], - "conversationStages": [
- "OPEN",
- "CLOSE"
], - "dialogTypes": [
- "MAIN",
- "POST_SURVEY",
- "PRE_CONVERSATION_OPT_IN"
]
}, - "notifications": {
- "webhookEndpointId": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "mode": "WEBHOOK"
}, - "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00",
- "expirationTs": "2022-07-14T06:48:41.843+00:00"
}
[- {
- "subscription": {
- "id": "string",
- "subscriber": {
- "userId": "string",
- "userType": "CONSUMER"
}
}, - "notification": {
- "type": "ExConversationChangeNotification",
- "sentTs": "string",
- "changes": [
- {
- "type": "string",
- "result": {
- "conversation": {
- "id": "string",
- "brandId": "string",
- "skillId": "string",
- "state": "OPEN",
- "stage": "OPEN",
- "closeReason": "CONSUMER",
- "note": "string",
- "dialogs": [
- {
- "id": "string",
- "conversationId": "string",
- "metaData": { },
- "closedTs": "2019-08-24T14:15:22Z",
- "participants": [
- null
], - "dialogType": "MAIN",
- "channelType": "MESSAGING",
- "state": "OPEN",
- "closedBy": "CONSUMER",
- "closedCause": "string",
- "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z"
}
], - "context": {
- "type": "CustomContext",
- "entryPoint": "string",
- "lang": "string",
- "clientProperties": {
- "appId": "string",
- "appVersion": "string",
- "ipAddress": "string",
- "deviceFamily": "DESKTOP",
- "os": "WINDOWS",
- "osVersion": "string",
- "osName": "string",
- "integration": "WEB_SDK",
- "integrationVersion": "string",
- "browser": "string",
- "browserVersion": "string",
- "timeZone": "string",
- "deviceManufacture": "string",
- "deviceModel": "string",
- "features": [
- null
]
}, - "visitorId": "string",
- "sessionId": "string",
- "name": "string",
- "description": "string"
}, - "channelType": "MESSAGING",
- "ttr": {
- "type": "NORMAL",
- "value": 0
}, - "campaignInfo": {
- "campaignId": 0,
- "engagementId": 0
}, - "csat": {
- "rate": 0,
- "resolutionConfirmation": true,
- "status": "FILLED"
}, - "delay": {
- "type": "NIGHT",
- "tillWhen": 0
}, - "manualETTR": 0,
- "conversationRollOverHandler": {
- "accountId": "string",
- "skillId": "string"
}, - "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z"
}, - "effectiveTTR": "string"
}
}
]
}
}
]
subscription_id required | string The Subscription ID |
fields | string Examples:
List of fields to include in the response. Fields must be separated by a comma. |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "id": "string",
- "brandId": "string",
- "subscriber": {
- "userId": "string",
- "userType": "string"
}, - "filters": {
- "consumerId": "string",
- "agentIds": [
- "string"
], - "brandId": "string",
- "conversationStates": [
- "OPEN"
], - "conversationStages": [
- "OPEN"
], - "dialogTypes": [
- "MAIN"
]
}, - "notifications": {
- "webhookEndpointId": "string",
- "mode": "WEBHOOK"
}, - "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z",
- "expirationTs": "2019-08-24T14:15:22Z"
}
Subscriptions created via the REST API do not live indefinitely. By default, Subscriptions of type MessageSubscription
auto-expire with the Conversation after the dialog closes.
Subscriptions of type ConversationSubscription
accept a client provided expirationTs
at the time of creation (if this field is absent in the create request, a default, system
configured expiration is set). The client application is responsible to call this endpoint to extend the expiration of the Subscription if they would like to keep it active.
subscription_id required | string The Subscription ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{SubscriptionEtag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
expirationTs | string <date-time> The new expiration time for this Subscription |
{- "expirationTs": "2023-08-24T14:15:22Z"
}
Equivalent to an Unsubscribe request.
subscription_id required | string The Subscription ID |
Authorization required | string Example: {{AppJWT}} Check the different authentication types available in the |
LP-ON-BEHALF | string Example: {{ConsumerJWS}} The ConsumerJWS. This header is required only for |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{SubscriptionEtag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
A Webhook Endpoint resource encapsulates an HTTP service hosted by the client application calling the REST API (specifically the subscriptions API), capable of receiving notifications via HTTP requests from UMS. This section covers two types of resources
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
scheme required | string (LPSignatureScheme) Value: "LP_SIGNATURE" A name of the scheme used for authentication and authorization. |
required | object (LPSignatureSettingsCreate) LivePerson digital signature settings. |
{- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA1"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA1",
- "clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
- "clientSecret": "pa$$word"
}
}
Returns all webhook credentials available for the given Brand.
limit | integer Number of records to return (default: 100, max: 1000) |
offset | integer The number of items to skip before starting to collect the result set (default 0) |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "data": [
- {
- "id": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "name": "Default Credentials for brand le84625337",
- "brandId": "le84625337",
- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA256",
- "clientId": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "clientSecret": "fl785v0sw58klfk6mtap0j4etc"
}, - "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00"
}, - {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "name": "API key Credentials for brand le84625337",
- "brandId": "le84625337",
- "scheme": "API_KEY",
- "settings": {
- "header": "Authorization",
- "apiKey": "542a0b05bcd5ab86d53a0d114495b941-542a0b05bcd54495b941ab86d53a"
}, - "createdTs": "2022-06-14T06:49:05.046+00:00",
- "lastUpdatedTs": "2022-06-14T06:49:05.046+00:00"
}
],
}
Returns webhook credentials count for the brand provided in the Brand-ID header.
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
credentials_id required | string The Webhook Endpoint ID |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "id": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA256",
- "clientId": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "clientSecret": "fl785v0sw58klfk6mtap0j4etc"
}
}
credentials_id required | string The Webhook Endpoint ID |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{WebhookCredentialsEtag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
scheme required | string (LPSignatureScheme) Value: "LP_SIGNATURE" A name of the scheme used for authentication and authorization. |
required | object (LPSignatureSettingsCreate) LivePerson digital signature settings. |
{- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA1"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA1",
- "clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
- "clientSecret": "pa$$word"
}
}
credentials_id required | string The Webhook Endpoint ID |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{WebhookCredentialsEtag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Content-Type required | string Example: application/json The Content-Type header is used to indicate the media type of the resource. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
brandId | string (Brand ID) The Brand ID that this webhook endpoint belongs to. A value of '*' here denotes that it is a brand agnostic webhook endpoint (reserved for LP internal backend applications). |
name | string (Webhook Endpoint Name) For brands or applications using multiple webhook endpoints, this field can be used to easily recognize and distinguish between the webhook endpoint resources. |
uri required | string (Webhook Endpoint URI) The URI of the webhook endpoint. This is where the client will receive the HTTP requests containing notifications. |
method required | string (Webhook Endpoint HTTP method.) Enum: "POST" "PUT" "PATCH" HTTP method that should be used when invoking this webhook endpoint. |
object (HTTP Request Headers) Additional HTTP headers to be send with the request to the webhook endpoint. Expressed as key-value pairs, key being the header name, and value being the header value. | |
batchSize | integer <int32> (Batch Size) [ 1 .. 100 ] Default: 10 The maximum number of events that can be sent with one request to the webhook endpoint. There is no guarantee that the specified number of events will be sent with every request. The actual number of events may vary. This setting only defines the maximum possible size of the batch. The default batch size is 10. The batch size cannot exceed 100 events. |
connectTimeout | integer <int32> (Connect Timeout) [ 1 .. 3000 ] Default: 1000 The amount of time in milliseconds the client will wait for the connection to be established with the webhook endpoint's host. This parameter should have a reasonable value considering the route to the host and performance of the system, the webhook endpoint is hosted in. Otherwise, if the webhook endpoint's system is unstable, it may affect the overall performance of the event processing pipeline. Please note that the maximum allowed connect timeout is 3 seconds. The webhook endpoint must satisfy this requirement. The default value is 1 second. |
readTimeout | integer <int32> (Read Timeout) [ 1 .. 5000 ] Default: 3000 The amount of time in milliseconds the client will wait for the reply from the webhook endpoint. This parameter should have a reasonable value considering the performance of the system, the webhook endpoint is hosted in. Otherwise, if the webhook endpoint's system is unstable, it may affect the overall performance of the event processing pipeline. Please note that the maximum allowed read timeout is 5 seconds. The webhook endpoint must satisfy this requirement. The default value is 3 seconds. |
object (Resilience Settings) The configuration of the webhook client's behavior in case when the webhook endpoint is unstable. Enabled resilience mechanisms may increase the reliability of the entire system. | |
required | object |
{- "name": "Webhook Endpoint for brand 51574755",
- "method": "POST",
- "headers": {
- "x-custom-header-1": "custom-header-1-value",
- "x-custom-header-2": "custom-header-2-value"
}, - "connectTimeout": 1000,
- "security": {
- "credentials": {
- "id": "f798af10-c64f-47fa-ab39-4928d3271a40"
}
}
}
{- "id": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "name": "Webhook Endpoint for brand 51574755",
- "brandId": 51574755,
- "method": "POST",
- "headers": {
- "x-custom-header-1": "custom-header-1-value",
- "x-custom-header-2": "custom-header-2-value"
}, - "batchSize": 1,
- "connectTimeout": 1000,
- "readTimeout": 3000,
- "resilience": {
- "retries": {
- "attempts": 10,
- "delay": 1000,
- "maxDelay": 60000,
- "backoffStrategy": "FIXED_DELAY",
- "retryOnConnectTimeout": true,
- "retryOnReadTimeout": true,
- "retryOnStatuses": [
- 429,
- 500,
- 501,
- 502,
- 503,
- 504,
- 505
]
}
}, - "security": {
- "credentials": {
- "id": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA256",
- "clientId": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "clientSecret": "fl785v0sw58klfk6mtap0j4etc"
}
}
}, - "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00"
}
Returns all webhook endpoints available for the given Brand.
limit | integer Number of records to return (default: 100, max: 1000) |
offset | integer The number of items to skip before starting to collect the result set (default 0) |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "data": [
- {
- "id": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "brandId": "le84625337",
- "method": "POST",
- "batchSize": 50,
- "connectTimeout": 500,
- "readTimeout": 2000,
- "resilience": {
- "retries": {
- "attempts": 10,
- "delay": 1000,
- "maxDelay": 60000,
- "backoffStrategy": "FULL_JITTER",
- "retryOnConnectTimeout": true,
- "retryOnReadTimeout": true,
- "retryOnStatuses": [
- 429,
- 500,
- 501,
- 502,
- 503,
- 504,
- 505
]
}
}, - "security": {
- "credentials": {
- "id": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA256",
- "clientId": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "clientSecret": "fl785v0sw58klfk6mtap0j4etc"
}
}
}, - "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00"
}, - {
- "id": "2b49c1f4-7b84-47f6-bf2a-a787d7ebaf4c",
- "brandId": "le84625337",
- "method": "POST",
- "batchSize": 50,
- "connectTimeout": 500,
- "readTimeout": 2000,
- "resilience": {
- "retries": {
- "attempts": 10,
- "delay": 1000,
- "maxDelay": 1000,
- "backoffStrategy": "FIXED_DELAY",
- "retryOnConnectTimeout": true,
- "retryOnReadTimeout": true,
- "retryOnStatuses": [
- 429,
- 500,
- 501,
- 502,
- 503,
- 504,
- 505
]
}
}, - "security": {
- "credentials": {
- "id": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA256",
- "clientId": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "clientSecret": "fl785v0sw58klfk6mtap0j4etc"
}
}
}, - "createdTs": "2022-06-14T06:49:05.046+00:00",
- "lastUpdatedTs": "2022-06-14T06:49:05.046+00:00"
}
],
}
Returns webhook endpoints count for the brand provided in the Brand-ID header.
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
endpoint_id required | string The Webhook Endpoint ID |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
{- "id": "fe6ef683-6499-43fe-bd6f-cc41d13527e2",
- "name": "Webhook Endpoint for brand 51574755",
- "brandId": 51574755,
- "method": "POST",
- "headers": {
- "x-custom-header-1": "custom-header-1-value",
- "x-custom-header-2": "custom-header-2-value"
}, - "batchSize": 1,
- "connectTimeout": 1000,
- "readTimeout": 3000,
- "resilience": {
- "retries": {
- "attempts": 10,
- "delay": 1000,
- "maxDelay": 60000,
- "backoffStrategy": "FIXED_DELAY",
- "retryOnConnectTimeout": true,
- "retryOnReadTimeout": true,
- "retryOnStatuses": [
- 429,
- 500,
- 501,
- 502,
- 503,
- 504,
- 505
]
}
}, - "security": {
- "credentials": {
- "id": "f798af10-c64f-47fa-ab39-4928d3271a40",
- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA256",
- "clientId": "ab86d53a-0d11-4495-b941-542a0b05bcd5",
- "clientSecret": "fl785v0sw58klfk6mtap0j4etc"
}
}
}, - "createdTs": "2022-06-14T06:48:10.987+00:00",
- "lastUpdatedTs": "2022-06-14T06:48:41.843+00:00"
}
endpoint_id required | string The Webhook Endpoint ID |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{WebhookEndpointEtag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |
brandId | string (Brand ID) The Brand ID that this webhook endpoint belongs to. A value of '*' here denotes that it is a brand agnostic webhook endpoint (reserved for LP internal backend applications). |
name | string (Webhook Endpoint Name) For brands or applications using multiple webhook endpoints, this field can be used to easily recognize and distinguish between the webhook endpoint resources. |
uri required | string (Webhook Endpoint URI) The URI of the webhook endpoint. This is where the client will receive the HTTP requests containing notifications. |
method required | string (Webhook Endpoint HTTP method.) Enum: "POST" "PUT" "PATCH" HTTP method that should be used when invoking this webhook endpoint. |
object (HTTP Request Headers) Additional HTTP headers to be send with the request to the webhook endpoint. Expressed as key-value pairs, key being the header name, and value being the header value. | |
batchSize | integer <int32> (Batch Size) [ 1 .. 100 ] Default: 10 The maximum number of events that can be sent with one request to the webhook endpoint. There is no guarantee that the specified number of events will be sent with every request. The actual number of events may vary. This setting only defines the maximum possible size of the batch. The default batch size is 10. The batch size cannot exceed 100 events. |
connectTimeout | integer <int32> (Connect Timeout) [ 1 .. 3000 ] Default: 1000 The amount of time in milliseconds the client will wait for the connection to be established with the webhook endpoint's host. This parameter should have a reasonable value considering the route to the host and performance of the system, the webhook endpoint is hosted in. Otherwise, if the webhook endpoint's system is unstable, it may affect the overall performance of the event processing pipeline. Please note that the maximum allowed connect timeout is 3 seconds. The webhook endpoint must satisfy this requirement. The default value is 1 second. |
readTimeout | integer <int32> (Read Timeout) [ 1 .. 5000 ] Default: 3000 The amount of time in milliseconds the client will wait for the reply from the webhook endpoint. This parameter should have a reasonable value considering the performance of the system, the webhook endpoint is hosted in. Otherwise, if the webhook endpoint's system is unstable, it may affect the overall performance of the event processing pipeline. Please note that the maximum allowed read timeout is 5 seconds. The webhook endpoint must satisfy this requirement. The default value is 3 seconds. |
object (Resilience Settings) The configuration of the webhook client's behavior in case when the webhook endpoint is unstable. Enabled resilience mechanisms may increase the reliability of the entire system. | |
required | object |
{- "brandId": "string",
- "name": "string",
- "uri": "string",
- "method": "POST",
- "headers": { },
- "batchSize": 10,
- "connectTimeout": 1000,
- "readTimeout": 3000,
- "resilience": {
- "retries": {
- "attempts": 3,
- "delay": 1000,
- "cap": 60000,
- "backoffStrategy": "FIXED_DELAY",
- "retryOnConnectTimeout": true,
- "retryOnReadTimeout": true,
- "retryOnStatuses": [
- 400,
- 401,
- 402,
- 403,
- 404,
- 405,
- 406,
- 407,
- 408,
- 409,
- 410,
- 411,
- 412,
- 413,
- 414,
- 415,
- 416,
- 417,
- 418,
- 422,
- 425,
- 426,
- 428,
- 429,
- 431,
- 451,
- 500,
- 501,
- 502,
- 503,
- 504,
- 505,
- 506,
- 507,
- 508,
- 510,
- 511
]
}
}, - "security": {
- "credentials": {
- "id": "string"
}, - "mtls": {
- "protocol": "SSLv2",
- "identityCertificateChain": "string",
- "privateKey": "string",
- "keyPassword": "pa$$word",
- "trustedCertificates": "string"
}
}
}
{- "id": "string",
- "brandId": "string",
- "name": "string",
- "uri": "string",
- "method": "POST",
- "headers": { },
- "batchSize": 10,
- "connectTimeout": 1000,
- "readTimeout": 3000,
- "resilience": {
- "retries": {
- "attempts": 3,
- "delay": 1000,
- "maxDelay": 60000,
- "backoffStrategy": "FIXED_DELAY",
- "retryOnConnectTimeout": true,
- "retryOnReadTimeout": true,
- "retryOnStatuses": [
- 400,
- 401,
- 402,
- 403,
- 404,
- 405,
- 406,
- 407,
- 408,
- 409,
- 410,
- 411,
- 412,
- 413,
- 414,
- 415,
- 416,
- 417,
- 418,
- 422,
- 425,
- 426,
- 428,
- 429,
- 431,
- 451,
- 500,
- 501,
- 502,
- 503,
- 504,
- 505,
- 506,
- 507,
- 508,
- 510,
- 511
]
}
}, - "security": {
- "credentials": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "scheme": "LP_SIGNATURE",
- "settings": {
- "algorithm": "HMAC-SHA1",
- "clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
- "clientSecret": "pa$$word"
}
}
}, - "createdTs": "2019-08-24T14:15:22Z",
- "lastUpdatedTs": "2019-08-24T14:15:22Z"
}
endpoint_id required | string The Webhook Endpoint ID |
Authorization required | string Example: Bearer {{AgentBearerToken}} The Agent Bearer Token. |
Brand-ID required | string (brandId) Example: {{account}} LivePerson account or site ID for this brand |
If-Match required | string Example: {{WebhookEndpointEtag}} Should match the 'Etag' header from the last POST, GET or PUT. |
Request-ID | string Example: {{UUID}} A unique tracking/correlation id (in UUID format) for this request. |