Mail API reference

Mail API · Labels

get/v1/workspaces/{workspace_id}/labelsAuth

List labels

Every label of the workspace, by name, with how many threads carry each.

Path parameters

workspace_id*string · uuid

Id of the workspace.

Response · 200

data*array

Every label of the workspace, by name (at most 200, so one page).

pagination*object

Always `{ next_cursor: null, has_more: false }`: the list is never paged.

Example

Request

GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/labels
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "Needs reply",
      "color": "#e5484d",
      "thread_count": 4,
      "created_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "pagination": {}
}