Set agent ONLINE/OFFLINE

Sets a team member's availability status.

Before you call

  • Agent Availability must be enabled for your organization, otherwise the request fails with 400.
  • phone identifies the team member; + and spaces are stripped, then it must match the phone on their profile.
  • status must be ONLINE, OFFLINE or ON_BREAK.

How it works

  • Fails with 400 if no team member, or more than one, has that phone.
  • The response returns success and the member's previousStatus.
  • When the status changes, an ASSIGNED_AGENT_STATUS_CHANGED webhook is sent for each WhatsApp number where the member has assigned chats.
  • Sending the current status again changes nothing and sends no webhook.

Rate limit

  • 120 requests per minute.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
required

Target availability for the resolved user.

Allowed:
string
required

Agent phone number; matched digit-only against User.phone for a user in UserOrganization for this org.

Responses

400

Invalid status, or Agent Availability not enabled for the org.

401

Unauthorized

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json