Skip to main content
POST
Assign or unassign an agent on an organization
Adds or removes an agent from the organization’s widgetIDs list. The agent must belong to the same workspace.

Example Request

Use "action": "unassign" to remove the agent.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgId
string
required
Minimum string length: 1
agentId
string
required
Minimum string length: 1

Body

application/json
action
enum<string>
required
Available options:
assign,
unassign

Response

Successful response

success
boolean
required
message
string
required
orgId
string
required
agentId
string
required
widgetIDs
string[]
required