API RU
Early access. API keys are issued on request. How to get a key

Workspaces are separate areas of your organization. Each has its own campaigns, accounts and contacts.

#The Workspace object

Workspace: a separate area of the organization with its own campaigns.

Attributes

  • objectstring
    Object type, always workspace.
  • idstring (uuid)
    Workspace ID.
  • namestring
    Workspace name.
  • created_atstring (date-time) or null
    When the workspace was created. Can be null for older workspaces.
Workspace
{
  "object": "workspace",
  "id": "3f6a9d21-8b4c-4e7f-a102-5c9e8d7b6a43",
  "name": "Main workspace",
  "created_at": "2026-09-01T12:00:00.000Z"
}

#List workspaces

GET/v1/workspaces

Workspaces in the key's scope, oldest first. Available to a key with any set of permissions.

Permission
any read permission
Request weight
1

Parameters

  • limitinteger, queryoptional
    Number of objects to return per page. From 1 to 100. Defaults to 50.
  • cursorstring, queryoptional
    The next_cursor value from the previous response. Other filters must match the first request.

Response

A list: object, data (an array of Workspace objects), has_more, next_cursor. See Pagination.

Endpoint-specific errors

  • cursor_mismatch: The cursor is corrupted, was issued for a different route or filters, or the key's permissions and scope have changed.
  • scope_required: The key does not have permission for this read. Texts also require "Message text" to be enabled.
  • not_found: The object was not found or is outside the key's scope. An unknown path also returns 404.
  • cursor_expired: The cursor expired: 15 minutes for lists, 30 days for the event feed.

Common errors are described in Errors.

Request
curl https://api.melioralab.io/v1/workspaces \
  -H "Authorization: Bearer $MELIORA_API_KEY"
Response
{
  "object": "list",
  "data": [
    {
      "object": "workspace",
      "id": "3f6a9d21-8b4c-4e7f-a102-5c9e8d7b6a43",
      "name": "Main workspace",
      "created_at": "2026-09-01T12:00:00.000Z"
    },
    {
      "object": "workspace",
      "id": "7a2c5e81-3d9f-4b6a-8c40-1e5f7a9b2d68",
      "name": "Test outreach",
      "created_at": "2026-10-02T09:30:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}