Agents can support your customers by handling inquiries and conversations on Sendbird Desk. Using the Agent API, you can manage various attributes of each agent.
Note: Inviting and adding a new agent is only available on the Sendbird Dashboard. To invite a new member, go to Organization settings > Members and send an invitation with the Desk Agent or Desk Admin role. After sending the invitation, all invited agents can be managed on Agents.
Indicates whether the agent is admin or not. Valid values are ADMIN and AGENT.
createdAt
string
The date and time when the agent was created, in ISO 8601 format.
status
string
Indicates whether the agents' account is activated. Valid values are ACTIVE, INACTIVE, PAUSED. PAUSED is only applicable to virtual agents, also known as bots.
connection
string
The connection status of the agent. Valid values are ONLINE, OFFLINE, and AWAY.
email
string
The email address of the agent.
photoThumbnailUrl
string
The profile image URL of the agent.
connectionUpdatedAt
string
The date and time of the agent's latest connection status update, in ISO 8601 format.
tier
string
The level of the agent. Valid values are INTERMEDIATE and EXPERT. (Default: INTERMEDIATE)
API endpoints are relative to the base URL allocated to your application. In this page, the /agents endpoint refers to https://desk-api-{application_id}.sendbird.com/platform/v1/agents.
Note: If you want to know your application ID, sign in to your dashboard, go to the Settings > Application > General, and then check the Application ID.
It's recommended that the parameter values in API URLs be urlencoded, such as {agent_id}.
The following table lists the properties of an HTTP request that this action supports.
Properties
Required
Type
Description
status
string
Specifies the agent's status to update to. Acceptable values are the following: - ACTIVE: the agent is active. - INACTIVE: the agent is inactive. - PAUSED: the agent's activity is paused temporarily.
The following table lists the properties of an HTTP request that this action supports.
Properties
Required
Type
Description
connection
string
Specifies the connection status of an agent. Acceptable values are the following: - ONLINE: the agent is online. - OFFLINE: the agent is offline. - AWAY: the agent is away during the working hours.
Optional
Type
Description
groupKeyForTransfer
string
Specifies the unique key of a group to transfer an agent's active and idle tickets when their status changes to OFFLINE or AWAY. If not specified, tickets are transferred to the Default team.
Cancels assignment of tickets from a specific agent. When the tickets are unassigned from the agent, their status changes to Pending. Then, they are assigned to another available agent within the current or specified team based on the auto ticket routing function.
Note: When a ticket is unassigned from a bot, the handover message is automatically sent to a customer. You can customize your handover message using the Bot API or in Settings > Bots on your dashboard.
The following table lists the properties of an HTTP request that this action supports.
Optional
Property name
Type
Description
groupKey
string
Specifies the unique key of a group to transfer both active and idle tickets that are unassigned from the agent. The value of DEFAULT is given for tickets transferred to the Default team because only the Default team doesn't have a team key. If this property isn't specified, tickets remain in their current teams and only the assignment of the agent's active tickets is canceled.
{
"groupKey": "tw-team" // To transfer tickets to the Default team, use DEFAULT.
}