Workspaces
Workspaces are separate areas of your organization. Each has its own campaigns, accounts and contacts.
Endpoints
#The Workspace object
Workspace: a separate area of the organization with its own campaigns.
Attributes
objectstringObject type, alwaysworkspace.idstring (uuid)Workspace ID.namestringWorkspace name.created_atstring (date-time) or nullWhen the workspace was created. Can benullfor 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.
Parameters
- Number of objects to return per page. From 1 to 100. Defaults to
50. - The
next_cursorvalue 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"const res = await fetch('https://api.melioralab.io/v1/workspaces', {
headers: { Authorization: `Bearer ${process.env.MELIORA_API_KEY}` },
});
if (!res.ok) throw new Error(`Meliora API: ${res.status}`);
const body = await res.json();import os
import requests
resp = requests.get(
"https://api.melioralab.io/v1/workspaces",
headers={"Authorization": f"Bearer {os.environ['MELIORA_API_KEY']}"},
timeout=15,
)
resp.raise_for_status()
body = resp.json()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
}