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

# List memberships

> Returns every workspace the signed-in member belongs to. Clients filter personal/business vs `partner_*` for the product switcher.




## OpenAPI

````yaml /openapi/openapi.yaml get /v1/workspaces
openapi: 3.1.0
info:
  title: Temi Platform API
  version: 0.1.0
  description: >
    Customer-facing Platform API surface for identity, workspaces, and partner
    join. Use a Bearer Auth0 access token. Most product routes also require
    `X-Workspace-ID` once you have selected a workspace.
servers:
  - url: https://temi.curiosityflex.xyz/api
    description: Production
  - url: https://staging-temi.curiosityflex.xyz/api
    description: Staging
security:
  - bearerAuth: []
tags:
  - name: Health
  - name: Members
  - name: Workspaces
  - name: Partner join
paths:
  /v1/workspaces:
    get:
      tags:
        - Workspaces
      summary: List memberships
      description: >
        Returns every workspace the signed-in member belongs to. Clients filter
        personal/business vs `partner_*` for the product switcher.
      operationId: listWorkspaces
      responses:
        '200':
          description: Memberships
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/MemberWorkspace'
              example:
                data:
                  - workspace_id: 22222222-2222-2222-2222-222222222222
                    workspace_name: Ada's workspace
                    workspace_type: personal
                    role: business_owner
                    partner_roles: []
                  - workspace_id: 33333333-3333-3333-3333-333333333333
                    workspace_name: FairMoney Demo
                    workspace_type: business
                    role: business_owner
                    partner_roles: []
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    MemberWorkspace:
      type: object
      required:
        - workspace_id
        - workspace_name
        - workspace_type
        - role
      properties:
        workspace_id:
          type: string
          format: uuid
        workspace_name:
          type: string
        workspace_type:
          type: string
          enum:
            - personal
            - business
        accent_color:
          type: string
          nullable: true
        role:
          type: string
          description: Canonical role ID for this membership
        partner_roles:
          type: array
          items:
            type: string
        created_at:
          type: string
          format: date-time
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid OIDC access token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Problem'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Auth0 access token (Temi Platform API audience, permission access:temi)

````

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