logo
WorkspacesList workspaces
Workspaces

List workspaces

Returns active workspaces the authenticated user belongs to.

  • Platform key: returns all workspaces.
  • Workspace key: returns only the workspace the key belongs to.
curl -X GET "https://api.sendkit.ai/v1/workspaces" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": [
    {
      "id": "665a1b2c3d4e5f6a7b8c9d0e",
      "name": "My Sales Team",
      "ownerId": "664f0a1b2c3d4e5f6a7b8c9d",
      "memberCount": 3,
      "usage": {
        "totalCampaigns": 5,
        "totalLeads": 2500,
        "totalMailboxes": 8,
        "totalEmailsSent": 12000
      },
      "createdAt": "2025-06-01T10:30:00.000Z"
    },
    {
      "id": "665b2c3d4e5f6a7b8c9d0e1f",
      "name": "Outbound Agency",
      "ownerId": "664f0a1b2c3d4e5f6a7b8c9d",
      "memberCount": 1,
      "usage": {
        "totalCampaigns": 0,
        "totalLeads": 0,
        "totalMailboxes": 0,
        "totalEmailsSent": 0
      },
      "createdAt": "2025-08-15T14:00:00.000Z"
    }
  ]
}
GET
/v1/workspaces
GET
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
Bearer Token
Bearer Tokenstring
Required

API key as Bearer token

API key as Bearer token
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

header
Authorizationstring
Required

Bearer token. API key as Bearer token

Responses

successboolean
dataarray