Agent Management
Limits the number of results to return
10
Pagination token that keeps of track of the current position in the list
Order in which to retrieve the results
false
Sort by field specified
Filter by agent name
Filter by agent email
Filter by agent role ids
To filter agents by their last status change since.
To filter agents by their last status change activity time.
To find specific agents by their ids. If this is specified, other parameters are ignored.
OK
Workspace not found
GET /workspaces/{workspaceId}/agents HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"results": [
{
"id": "text",
"status": "active",
"statusBeforeOffline": "active",
"name": "text",
"overrideName": true,
"workspaceId": "text",
"type": "user",
"userEmails": [
"text"
],
"bio": "text",
"avatarUrl": "text",
"dropVms": [
null
],
"tagCount": 1,
"wrapUpTime": 1,
"lastAssignedAt": "2025-10-14T22:17:27.615Z",
"lastSetToAwayAt": "2025-10-14T22:17:27.615Z",
"teams": [
{
"id": "text",
"name": "text",
"memberSince": "2025-10-14T22:17:27.615Z",
"activeMemberCount": 1,
"pendingMemberCount": 1
}
],
"workload": {
"id": "text",
"workload": {
"messaging": 1,
"email": 1
},
"rule": {
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
},
"ruleId": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"createdAt": "2025-10-14T22:17:27.615Z",
"updatedAt": "2025-10-14T22:17:27.615Z",
"availability": {
"status": "active",
"activity": "available",
"activityTtl": 1,
"activityText": "text",
"lastStatusSet": "text",
"lastActivitySet": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"timezone": "text",
"defaultCountryCode": "text",
"defaultCallerId": "text",
"forwardNumber": {
"enabled": true,
"number": "text",
"maskCaller": true
},
"transcriptionLocale": "ar-AE",
"roles": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "organization",
"workspaces": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"avatarUrl": "text",
"defaultEmail": "text",
"phoneNumber": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"weeklySchedule": {
"monday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"tuesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"wednesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"thursday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"friday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"saturday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"sunday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
}
},
"holidays": [
{
"name": "text",
"day": 1,
"month": 1
}
],
"assignedSkills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"valueType": "single",
"selectedValues": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text",
"icon": "text"
}
]
}
],
"defaultSenderId": "123e4567-e89b-12d3-a456-426614174000",
"outOfOfficeResponse": "text"
}
],
"nextPageToken": "text",
"total": 1
}
Create a new agent with specified details like name, role, and basic bio.
Created
Workspace not found
Agent already exists
Invalid agent
POST /workspaces/{workspaceId}/agents HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 730
{
"name": "text",
"bio": "text",
"type": "user",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"teamIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"timezone": "text",
"defaultCountryCode": "text",
"weeklySchedule": {
"monday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"tuesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"wednesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"thursday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"friday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"saturday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"sunday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
}
},
"holidays": [
{
"name": "text",
"day": 1,
"month": 1
}
]
}
{
"id": "text",
"status": "active",
"statusBeforeOffline": "active",
"name": "text",
"overrideName": true,
"workspaceId": "text",
"type": "user",
"userEmails": [
"text"
],
"bio": "text",
"avatarUrl": "text",
"dropVms": [
null
],
"tagCount": 1,
"wrapUpTime": 1,
"lastAssignedAt": "2025-10-14T22:17:27.615Z",
"lastSetToAwayAt": "2025-10-14T22:17:27.615Z",
"teams": [
{
"id": "text",
"name": "text",
"memberSince": "2025-10-14T22:17:27.615Z",
"activeMemberCount": 1,
"pendingMemberCount": 1
}
],
"workload": {
"id": "text",
"workload": {
"messaging": 1,
"email": 1
},
"rule": {
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
},
"ruleId": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"createdAt": "2025-10-14T22:17:27.615Z",
"updatedAt": "2025-10-14T22:17:27.615Z",
"availability": {
"status": "active",
"activity": "available",
"activityTtl": 1,
"activityText": "text",
"lastStatusSet": "text",
"lastActivitySet": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"timezone": "text",
"defaultCountryCode": "text",
"defaultCallerId": "text",
"forwardNumber": {
"enabled": true,
"number": "text",
"maskCaller": true
},
"transcriptionLocale": "ar-AE",
"roles": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "organization",
"workspaces": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"avatarUrl": "text",
"defaultEmail": "text",
"phoneNumber": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"weeklySchedule": {
"monday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"tuesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"wednesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"thursday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"friday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"saturday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"sunday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
}
},
"holidays": [
{
"name": "text",
"day": 1,
"month": 1
}
],
"assignedSkills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"valueType": "single",
"selectedValues": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text",
"icon": "text"
}
]
}
],
"defaultSenderId": "123e4567-e89b-12d3-a456-426614174000",
"outOfOfficeResponse": "text"
}
Lists all agents for a workspace returning only minimal fields for each agent.
OK
GET /workspaces/{workspaceId}/all-agents HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"results": [
{
"id": "text",
"status": "active",
"activity": "available",
"name": "text",
"avatarUrl": "text",
"createdAt": "2025-10-14T22:17:27.615Z"
}
]
}
Retrieve information about a specific agent, including their name, bio, status.
OK
Agent or workspace not found
GET /workspaces/{workspaceId}/agents/{agentId} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"status": "active",
"statusBeforeOffline": "active",
"name": "text",
"overrideName": true,
"workspaceId": "text",
"type": "user",
"userEmails": [
"text"
],
"bio": "text",
"avatarUrl": "text",
"dropVms": [
null
],
"tagCount": 1,
"wrapUpTime": 1,
"lastAssignedAt": "2025-10-14T22:17:27.615Z",
"lastSetToAwayAt": "2025-10-14T22:17:27.615Z",
"teams": [
{
"id": "text",
"name": "text",
"memberSince": "2025-10-14T22:17:27.615Z",
"activeMemberCount": 1,
"pendingMemberCount": 1
}
],
"workload": {
"id": "text",
"workload": {
"messaging": 1,
"email": 1
},
"rule": {
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
},
"ruleId": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"createdAt": "2025-10-14T22:17:27.615Z",
"updatedAt": "2025-10-14T22:17:27.615Z",
"availability": {
"status": "active",
"activity": "available",
"activityTtl": 1,
"activityText": "text",
"lastStatusSet": "text",
"lastActivitySet": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"timezone": "text",
"defaultCountryCode": "text",
"defaultCallerId": "text",
"forwardNumber": {
"enabled": true,
"number": "text",
"maskCaller": true
},
"transcriptionLocale": "ar-AE",
"roles": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "organization",
"workspaces": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"avatarUrl": "text",
"defaultEmail": "text",
"phoneNumber": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"weeklySchedule": {
"monday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"tuesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"wednesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"thursday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"friday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"saturday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"sunday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
}
},
"holidays": [
{
"name": "text",
"day": 1,
"month": 1
}
],
"assignedSkills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"valueType": "single",
"selectedValues": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text",
"icon": "text"
}
]
}
],
"defaultSenderId": "123e4567-e89b-12d3-a456-426614174000",
"outOfOfficeResponse": "text"
}
Retrieve the url and form data to post profile avatar directly.
OK
GET /workspaces/{workspaceId}/agents/{agentId}/presigned-upload HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"mediaUrl": "text",
"fileId": "123e4567-e89b-12d3-a456-426614174000",
"url": "text",
"formData": {
"policy": "eyAiZXhwaXJhdGlvbiI6ICIyMDE1LTEyLTMwVDEyOjAwOjAwLjAwMFoiLA0KICAiY29uZGl0aW9ucyI6IFsNCiAgICB7ImJ1Y2tldCI6ICJzaWd2NGV4YW",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-credential": "AKIAIOSFODNN7EXAMPLE/20151229/us-east-1/s3/aws4_request",
"x-amz-date": "20151229T000000Z",
"x-amz-signature": "8afdbf4008c03f22c2cd3cdb72e4afbb1f6a588f3255ac628749a66d7f09699e"
},
"expectedFields": [
"text"
]
}
Retrieve the url and form data to post audio files directly.
OK
POST /workspaces/{workspaceId}/agents/{agentId}/presigned-upload/audio HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"mediaUrl": "text",
"fileId": "123e4567-e89b-12d3-a456-426614174000",
"url": "text",
"formData": {
"policy": "eyAiZXhwaXJhdGlvbiI6ICIyMDE1LTEyLTMwVDEyOjAwOjAwLjAwMFoiLA0KICAiY29uZGl0aW9ucyI6IFsNCiAgICB7ImJ1Y2tldCI6ICJzaWd2NGV4YW",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-credential": "AKIAIOSFODNN7EXAMPLE/20151229/us-east-1/s3/aws4_request",
"x-amz-date": "20151229T000000Z",
"x-amz-signature": "8afdbf4008c03f22c2cd3cdb72e4afbb1f6a588f3255ac628749a66d7f09699e"
},
"expectedFields": [
"text"
]
}
Get media download from an agent
Return file location
Redirect to file location
Bad request
The resource is not found
GET /workspaces/{workspaceId}/agents/{agentId}/media/{fileId}/download HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Modify the details of a specific agent, such as their name, bio, status.
The default Sender Profile to select for this agent when composing a new message.
Updated
Agent or workspace not found
Invalid agent
PATCH /workspaces/{workspaceId}/agents/{agentId} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1088
{
"name": "text",
"bio": "text",
"status": "active",
"avatarUrl": "text",
"dropVms": [
null
],
"wrapUpTime": 1,
"timezone": "text",
"defaultCountryCode": "text",
"defaultCallerId": "text",
"forwardNumber": {
"enabled": true,
"number": "text",
"maskCaller": true
},
"transcriptionLocale": "ar-AE",
"weeklySchedule": {
"monday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"tuesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"wednesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"thursday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"friday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"saturday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"sunday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
}
},
"holidays": [
{
"name": "text",
"day": 1,
"month": 1
}
],
"assignedSkills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"valueType": "single",
"selectedValues": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text",
"icon": "text"
}
]
}
],
"defaultSenderId": "123e4567-e89b-12d3-a456-426614174000",
"outOfOfficeResponse": "text"
}
{
"id": "text",
"status": "active",
"statusBeforeOffline": "active",
"name": "text",
"overrideName": true,
"workspaceId": "text",
"type": "user",
"userEmails": [
"text"
],
"bio": "text",
"avatarUrl": "text",
"dropVms": [
null
],
"tagCount": 1,
"wrapUpTime": 1,
"lastAssignedAt": "2025-10-14T22:17:27.615Z",
"lastSetToAwayAt": "2025-10-14T22:17:27.615Z",
"teams": [
{
"id": "text",
"name": "text",
"memberSince": "2025-10-14T22:17:27.615Z",
"activeMemberCount": 1,
"pendingMemberCount": 1
}
],
"workload": {
"id": "text",
"workload": {
"messaging": 1,
"email": 1
},
"rule": {
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
},
"ruleId": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"createdAt": "2025-10-14T22:17:27.615Z",
"updatedAt": "2025-10-14T22:17:27.615Z",
"availability": {
"status": "active",
"activity": "available",
"activityTtl": 1,
"activityText": "text",
"lastStatusSet": "text",
"lastActivitySet": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"timezone": "text",
"defaultCountryCode": "text",
"defaultCallerId": "text",
"forwardNumber": {
"enabled": true,
"number": "text",
"maskCaller": true
},
"transcriptionLocale": "ar-AE",
"roles": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "organization",
"workspaces": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"avatarUrl": "text",
"defaultEmail": "text",
"phoneNumber": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"weeklySchedule": {
"monday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"tuesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"wednesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"thursday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"friday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"saturday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"sunday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
}
},
"holidays": [
{
"name": "text",
"day": 1,
"month": 1
}
],
"assignedSkills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"valueType": "single",
"selectedValues": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text",
"icon": "text"
}
]
}
],
"defaultSenderId": "123e4567-e89b-12d3-a456-426614174000",
"outOfOfficeResponse": "text"
}
Remove a specific agent from the system, permanently deleting their profile and associated data.
Deleted
No content
Agent or workspace not found
DELETE /workspaces/{workspaceId}/agents/{agentId} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Retrieve information about a specific agent, including their name, bio, status.
OK
Agent or workspace not found
GET /workspaces/{workspaceId}/agents/me HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"status": "active",
"statusBeforeOffline": "active",
"name": "text",
"overrideName": true,
"workspaceId": "text",
"type": "user",
"userEmails": [
"text"
],
"bio": "text",
"avatarUrl": "text",
"dropVms": [
null
],
"tagCount": 1,
"wrapUpTime": 1,
"lastAssignedAt": "2025-10-14T22:17:27.615Z",
"lastSetToAwayAt": "2025-10-14T22:17:27.615Z",
"teams": [
{
"id": "text",
"name": "text",
"memberSince": "2025-10-14T22:17:27.615Z",
"activeMemberCount": 1,
"pendingMemberCount": 1
}
],
"workload": {
"id": "text",
"workload": {
"messaging": 1,
"email": 1
},
"rule": {
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
},
"ruleId": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"createdAt": "2025-10-14T22:17:27.615Z",
"updatedAt": "2025-10-14T22:17:27.615Z",
"availability": {
"status": "active",
"activity": "available",
"activityTtl": 1,
"activityText": "text",
"lastStatusSet": "text",
"lastActivitySet": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"timezone": "text",
"defaultCountryCode": "text",
"defaultCallerId": "text",
"forwardNumber": {
"enabled": true,
"number": "text",
"maskCaller": true
},
"transcriptionLocale": "ar-AE",
"roles": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "organization",
"workspaces": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"avatarUrl": "text",
"defaultEmail": "text",
"phoneNumber": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"weeklySchedule": {
"monday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"tuesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"wednesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"thursday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"friday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"saturday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"sunday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
}
},
"holidays": [
{
"name": "text",
"day": 1,
"month": 1
}
],
"assignedSkills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"valueType": "single",
"selectedValues": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text",
"icon": "text"
}
]
}
],
"defaultSenderId": "123e4567-e89b-12d3-a456-426614174000",
"outOfOfficeResponse": "text"
}
Modify the details of a specific agent, such as their name, bio, status.
The default Sender Profile to select for this agent when composing a new message.
Updated
Agent or workspace not found
Invalid agent
PATCH /workspaces/{workspaceId}/agents/me HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1088
{
"name": "text",
"bio": "text",
"status": "active",
"avatarUrl": "text",
"dropVms": [
null
],
"wrapUpTime": 1,
"timezone": "text",
"defaultCountryCode": "text",
"defaultCallerId": "text",
"forwardNumber": {
"enabled": true,
"number": "text",
"maskCaller": true
},
"transcriptionLocale": "ar-AE",
"weeklySchedule": {
"monday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"tuesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"wednesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"thursday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"friday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"saturday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"sunday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
}
},
"holidays": [
{
"name": "text",
"day": 1,
"month": 1
}
],
"assignedSkills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"valueType": "single",
"selectedValues": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text",
"icon": "text"
}
]
}
],
"defaultSenderId": "123e4567-e89b-12d3-a456-426614174000",
"outOfOfficeResponse": "text"
}
{
"id": "text",
"status": "active",
"statusBeforeOffline": "active",
"name": "text",
"overrideName": true,
"workspaceId": "text",
"type": "user",
"userEmails": [
"text"
],
"bio": "text",
"avatarUrl": "text",
"dropVms": [
null
],
"tagCount": 1,
"wrapUpTime": 1,
"lastAssignedAt": "2025-10-14T22:17:27.615Z",
"lastSetToAwayAt": "2025-10-14T22:17:27.615Z",
"teams": [
{
"id": "text",
"name": "text",
"memberSince": "2025-10-14T22:17:27.615Z",
"activeMemberCount": 1,
"pendingMemberCount": 1
}
],
"workload": {
"id": "text",
"workload": {
"messaging": 1,
"email": 1
},
"rule": {
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
},
"ruleId": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"createdAt": "2025-10-14T22:17:27.615Z",
"updatedAt": "2025-10-14T22:17:27.615Z",
"availability": {
"status": "active",
"activity": "available",
"activityTtl": 1,
"activityText": "text",
"lastStatusSet": "text",
"lastActivitySet": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
},
"timezone": "text",
"defaultCountryCode": "text",
"defaultCallerId": "text",
"forwardNumber": {
"enabled": true,
"number": "text",
"maskCaller": true
},
"transcriptionLocale": "ar-AE",
"roles": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "organization",
"workspaces": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"avatarUrl": "text",
"defaultEmail": "text",
"phoneNumber": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"weeklySchedule": {
"monday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"tuesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"wednesday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"thursday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"friday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"saturday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
},
"sunday": {
"from": {
"hour": 1,
"minute": 1
},
"to": {
"hour": 1,
"minute": 1
}
}
},
"holidays": [
{
"name": "text",
"day": 1,
"month": 1
}
],
"assignedSkills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"valueType": "single",
"selectedValues": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text",
"icon": "text"
}
]
}
],
"defaultSenderId": "123e4567-e89b-12d3-a456-426614174000",
"outOfOfficeResponse": "text"
}
Retrieve information about availability of a specific agent.
OK
Agent or workspace not found
GET /workspaces/{workspaceId}/agents/{agentId}/availability HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "active",
"activity": "available",
"activityTtl": 1,
"activityText": "text",
"lastStatusSet": "text",
"lastActivitySet": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
}
Modify the availability of a specific agent.
Updated
Agent or workspace not found
Invalid agent
PATCH /workspaces/{workspaceId}/agents/{agentId}/availability HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"status": "active",
"activity": "available",
"activityTtl": 1,
"activityText": "text"
}
{
"status": "active",
"activity": "available",
"activityTtl": 1,
"activityText": "text",
"lastStatusSet": "text",
"lastActivitySet": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
}
Retrieve information about workload of a specific agent.
OK
Agent or workspace not found
GET /workspaces/{workspaceId}/agents/{agentId}/workload HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"workload": {
"messaging": 1,
"email": 1
},
"rule": {
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
},
"ruleId": "text",
"updatedAt": "2025-10-14T22:17:27.615Z"
}
Last updated
Was this helpful?