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

# List variable sets

> List the calling organization's account-variable sets. Sort with `sort_by`/`order` (default newest-first), paginate with `limit`/`skip`. Returns the converged `Page` envelope with a real filtered `total` and `next_cursor=None` (offset family).



## OpenAPI

````yaml /openapi.json get /variables
openapi: 3.1.0
info:
  title: GetDialed Flows API
  version: 0.1.0
servers:
  - url: https://api.getdialed.ai/flows
    description: Production
security: []
paths:
  /variables:
    get:
      tags:
        - variables
      summary: List variable sets
      description: >-
        List the calling organization's account-variable sets. Sort with
        `sort_by`/`order` (default newest-first), paginate with `limit`/`skip`.
        Returns the converged `Page` envelope with a real filtered `total` and
        `next_cursor=None` (offset family).
      operationId: list_variable_sets_variables_get
      parameters:
        - name: sort_by
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/VariableSetSortBy'
            default: created_at
        - name: order
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/Order'
            default: desc
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 100
            title: Limit
        - name: skip
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Skip
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_VariableSetResponse_'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              example:
                detail: Authentication required
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit exceeded
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    VariableSetSortBy:
      type: string
      enum:
        - created_at
        - name
      title: VariableSetSortBy
      description: Allowed sort fields for GET /variables (distinct name — Pitfall 4).
    Order:
      type: string
      enum:
        - asc
        - desc
      title: Order
      description: |-
        Sort direction for config-family list endpoints (D-08).

        Renders as a real named enum (`components.schemas["Order"]`) in the
        generated OpenAPI so the Phase 50 typed client gets a compile-time
        `"asc" | "desc"` string-literal union.
    Page_VariableSetResponse_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/VariableSetResponse'
          type: array
          title: Items
        total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total
        limit:
          type: integer
          title: Limit
        skip:
          type: integer
          title: Skip
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      type: object
      required:
        - items
        - limit
        - skip
      title: Page[VariableSetResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    VariableSetResponse:
      properties:
        id:
          type: string
          title: Id
        org_id:
          type: string
          title: Org Id
        name:
          type: string
          title: Name
        keys:
          items:
            $ref: '#/components/schemas/VariableKeyResponse'
          type: array
          title: Keys
        versions:
          items:
            $ref: '#/components/schemas/VariableVersionResponse'
          type: array
          title: Versions
      type: object
      required:
        - id
        - org_id
        - name
        - keys
        - versions
      title: VariableSetResponse
      description: A set with its schema and all versions embedded (Phase 47 D-06).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    VariableKeyResponse:
      properties:
        name:
          type: string
          title: Name
        type:
          type: string
          enum:
            - string
            - number
            - boolean
            - object
            - array
            - datetime
          title: Type
        default:
          anyOf:
            - {}
            - type: 'null'
          title: Default
      type: object
      required:
        - name
        - type
      title: VariableKeyResponse
    VariableVersionResponse:
      properties:
        name:
          type: string
          title: Name
        values:
          additionalProperties: true
          type: object
          title: Values
      type: object
      required:
        - name
        - values
      title: VariableVersionResponse
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````