> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Client Workspaces

> Every client workspace with its credit rule, usage and LinkedIn seats, plus your credit pool and plan seats.

Requires `client_workspaces:read`. Requires the master of an active personal (agency) workspace. A key created in a client workspace, or by a non-master, cannot use the client workspace endpoints. If the personal workspace becomes inactive, its keys lose client workspace access.

The response has three parts:

* `pool`: the credits left in your shared pool. Every client workspace spends from it.
* `seats`, `capsSum` and `overcommitted`: your plan's LinkedIn seats, the sum of the workspaces' seat caps, and whether those caps add up to more than your plan has.
* `workspaces`: each client workspace with `creditMode`, `limit`, `used`, `remaining`, `exhaustedAt`, `seatCap` and `seatsUsed`.

## Credit rules

| `creditMode` | Behavior |
| - | - |
| `NONE` | No limit. The workspace draws on your pool freely. `limit` and `remaining` are `null`. This is the default. |
| `MONTHLY` | An allowance that resets with your plan's billing cycle. |
| `FIXED` | A budget that only grows through [top-ups](https://docs.sendler.ai/api-reference/endpoint/post-client-workspace-top-up.md) or [limit changes](https://docs.sendler.ai/api-reference/endpoint/patch-client-workspace-limits.md). |

A workspace with no seat cap has `seatCap: null`. When a workspace runs out, `exhaustedAt` is set and the [`workspace.credits_exhausted`](https://docs.sendler.ai/webhooks/events/workspace-credits-exhausted) webhook fires.


## OpenAPI

````yaml GET /v1/client-workspaces
openapi: 3.0.0
info:
  title: Sendler External API
  description: >

    # Sendler External API v1


    Public API for integrating with Sendler programmatically.


    ## Authentication


    Requests authenticate with a workspace API key in the `X-API-Key` header:


    ```

    X-API-Key: sp_live_your_api_key_here

    ```


    `Authorization: Bearer sp_live_...` (or `sp_test_...`) is also accepted.
    Prefer one header; `X-API-Key` takes precedence. Clerk OAuth tokens for MCP
    connection URLs are not public REST API keys.


    A key only reaches what its scopes and creator's current workspace
    permissions allow. Each operation lists the scopes it needs in
    `x-sp-scopes`. Use `GET /v1/me` to inspect the effective permissions and
    subscription state.


    ## Rate Limits


    - **Per API Key**: 300 requests/minute

    - **Per Workspace**: 50,000 requests/day


    Responses that reach the rate limiter include these headers; early
    authentication failures may not:

    - `X-RateLimit-Limit`: Max requests per minute

    - `X-RateLimit-Remaining`: Remaining requests in current window

    - `X-RateLimit-Reset`: Epoch timestamp when limit resets


    ## LinkedIn Sender Limits


    When using messaging endpoints, these headers show account limits:

    - `X-LinkedIn-Messages-Remaining`: Messages left today

    - `X-LinkedIn-Connections-Remaining`: Connection requests left today

    - `X-LinkedIn-Quota-Reset-At`: When daily limits reset


    ## Retries


    Send an `Idempotency-Key` header on POST and PATCH requests. A retry with
    the same key within 24 hours returns the first result (with
    `Idempotent-Replayed: true`) instead of acting twice. The same key with a
    different request answers 422 `IDEMPOTENCY_KEY_REUSED`; a retry while the
    first request still runs answers 409 `IDEMPOTENCY_IN_PROGRESS`.


    Once execution is attempted, its response (including errors) is retained. If
    a process stops or result storage fails after the attempt, the durable
    record blocks another execution for the replay window and returns 409
    `IDEMPOTENCY_IN_PROGRESS` or `IDEMPOTENCY_REPLAY_UNAVAILABLE`. Check the
    operation's status before using a new key: an uncertain outcome may already
    have acted. Requests refused before execution is claimed, such as
    authentication or rate-limit refusals, can be retried with the same key.


    ## Webhooks


    Configure webhooks in the app to receive real-time events:

    - `lead.tag.updated`

    - `lead.updated`

    - `message.sent`

    - `reply.received`

    - `connection_request.sent`

    - `connection_request.accepted`

    - `campaign.started`

    - `campaign.paused`

    - `campaign.resumed`

    - `campaign.finished`


    ## Error Codes


    Errors return a JSON body. Use the machine-readable `code` when supplied;
    validation messages can be arrays, and some legacy errors omit `code`. A
    typical error is:

    ```json

    {
      "statusCode": 400,
      "error": "Bad Request",
      "code": "SPECIFIC_ERROR_CODE",
      "message": "Human-readable description"
    }

    ```
  version: '1.0'
  contact:
    name: Sendler Support
    url: https://sendler.ai
    email: support@sendler.ai
servers:
  - url: https://api.sendler.ai
security: []
tags: []
paths:
  /v1/client-workspaces:
    get:
      tags:
        - External API - Client workspaces
      summary: List client workspaces
      description: >-
        Every client workspace with its credit rule, usage and seats, plus your
        credit pool, plan seats and whether the seat caps overcommit the plan.
      operationId: clientWorkspaces.list
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientWorkspacesOverviewResponseDto'
        '404':
          description: >-
            This key isn't the agency owner's personal-workspace key, or the
            feature is off.
      security:
        - api-key: []
components:
  schemas:
    ClientWorkspacesOverviewResponseDto:
      type: object
      properties:
        pool:
          $ref: '#/components/schemas/ClientWorkspacePoolDto'
        seats:
          $ref: '#/components/schemas/ClientWorkspaceSeatsDto'
        capsSum:
          type: number
          example: 3
          description: Sum of the workspaces' seat caps.
        overcommitted:
          type: boolean
          example: false
          description: The seat caps add up to more than your plan has.
        workspaces:
          type: array
          items:
            $ref: '#/components/schemas/ClientWorkspaceResponseDto'
      required:
        - pool
        - seats
        - capsSum
        - overcommitted
        - workspaces
    ClientWorkspacePoolDto:
      type: object
      properties:
        left:
          type: number
          example: 9140
          description: Credits left in your pool.
        total:
          type: number
          example: 10000
        nextResetDate:
          type: string
          nullable: true
          example: '2026-12-01T00:00:00.000Z'
        unlimited:
          type: boolean
          example: false
      required:
        - left
        - total
        - nextResetDate
        - unlimited
    ClientWorkspaceSeatsDto:
      type: object
      properties:
        used:
          type: number
          example: 4
          description: Seated LinkedIn senders, all workspaces.
        plan:
          type: number
          nullable: true
          example: 10
          description: Your plan's LinkedIn seats; null = unlimited.
      required:
        - used
        - plan
    ClientWorkspaceResponseDto:
      type: object
      properties:
        id:
          type: string
          example: cmb1x2y3z0000abcd
        name:
          type: string
          example: Acme Corp
        note:
          type: string
          nullable: true
          example: Retainer client
        creditMode:
          type: string
          enum:
            - NONE
            - MONTHLY
            - FIXED
          description: >-
            NONE: draws on the pool freely. MONTHLY: an allowance that resets
            with your plan. FIXED: a budget that only grows by top-ups or limit
            changes.
        limit:
          type: number
          nullable: true
          example: 500
          description: >-
            Monthly allowance (MONTHLY) or budget granted so far (FIXED); null
            for NONE.
        used:
          type: number
          example: 120
          description: >-
            Credits spent this cycle (MONTHLY, NONE) or since the budget began
            (FIXED).
        remaining:
          type: number
          nullable: true
          example: 380
          description: max(0, limit - used); null for NONE.
        exhaustedAt:
          type: string
          nullable: true
          example: null
          description: When the workspace ran out of credits; null while it has some.
        seatCap:
          type: number
          nullable: true
          example: 3
          description: LinkedIn seat cap; null = no cap.
        seatsUsed:
          type: number
          example: 1
          description: Connected LinkedIn senders.
        members:
          type: number
          example: 2
          description: Active members, not counting you.
        invited:
          type: number
          example: 1
          description: Pending, unexpired invitations.
      required:
        - id
        - name
        - note
        - creditMode
        - limit
        - used
        - remaining
        - exhaustedAt
        - seatCap
        - seatsUsed
        - members
        - invited
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key for authentication (prefix: sp_live_ or sp_test_)'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.