> ## 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 variants

> Returns a list of variants in the workspace of the requesting user.



## OpenAPI

````yaml openapi-legacy.json get /variants
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:
  /variants:
    get:
      tags:
        - Variants
      summary: Fetch variants
      description: Returns a list of variants in the workspace of the requesting user.
      parameters:
        - schema:
            type: boolean
          required: false
          name: showSampleData
          in: query
        - schema:
            type: string
          required: false
          name: projectIds
          in: query
      responses:
        '200':
          description: Variants in your workspace
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                    description:
                      type: string
                    apiID:
                      type: string
                  required:
                    - name
                    - description
                    - apiID
                example:
                  - name: french
                    apiID: french
                    description: ''
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````