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

# Fetch variables

> Returns the variables in the workspace of the requesting user.



## OpenAPI

````yaml openapi-legacy.json get /variables
openapi: 3.0.0
info:
  version: 1.0.0
  title: Ditto API
  description: Programmatically read and write data in your Ditto workspace.
servers:
  - url: https://api.dittowords.com/v1
security: []
paths:
  /variables:
    get:
      tags:
        - Variables
      summary: Fetch variables
      description: Returns the variables in the workspace of the requesting user.
      responses:
        '200':
          description: >-
            A JSON body containing variable information from your workspace,
            keyed by variable name.
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  anyOf:
                    - type: object
                      properties:
                        example:
                          anyOf:
                            - type: number
                            - type: string
                        fallback:
                          anyOf:
                            - type: number
                            - type: string
                      required:
                        - example
                    - type: object
                      properties:
                        example:
                          type: string
                        fallback:
                          type: string
                      required:
                        - example
                    - type: object
                      properties:
                        text:
                          type: string
                        url:
                          type: string
                      required:
                        - text
                        - url
                    - type: array
                      items:
                        type: string
                    - type: object
                      additionalProperties:
                        type: string
                example:
                  user_name:
                    example: Jessica
                    fallback: Ditto user
                  user_age:
                    example: 24
                    fallback: 0
                  help_link:
                    text: Get help
                    url: https://help.com
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````