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

# List dynamic choices for a routine input (beta)

> Resolves one input’s configured choices using the saved integration connection. Returns labels for display and values to pass when running the routine. Cursors are scoped to the caller, routine, input and choices; restart without a cursor if choices change. Pagination limits the response, not the upstream integration fetch.



## OpenAPI

````yaml /openapi.json get /routines/{routine_id}/input-options
openapi: 3.1.0
info:
  contact:
    name: Clay
    url: https://www.clay.com
  description: Programmatic access to Clay.
  title: Clay Public API
  version: '0'
servers:
  - description: production
    url: https://api.clay.com/public/v0
security:
  - ClayApiKey: []
tags:
  - description: Audiences endpoints.
    name: audiences
  - description: Workspace audit log query endpoints.
    name: auditLogs
  - description: Authenticated user and workspace endpoints.
    name: me
  - description: Workspace credit balances.
    name: credits
  - description: Search creation and pagination endpoints.
    name: search
  - description: Structured table query endpoints.
    name: tables
  - description: Routine discovery and execution endpoints.
    name: routines
  - description: Search workflow runs by query.
    name: workflowsRuns
paths:
  /routines/{routine_id}/input-options:
    get:
      tags:
        - routines
      summary: List dynamic choices for a routine input (beta)
      description: >-
        Resolves one input’s configured choices using the saved integration
        connection. Returns labels for display and values to pass when running
        the routine. Cursors are scoped to the caller, routine, input and
        choices; restart without a cursor if choices change. Pagination limits
        the response, not the upstream integration fetch.
      operationId: listRoutineInputOptions
      parameters:
        - in: path
          name: routine_id
          required: true
          schema:
            maxLength: 64
            minLength: 1
            type: string
        - in: query
          name: cursor
          schema:
            type: string
        - in: query
          name: limit
          schema:
            default: 20
            maximum: 100
            minimum: 1
            type: integer
        - in: query
          name: input_name
          required: true
          schema:
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  cursor:
                    type: string
                  data:
                    items:
                      additionalProperties: false
                      properties:
                        label:
                          type: string
                        value:
                          anyOf:
                            - type: string
                            - type: number
                      required:
                        - label
                        - value
                      type: object
                    type: array
                required:
                  - data
                type: object
          description: '200'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: '400'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: '401'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: '403'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: '404'
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: '429'
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: '502'
components:
  schemas:
    ErrorResponse:
      additionalProperties: false
      properties:
        message:
          type: string
      required:
        - message
      type: object
  securitySchemes:
    ClayApiKey:
      description: >-
        Clay API key with the Public API scope, tied to your Clay user and
        workspace. Create one under API and CLI → API keys in the Clay app, or
        with `clay api-keys create`.
      in: header
      name: clay-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.