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

# Get workspaces

> Returns the workspaces you can see, by name: all of your team's (only the ones assigned to you if you're a client of the team), or your own if you're not in a team. Workspaces split up your work, such as one per client, and each has its own followed brands, groups and boards.

Everyone except a team's clients also has a **default workspace**, which holds whatever isn't in one of these. It isn't listed here: its `workspace_id` is `null`, and endpoints that take `workspace_id` accept `default` for it.


> [!NOTE]
>
> **Credits:** 1 credit per request.


## OpenAPI

````yaml GET /v1/workspaces
openapi: 3.1.0
info:
  title: Adspo API
  version: 1.0.0
  description: >
    The Adspo API gives you programmatic access to ad creative data across
    brands.


    ## Authentication


    All endpoints require an API key passed in the `x-api-key` header.


    ```

    x-api-key: YOUR_API_KEY

    ```


    ## Rate limits


    - **120 requests per minute** per key. Exceeding this returns `429` with a
    `Retry-After` header. Every response carries `RateLimit-Limit`,
    `RateLimit-Remaining` and `RateLimit-Reset` headers.

    - **Credits per billing period** vary by plan. Each request costs 1 credit
    (`/v1/usage` is free). Exceeding your quota returns `429` with `resets_at`
    indicating when it resets.

    - A key whose account has no active subscription gets `403`.

    - **Changes** have their own per-person limits, across all their keys and
    connections: saving creatives and adding them to boards, 30 a minute;
    creating boards, 10 a minute; following brands and adding them to groups, 30
    a minute. Exceeding these returns `429` with a `Retry-After` header. Each
    costs 1 credit only when it changes something; anything already there is
    free.
servers:
  - url: https://api.adspo.co
    description: Production
security:
  - apiKey: []
paths:
  /v1/workspaces:
    get:
      summary: Get workspaces
      description: >
        Returns the workspaces you can see, by name: all of your team's (only
        the ones assigned to you if you're a client of the team), or your own if
        you're not in a team. Workspaces split up your work, such as one per
        client, and each has its own followed brands, groups and boards.


        Everyone except a team's clients also has a **default workspace**, which
        holds whatever isn't in one of these. It isn't listed here: its
        `workspace_id` is `null`, and endpoints that take `workspace_id` accept
        `default` for it.
      operationId: getWorkspaces
      responses:
        '200':
          description: List of workspaces.
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                  workspaces:
                    type: array
                    items:
                      $ref: '#/components/schemas/Workspace'
              example:
                count: 2
                workspaces:
                  - workspace_id: 0133afa6-5326-4a70-aa10-c9358eb6de04
                    name: Client A
                    image_uri: null
                    created_at: '2026-04-16T18:17:20Z'
                    updated_at: '2026-04-16T18:17:20Z'
                  - workspace_id: 1244bfa6-6437-5b81-bb21-d0469fc7be15
                    name: Client B
                    image_uri: null
                    created_at: '2026-03-10T09:00:00Z'
                    updated_at: '2026-03-10T09:00:00Z'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Workspace:
      type: object
      properties:
        workspace_id:
          type: string
          format: uuid
          description: Unique identifier for this workspace.
        name:
          type: string
        image_uri:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
  responses:
    Forbidden:
      description: >
        The account behind the key has no active subscription (`No active
        subscription`), or a team key's subscription can't be found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: No active subscription
    TooManyRequests:
      description: >
        Either the per-minute rate limit or the credit quota was exceeded. The
        two look different:


        - **Rate limit** (120 requests per minute): the response has a
        `Retry-After` header with the seconds to wait.

        - **Quota** (credits per billing period): the body includes `limit` and
        `resets_at`. Retrying won't help until then.
      headers:
        Retry-After:
          description: >-
            Seconds until the rate limit window resets. Only sent when the rate
            limit was hit.
          schema:
            type: integer
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              limit:
                type: integer
                description: >-
                  Credits in the billing period. Only present when the quota was
                  exceeded.
              resets_at:
                type: string
                format: date-time
                description: >-
                  When the quota resets. Only present when the quota was
                  exceeded.
          examples:
            rate_limit:
              summary: Rate limit
              value:
                error: Rate limit exceeded. Maximum 120 requests per minute.
            quota:
              summary: Quota
              value:
                error: Quota exceeded
                limit: 10000
                resets_at: '2026-06-04T22:38:10Z'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Adspo API key.

````

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