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

# Get fields

> Get fields for the company associated with the API key



## OpenAPI

````yaml https://api.theymes.com/openapi get /fields
openapi: 3.1.0
info:
  title: Theymes API
  version: 1.0.0
  description: >-
    Theymes API allows you to interact with the Theymes platform.



    Most endpoints require an API key for authentication. You can generate an
    API key in the Theymes dashboard.



    The API key should be included in the Authorization header
    (```Authorization: Bearer <YOUR_KEY>```).



    The public support link endpoints do not require authentication and are
    grouped separately below.
servers: []
security: []
tags:
  - name: Authenticated endpoints (API key)
    description: Endpoints that require an API key in the Authorization header.
  - name: Public support links (no authentication)
    description: >-
      Endpoints for creating web support sessions and links. These require no
      authentication and are identified by a game environment token.
paths:
  /fields:
    get:
      tags:
        - Authenticated endpoints (API key)
      description: Get fields for the company associated with the API key
      operationId: getFields
      parameters:
        - schema:
            type: string
            description: Bearer token API key
          required: true
          description: Bearer token API key
          name: Authorization
          in: header
      responses:
        '200':
          description: A list of fields
          content:
            application/json:
              schema:
                type: object
                properties:
                  fields:
                    type: array
                    items:
                      type: object
                      properties:
                        gameId:
                          type: string
                          nullable: true
                          format: uuid
                          description: >-
                            The ID of the game this field is associated with, or
                            null if it is a company-wide field
                        name:
                          type: string
                        description:
                          type: string
                          nullable: true
                        type:
                          type: string
                          enum:
                            - text
                            - number
                            - date
                            - boolean
                            - dropdown
                        key:
                          type: string
                        isAiField:
                          type: boolean
                      required:
                        - gameId
                        - name
                        - description
                        - type
                        - key
                        - isAiField
                required:
                  - fields

````