Back to API List
To add users to an account.
Prerequisite : Before using this API, go to Automation AI > App Settings > Target Audience and select Enterprise Users . Then publish the app to enable user invitations.
This API requires a JWT generated by an application created only from the Admin Console.
Field Value Method POST Endpoint https://{{host}}/api/public/usersContent Type application/jsonAuthorization auth: {{JWT}} See How to generate the JWT Token .API Scope App Builder: Not Applicable; Admin Console: User Management > User Management
Path Parameters
Parameter Description hostEnvironment URL, for example, https://platform.kore.ai.
Sample Request
curl -X POST \
https: //{{host}}/api/public/users \
-H 'Content-Type: application/json' \
-H 'auth: YOUR_JWT_ACCESS_TOKEN' \
-d '{
"users" : [
{
"userInfo" : {
"emailId" : "john.doe@example.com" ,
"orgUserId" : "org assigned user id" ,
"firstName" : "john" ,
"lastName" : "doe" ,
"companyName" : "company_name" ,
"dept" : "dept"
},
"groups" : [
"e-06b41cdd-7678-5394-b958-40ca5662xxxx"
],
"roles" : [
{
"roleId" : "5d9d8db30d54920a8df1xxxx" ,
"botId" : "st-b8525f88-6dd3-54a7-8a97-734ecb74xxxx"
}
],
"canCreateBot" : true ,
"isDeveloper" : true
}
]
}'
Body Parameters
Parameter Required Description usersArray of user details. userInfo.emailIdRequired Email ID of the user being added. userInfo.orgUserIdOptional Organization-assigned user ID. userInfo.firstNameOptional First name of the user. userInfo.lastNameOptional Last name of the user. userInfo.companyNameOptional Company of the user. userInfo.deptOptional Department of the user. userInfo.companyContactPhoneOptional Company contact phone. userInfo.worknumberOptional Work number. userInfo.streetOptional Street address. userInfo.suiteNoOptional Suite number. userInfo.cityOptional City. userInfo.zipOptional ZIP code. userInfo.stateOptional State. userInfo.countryOptional Country. groupsOptional Array of group IDs to which the user should belong. rolesOptional Array of roleId-botId combinations defining the user’s role on each bot. assignBotTasksOptional Array of agents to assign to the user. canCreateBotOptional Whether the user can create agents. Default: true. isDeveloperOptional Whether the user has App Builder access. Default: true. sendEmailOptional Whether to send an activation email to the user. Default: true.
Sample Response
Success:
{
"msg" : "Users are created Successfully"
}
Failure:
{
"failedUserDetails" : [
{
"userInfo" : {
"emailId" : "deskkore1" ,
"firstName" : "user1" ,
"status" : "failure" ,
"reason" : {
"errors" : [
{
"msg" : "INVALID_EMAIL" ,
"code" : 400
}
]
}
}
}
]
}