Use this API to register client callback Authentication methods using oAuth or Basic Authentication.
Conversation Manager APIs
This section provides the requisite APIs needed to create Conversation Manager accounts and to configure conversation workflows. To create the Conversation Manager acccount, use the Conversation APIs in this order when setting up a complete eGain application:
- Authentication
- Client Application
- Participant
- Channel
- Orchestration
- Account
After the account is created you can use the following APIs to send / receive messages.
- Conversation
- Asset
Note: You can configure your system to use third party Bots and third party Channels. The API instructions provided here assume you are using eGain's application setup.
Request
Use this API to generate a signed URL for uploading an asset. Use contentUrl in response as it is used for uploading content. Make sure you upload files which have the same content type and size that was provided at the the time of signed url generation.
Client application must have 'app.conversation.conversationmgr.interaction.manage' assigned to call this API
recipient client application type
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/assets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.egain.cloud/conversation/conversationmgr/v3/assets \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"channel": {
"type": "sms"
},
"sender": {
"type": "customer"
},
"name": "bird.jpg",
"size": 17245
}'{ "id": "8de578e2-f7b8-462b-94b7-7d3358af9756", "contentUrl": "https://dev-storageservice-ext.ezdev.net/core/assetmgr/v3/assets/upload?signature=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXRob2QiOiJQT1NUIiwiaXNzIj", "contentUrlExpiry": "2022-01-27T20:04:25.498Z" }
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/assets/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.egain.cloud/conversation/conversationmgr/v3/assets/1001 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "id": "7b6c5fff-036e-4a40-b68a-a67c592fc079", "name": "bird.jpeg", "contentType": "image/jpeg", "size": 17245, "contentUrl": "http://storage-ext.egain.cloud/core/assetmgr/v3/chat.attachments/download?signature=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI5OThiNjFjMWRlYmM0OTRiYWVkNjhmNTkxM2U5", "contentUrlExpiry": "2023-01-13T16:45:27.457Z" }
- Production Serverhttps://api.egain.cloud/conversation/conversationmgr/v3/assets/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://api.egain.cloud/conversation/conversationmgr/v3/assets/1001 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'