Cubu Docs
S2S API Guide
S2S API Guide
  • About Cubu Server-to-Server API
  • Accessing the API
  • Agent Impersonation API
    • Call Again
    • Clock-in
    • Clock-out
    • Get Agent Status
    • List Active Cases
    • List Inboxes
    • List Workspaces
    • List Workstations
    • Occupy a Workstation
    • Resolve a Case
    • Select Current Unit
    • Start Processing the Next Case
    • Change Status to Available
    • Change Status to Unavailable
    • Vacate a Workstation
  • Appointments Management API
    • Book Appointment
    • Cancel Appointment
    • List Appointments in Calendar
    • List Calendars of a Service
    • List Vacancies in a Calendar
  • Case Management API
    • Queue Up
  • Customer Management API
    • Create a Customer Record
    • Get Customer Record
    • Update a Customer Record
    • Find a Customer Record
  • Organization API
    • List Back-office tasks
    • List Users
Powered by GitBook
On this page
  • URL
  • Headers
  • Request Body
  • Response
  1. Agent Impersonation API

List Workspaces

Lists the workspaces in the user's current unit.

This endpoint requires the Agent Impersonator role.

URL

GET: https://[base-url]/{applicationId}/agents/{userId}/workspaces

Headers

Authorization: Bearer <accessToken>

Request Body

N/A

Response

Success -> 200

An array of Workspace objects.

Sample response:

[
    {
        "workspaceId": "1b3ab45f-883c-4f56-8a7b-529841965110",
        "workspaceName": "Default",
        "description": null,
        "startNextBehavior": "Auto"
    },
    {
        "workspaceId": "3798fb8f-042d-40cb-91ef-afeef95ba68e",
        "workspaceName": "Sales",
        "description": null,
        "startNextBehavior": "CloseActiveTabs"
    },
    {
        "workspaceId": "899f29fa-a91f-4699-a8ed-5e2dd478da87",
        "workspaceName": "Tech. Support",
        "description": null,
        "startNextBehavior": "AddTab"
    }
]
PreviousList InboxesNextList Workstations

Last updated 8 months ago