To create 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 |
Sample Request
curl --location 'https://{{host}}/agentassist/api/v1/public/{{streamId}}/agents'\
--header 'accept: application/json' \
--header 'auth: <token>' \
--header 'Content-Type: application/json' \
--header 'accountid: {{accountId}}' \
--data-raw '{
"emailId": "aug08agent2@yopmail.com",
"firstName": "aug08",
"lastName": "agent2",
"nickName": "agent One",
"phoneNumber": "134567890982",
"agentGroupId": "ag-c57b602-151a-41c8-8630-a1eae433xxxx",
"canSupportChat": true,
"maxChatSupport": 5,
"canSupportVoice": true,
"customId" : "A..Zxyz09!'''()*+,-./:;<=>?@[]^_`{|}~",
"roleId": "67654be356840f366e79xxxx",
"chatLanguageSupport": [
{
"language": "en",
"proficiency": "expert",
"isActive": true
}
],
"voiceLanguageSupport": [
{
"language": "en",
"proficiency": "expert",
"isActive": true
}
],
"skills": [],
"desktopLayouts": [],
"queues": [
{
"id": "qu-854eaa2-b0b6-4327-9008-723d7519xxxx",
"isPreferredAgent": false
}
],
"createDefaultLayoutAndAssign": true
}'
Headers
- accountId (required): The account ID associated with the API request.
- auth (required): JWT token for authentication.
Body Parameters
Parameter |
Description |
Type |
emailId |
Email address of the agent. Must be unique. |
String, Required |
firstName |
First name of the agent. |
String, Required |
lastName |
Last name of the agent. |
String, Required |
nickName |
Nickname of the agent. |
String, Optional |
phoneNumber |
Contact number of the agent. |
String, Optional |
agentGroupId |
Unique identifier of the agent group to which the agent belongs. |
String, Optional |
canSupportChat |
Defines if the agent can handle chat interactions. |
Boolean, Optional |
maxChatSupport |
Maximum number of simultaneous chats the agent can support. |
Integer, Optional |
canSupportVoice |
Defines if the agent can handle voice interactions. |
Boolean, Optional |
customId |
Custom identifier for the agent. Supports special characters except space. |
String, Optional |
roleId |
Identifier for the role assigned to the agent. |
String, Required |
chatLanguageSupport |
List of languages and proficiency levels supported for chat. |
Array of Objects, Optional |
chatLanguageSupport.language |
Language code (for example, “en”). |
String, Required |
chatLanguageSupport.proficiency |
Proficiency level in the language (for example, “expert”). |
String, Required |
chatLanguageSupport.isActive |
Indicates if the language is active for the agent. |
Boolean, Optional |
voiceLanguageSupport |
List of languages and proficiency levels supported for voice. |
Array of Objects, Optional |
voiceLanguageSupport.language |
Language code (for example, “en”). |
String, Required |
voiceLanguageSupport.proficiency |
Proficiency level in the language (for example, “expert”). |
String, Required |
voiceLanguageSupport.isActive |
Indicates if the language is active for the agent. |
Boolean, Optional |
skills |
List of skills assigned to the agent. |
Array, Optional |
desktopLayouts |
List of desktop layouts assigned to the agent. |
Array, Optional |
queues |
List of queues assigned to the agent. |
Array of Objects, Optional |
queues.id |
Identifier of the queue. |
String, Required |
queues.isPreferredAgent |
Defines if the agent is the preferred agent for the queue. |
Boolean, Optional |
createDefaultLayoutAndAssign |
Indicates whether to create and assign a default desktop layout. |
Boolean, Optional |
Sample Response
{
"emailId": "aug08agent2@yopmail.com",
"firstName": "aug08",
"lastName": "agent2",
"nickName": "agent One",
"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
}