> ## 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 available functions and workflows (beta)

> Lists routines accessible to the authenticated caller on the users surface, with input schemas.



## OpenAPI

````yaml /openapi.json get /routines
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:
    get:
      tags:
        - routines
      summary: List available functions and workflows (beta)
      description: >-
        Lists routines accessible to the authenticated caller on the users
        surface, with input schemas.
      operationId: listAvailableRoutines
      parameters:
        - in: query
          name: cursor
          schema:
            type: string
        - in: query
          name: limit
          schema:
            default: 20
            maximum: 100
            minimum: 1
            type: integer
        - in: query
          name: type
          schema:
            enum:
              - function
              - workflow
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  cursor:
                    type: string
                  data:
                    items:
                      additionalProperties: false
                      properties:
                        description:
                          anyOf:
                            - type: string
                            - type: 'null'
                        id:
                          type: string
                        input_options:
                          additionalProperties:
                            additionalProperties: false
                            properties:
                              type:
                                const: dynamic
                                type: string
                            required:
                              - type
                            type: object
                          description: >-
                            Inputs with configured dynamic choices. Fetch
                            choices from the input-options endpoint using the
                            exact input name.
                          type: object
                        input_schema:
                          additionalProperties: {}
                          type: object
                        is_runnable:
                          description: False when a workflow lacks a manual trigger.
                          type: boolean
                        name:
                          type: string
                        source:
                          enum:
                            - managed
                            - custom
                          type: string
                        type:
                          enum:
                            - function
                            - workflow
                          type: string
                      required:
                        - id
                        - type
                        - name
                        - description
                        - source
                        - is_runnable
                      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'
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: '429'
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.