To add an agent with the given Stream Id.
Method | POST |
Endpoint | https://{{host}}/agentassist/api/v1/public/{{streamId}}/agents |
Content Type | application/json |
Authorization | auth: {{JWT}} See How to generate the JWT Token. |
API Scope | SmartAssist Analytics |
Path Parameters
Parameter | Description | Type |
---|---|---|
host | Environment URL, for example, https://smartassist.kore.ai | String, Required |
BotId | BotId or StreamId. You can access it from the General Settings page of the bot. | String, Required |
customId | The customID of the agent, without any special characters or spaces, and up to 15 characters long. | String, Optional |
Sample Request
curl --location --request POST \ 'https://smartassist.kore.ai/agentassist/api/v1/public/{{streamId}}/agents' --header 'auth: {jwt-code}' \ --header 'Content-Type: application/json' \ --header 'accountId: 63c0e7de93e4c7694808xxxx' --data-raw '{ "status": "ACTIVE", "callRegion": "JP", "agentAffinity": false, "canSupportChat": true, "attachmentsEnabled": true, "emojisEnabled": true, "roleId": "6344eb107b65bd738aa6xxxx", "chatLanguageSupport": [ { "isActive": true, "language": "en", "proficiency": "expert" } ], "canSupportVoice": true, "voiceLanguageSupport": [ { "isActive": true, "language": "en", "proficiency": "expert" } ], "desktopLayouts": [ { "isDefault": true, "name": "Default Layout", "id": "ly-59736ed-eaac-40d6-8c5b-db294b10xxxx" }, { "isDefault": false, "name": "test1", "id": "ly-2a591ae-5021-4e25-a9be-9997e585xxxx" } ], "userId": "u-cc128d1c-a846-5acb-b075-9fc49a73xxxx", "accountId": "633ffa91d784f471d0b8xxxx", "createdBy": "u-ca2cc57f-5c2b-5437-bb07-fe9020d8xxxx", "orgId": "o-f7507858-f354-504a-b56b-39464fb0xxxx", "agentGroups": [ { "groupId": "ag-bdc4010-e237-48e6-bb72-d3449a03xxxx", "role": "agent" } ], "lastOnlineAt": "2022-10-11T04:06:41.286Z", "createdAt": "2022-10-07T10:10:39.231Z", "updatedAt": "2022-10-12T10:48:53.418Z", "onlineStatus": "Available", "onlineStatusType": "AVAILABLE", "id": "a-1a36a7e-bb33-4bcc-ab7b-ac337738xxxx", "emailId": "test.agent01.oct07@kore.com", "firstName": "test", "lastName": "agent 01", "nickName": "test agent 01", "phoneNumber": "91234567890", "profImage": "no-avatar", "sipURI": "sip:supportdevelopment227@52.4.142.107:5060", "skills": [ { "skillId": "633ffac608f3a0745993xxxx", "proficiencyLevel": "expert", "userId": "u-cc128d1c-a846-5acb-b075-9fc49a73xxxx", "createdBy": "u-ca2cc57f-5c2b-5437-bb07-fe9020d8xxxx", "accountId": "633ffa91d784f471d0b8xxxx", "orgId": "o-f7507858-f354-504a-b56b-39464fb0xxxx", "createdAt": "2022-10-12T10:48:53.468Z", "updatedAt": "2022-10-12T10:48:53.468Z", "id": "63469b95b63e3c0ed3e3xxxx", "name": "Default Skill", "skillGroupName": "Default SkillGroup", "skillGroupColor": "#D2000D" } ], "queues": [ { "id": "qu-353c014-96bb-4c3e-aebd-87a37927xxxx", "name": "Default Queue", "description": "queue description", "isPreferredAgent": true } ], "maxDigitalChatSupport": 5, "maxEmailChatSupport": 2, "maxMessagingChatSupport": 3 }
Headers
- accountId (required): The account ID associated with the API request.
- auth (required): JWT token for authentication.
Body Parameters
Parameter | Description | Type |
---|---|---|
emaiId | The Email Id of the agent. Example: adfa@adfa.com |
Email, Required |
firstName | The First Name of the agent up to 50 characters long. | String, Required |
lastName | The Last Name of the agent up to 50 characters long. | String, Required |
nickName | The Nick Name of the agent up to 50 characters long. | String, Optional |
phoneNumber | The Phone number of the agent. | String, Required |
profImage | The file Id of the profile image to be set. | String, Optional |
agentGroupId | The Id of the agent group which you can find with GET /agent-groups Example: ag-3234fsdf21312412123 |
String, Required |
canSupportChat | It tells whether the agent supports chat. | Boolean, Optional |
canSupportVoice | It tells whether the agent can support the voice chat. | Boolean, Optional |
voiceLanguageSupport | An array of Objects with the following details | Required |
language | The Language supported. Example: en/es |
String, Required |
proficiency | The Proficiency level which can be: expert, novice, average, good. Example : ‘expert’ |
String, Required |
isActive | It tells whether this support is active. | Boolean, Optional |
chatLanguageSupport | Array of Objects with the following details | Required |
language | The Language supported. Example: en/es |
String, Required |
proficiency | The Proficiency level can be: expert, novice, average, good. Example: ‘expert’ |
String, Required |
isActive | It tells whether this support is active. | Boolean, Optional |
skills | Array of Objects which you can find with GET /skills . It contains the following details |
Required |
skillId | The Skill Id. Example: s-21223123 |
String, Required |
proficiencyLevel | The Proficiency level can be: expert, novice, average, good. Example: ‘expert’ |
String, Required |
roleId | The Role id which you can find with GET /roles. Example:633edb2bfa0ecc1192c62190 |
String, Optional |
desktopLayouts | Array of Objects which can find with GET /layouts. It contains the following details | Optional |
id | The desktop Layout Id. Example: ly-de35d82-7323-4420-b893-c35b5175c6c6 |
String, Optional |
isPreferredAgent | It tells whether this is a preferred agent. | Boolean, Optional |
createDefaultLayoutAndAssign | It tells whether to create and assign the default layout. | Boolean, Optional |
Sample Response
{ "emailId": "amanda.jones@abc.com", "firstName": "Amanda", "lastName": "Jones", "nickName": "Amanda", "phoneNumber": 13456782345, "profImage": "5ff233123124xxxx", "agentGroupId": "ag-3234fsdf2131241xxxx", "canSupportChat": true, "maxChatSupport": 5, "canSupportVoice": true, "attachmentsEnabled": true, "emojisEnabled": true, "roleId": "6ff233123124xxxx", "chatLanguageSupport": [ { "language": "en", "proficiency": "expert", "isActive": true } ], "voiceLanguageSupport": [ { "language": "es", "proficiency": "expert", "isActive": true } ], "skills": [ { "skillId": "s-2122xxxx", "proficiencyLevel": "expert", "userId": "u-f9e37b9c-66d5-5525-9df1-da0edbeaxxxx", "createdBy": "u-f9e37b9c-66d5-5525-9df1-da0edbeaxxxx", "orgId": "o-cff7fba7-ebf6-5b01-81a3-42bd24faxxxx", "accountId": "62cd37c6f35860734283xxxx", "id": "62cd41c87e03db706718xxxx", "name": "Default Skill", "skillGroupName": "Default SkillGroup", "skillGroupColor": "#D2000D" } ], "desktopLayouts": [ { "id": "ly-de35d82-7323-4420-b893-c35b5175xxxx", "isDefault": true } ], "queues": [ { "id": "qu-80ac056-57db-420b-b937-9581dd20xxxx", "isPreferredAgent": true } ], "createDefaultLayoutAndAssign": true, "orgId": "o-89381108-2ea3-53a2-a422-b8992bbaxxxx", "userId": "u-021655cc-4cd6-524b-b42a-1bed8b5cxxxx", "callRegion": "JP", "maxDigitalChatSupport": 5, "maxEmailChatSupport": 5, "maxMessagingChatSupport": 5 }