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

# Werkruimten van de gebruiker weergeven

> Met dit endpoint voer je de volgende bewerking uit: werkruimten van de gebruiker weergeven.



## OpenAPI

````yaml nl/api-reference/openapi.yaml get /api/v1/users/{user_id}/workspaces
openapi: 3.1.0
info:
  title: Anlytic API
  version: '1.0'
  description: >-
    De Anlytic REST API. Alle endpoints zijn beschikbaar onder `/api/v1/`.


    ## Authenticatie


    Voor de meeste endpoints is een **Bearer JWT** nodig die je via de
    authenticatiestroom verkrijgt:

    1. `GET /api/v1/users/otp` — vraag een eenmalige toegangscode aan met HTTP
    Basic Auth.

    2. `GET /api/v1/users/token/{kid}` — wissel de code in voor een
    werkruimte-JWT.


    Stuur de JWT bij elke volgende aanvraag mee als `Authorization: Bearer
    <token>`.


    Je kunt ook een **API-sleutel** via dezelfde header gebruiken:
    `Authorization: API-Key <key>`.
  contact:
    name: Anlytic Support
    url: https://anlytic.com
servers:
  - url: https://app.anlytic.com
    description: Productie
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Configuratie
    description: API-configuratie en beleid
  - name: Triggers
    description: Geplande grafiektriggers en triggeracties
paths:
  /api/v1/users/{user_id}/workspaces:
    get:
      tags:
        - Werkruimten
      summary: Werkruimten van de gebruiker weergeven
      description: >-
        Met dit endpoint voer je de volgende bewerking uit: werkruimten van de
        gebruiker weergeven.
      operationId: listUserWorkspaces
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
          description: Waarde voor `user_id`.
        - $ref: '#/components/parameters/pageParam'
        - $ref: '#/components/parameters/rowsParam'
      responses:
        '200':
          description: Aanvraag geslaagd
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Workspace'
                  total:
                    type: integer
                    description: Totaal aantal records
                  page:
                    type: integer
                    description: Huidig paginanummer
                  rowsPerPage:
                    type: integer
                    description: Aantal rijen per pagina
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    UUID:
      type: string
      format: uuid
      example: 550e8400-e29b-41d4-a716-446655440000
    Workspace:
      type: object
      properties:
        workId:
          $ref: '#/components/schemas/UUID'
        name:
          type: string
        slug:
          type: string
        public:
          type: boolean
        archived:
          type: boolean
        plan:
          $ref: '#/components/schemas/WorkspacePlan'
        fivetran_key:
          type: boolean
        system_key:
          type: boolean
        createdAt:
          $ref: '#/components/schemas/Timestamp'
        updatedAt:
          $ref: '#/components/schemas/Timestamp'
        settings:
          type: object
          properties:
            default_language:
              type: string
            default_theme:
              type: string
            ai_enabled:
              type:
                - boolean
                - 'null'
            mfa_enforced:
              type: boolean
            mfa_required:
              type:
                - boolean
                - 'null'
    WorkspacePlan:
      type: object
      properties:
        plan:
          type: string
        interval:
          type: string
          enum:
            - monthly
            - annual
        price:
          type: number
        status:
          type: string
        overwritten:
          type: boolean
        trial_ends_at:
          $ref: '#/components/schemas/Timestamp'
    Timestamp:
      type: string
      format: date-time
      example: '2024-01-15T10:30:00Z'
    Error:
      type: object
      properties:
        error:
          type: string
          description: Voor mensen leesbare foutmelding
        code:
          type: string
          description: Machineleesbare foutcode
  parameters:
    pageParam:
      name: page
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        default: 1
      description: Paginanummer (vanaf 1)
    rowsParam:
      name: rows
      in: query
      required: false
      schema:
        type: integer
        minimum: -1
        default: 20
      description: >-
        Aantal rijen per pagina. Gebruik `-1` om alle rijen zonder paginering te
        retourneren.
  responses:
    Unauthorized:
      description: Authenticatietoken ontbreekt of is ongeldig
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Onvoldoende rechten
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Stuur een geldig token mee via de header `Authorization: Bearer
        <token>`.
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Voer `API-Key <key>` in.

````