Create
/api/v1/usersCreates a user (agent) in your workspace. The account is usable immediately — the person does not need to be invited or to log in first, which is the point of this endpoint.
roleIds must contain at least one role ID from Role → Listing. An unrecognised ID is rejected with 422, so fetch the list once and cache it.
The account becomes loginable a moment after this call returns. The response is 201 as soon as the user is stored, while the sign-in directory is updated asynchronously. In practice this is a second or two. If a caller reports that a brand-new account cannot sign in, re-read it with Detail and retry the login rather than creating the user again.
An email address must be unique across all of klink.cloud, not just your workspace. Reusing one returns 422.
Request
Authorization
Bearer Token
Provide your API token in the Authorization header. See Authentication to issue one.
Example:Authorization: Bearer ********************
namestringrequiredDisplay name. Cannot contain
@.emailstringrequiredSign-in address. Must be globally unique.
passwordstringrequiredInitial sign-in password. Sent to you only in this request; never returned by any endpoint.
roleIdsarray[string]requiredOne or more role IDs from Role → Listing.
phonestring | nulloptionaladdressstring | nulloptionalglobalAgentCapacityinteger | nulloptionalOptional cap on concurrent conversations.
Responses
201Created
Created
requestIdstringrequiredUnique ID for this request. Quote it when reporting a problem.
dataobjectrequiredChild attributes
idstringrequirednamestringrequiredemailstringrequiredphonestring | nullrequiredaddressstring | nullrequiredglobalAgentCapacityinteger | nullrequiredMaximum concurrent conversations for this agent, or null to fall back to the queue setting.
rolesarray[object]requiredChild attributes
idstringrequiredRole ID. Use this in
roleIdswhen creating or updating a user.systemNamestringrequireddisplayNamestringrequireddescriptionstring | nullrequired
createdAtstringrequiredupdatedAtstringrequired
401Unauthorized
Unauthorized
messagestringrequired
422Unprocessable Entity
Unprocessable Entity
messagestringrequired
429Too Many Requests
Too Many Requests
messagestringrequired
503Service Unavailable
Service Unavailable
messagestringrequired