Create
/api/v1/queuesCreates an automation queue โ the mechanism that routes incoming conversations to agents.
agentIds and managerIds each need at least one user; use User โ Listing to find IDs. The same person may be both.
Set maximumAssignPerAgent deliberately: omitted, it defaults to 1, so each agent holds a single conversation at a time.
Request
Authorization
Bearer Token
Provide your API token in the Authorization header. See Authentication to issue one.
Example:Authorization: Bearer ********************
namestringrequiredQueue name. Must be unique in your workspace.
agentIdsarray[string]requiredUsers who receive conversations from this queue. At least one.
managerIdsarray[string]requiredUsers who supervise this queue. At least one.
descriptionstring | nulloptionalemojistringoptionalIcon shown beside the queue name. Defaults to ๐ฅ.
distributionStrategystring | nulloptionalHow conversations are handed out:
round-robinin turn,fewest-assignmentsto the least busy agent,random, ornotify-allto alert everyone.Allowed values:"round-robin", "fewest-assignments", "random", "notify-all", null
maximumAssignPerAgentinteger | nulloptionalConcurrent conversations per agent. Defaults to 1 when omitted โ set it explicitly for anything busier.
useGlobalAgentCapacitybooleanoptionalUse each agent's own capacity instead of the queue limit.
offlineAssignmentbooleanoptionalAssign conversations to agents who are offline.
autoAssignboolean | nulloptionalHand out conversations automatically. When false, a supervisor assigns them manually.
Responses
201Created
Created
requestIdstringrequiredUnique ID for this request. Quote it when reporting a problem.
dataobjectrequiredChild attributes
idstringrequirednamestringrequireddescriptionstring | nullrequiredemojistringrequireddistributionStrategystring | nullrequiredAllowed values:"round-robin", "fewest-assignments", "random", "notify-all", null
maximumAssignPerAgentinteger | nullrequireduseGlobalAgentCapacitybooleanrequiredofflineAssignmentbooleanrequiredautoAssignboolean | nullrequiredmembersarray[object]requiredChild attributes
userIdstringrequirednamestringrequiredemailstringrequiredmembershipRolestringrequiredagentreceives conversations from the queue;managersupervises it.Allowed values:"agent", "manager"
createdAtstringrequiredupdatedAtstringrequired
401Unauthorized
Unauthorized
messagestringrequired
409Conflict
Conflict
messagestringrequired
422Unprocessable Entity
Unprocessable Entity
messagestringrequired
429Too Many Requests
Too Many Requests
messagestringrequired