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

# List workspaces

> List active workspaces allowed by the API token and current user membership.



## OpenAPI

````yaml /api-reference/openapi.json get /public/v1/workspaces
openapi: 3.0.0
info:
  title: PostlyBee Public API
  description: >-
    Connect accounts, create and manage social posts, inspect analytics and
    notifications, and upload media with the PostlyBee Public API.
  version: 1.0.0
  contact:
    name: PostlyBee Support
    url: https://postlybee.com
    email: support@postlybee.com
  license:
    name: Proprietary
    url: https://postlybee.com/terms
servers:
  - url: https://api.postlybee.com
    description: Production
security: []
tags:
  - name: Workspaces
    description: List workspaces available to the API token.
  - name: Posts
    description: Create, list, update, and delete social posts.
  - name: Media
    description: Upload media and use enabled video generators.
  - name: Accounts
    description: Discover connected social accounts.
  - name: Analytics
    description: Inspect account and published-post performance.
  - name: Notifications
    description: List workspace notifications.
  - name: Utilities
    description: Verify access and find posting slots.
paths:
  /public/v1/workspaces:
    get:
      tags:
        - Workspaces
      summary: List workspaces
      description: >-
        List active workspaces allowed by the API token and current user
        membership.
      operationId: listWorkspaces
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PublicApiWorkspaceDto'
        '401':
          description: The bearer token is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorDto'
        '429':
          description: Hourly API limit exceeded.
      security:
        - public-api: []
components:
  schemas:
    PublicApiWorkspaceDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 4cb8c6af-7111-4e5d-a7cd-846c9293d4c1
        name:
          type: string
          example: PostlyBee
        description:
          type: string
          nullable: true
          example: Social publishing workspace
        type:
          type: string
          nullable: true
          example: PERSONAL
        timezone:
          type: string
          nullable: true
          example: Asia/Shanghai
        createdAt:
          format: date-time
          type: string
          nullable: true
          example: '2026-08-26T00:00:00.000Z'
      required:
        - id
        - name
    PublicApiErrorDto:
      type: object
      properties:
        msg:
          type: string
          example: Invalid API token
      required:
        - msg
  securitySchemes:
    public-api:
      scheme: bearer
      bearerFormat: API token
      type: http
      description: >-
        User API token from Settings → Public API. Access is restricted by
        scopes and workspace selection.

````