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

# connectors.functionPresets(): stock function code per side, in both runtimes, with the params each declares



## OpenAPI

````yaml /api-reference/openapi.json get /connectors/function-presets
openapi: 3.1.0
info:
  title: paddock API
  version: 1.0.0
  description: >-
    The paddock API. Send an API key, or a session token on its own session, as
    a bearer token.
servers:
  - url: https://api.paddock.build/v1
security:
  - bearer: []
paths:
  /connectors/function-presets:
    get:
      summary: >-
        connectors.functionPresets(): stock function code per side, in both
        runtimes, with the params each declares
      operationId: listFunctionPresets
      responses:
        '200':
          description: Every preset
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FunctionPresetList'
        default:
          $ref: '#/components/responses/Error'
components:
  headers:
    RequestId:
      description: The request's ID, for support and logs
      schema:
        type: string
  schemas:
    FunctionPresetList:
      type: object
      required:
        - presets
      properties:
        presets:
          type: array
          items:
            $ref: '#/components/schemas/FunctionPreset'
    FunctionPreset:
      type: object
      required:
        - name
        - title
        - secrets
        - inbound
        - outbound
      properties:
        name:
          description: >-
            route-all, github, slack, stripe, hubspot-v2, hubspot-v3, shopify,
            linear, standard-webhooks, webhook, email-ses.
          type: string
        title:
          type: string
        secrets:
          description: The secret names its code reads, default first.
          type: array
          items:
            type: string
        inbound:
          oneOf:
            - $ref: '#/components/schemas/PresetSide'
            - type: 'null'
        outbound:
          oneOf:
            - $ref: '#/components/schemas/PresetSide'
            - type: 'null'
    ErrorBody:
      description: The body of every non-2xx response.
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    PresetSide:
      type: object
      required:
        - code
        - params
      properties:
        code:
          type: object
          additionalProperties:
            type: string
          description: The code by runtime.
        params:
          description: The form the console shows.
          type: array
          items:
            $ref: '#/components/schemas/PresetParam'
    ErrorObject:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
        details:
          type: object
    PresetParam:
      type: object
      required:
        - name
        - title
        - required
        - default
        - choices
      properties:
        name:
          type: string
        title:
          type: string
        required:
          type: boolean
        default:
          type:
            - string
            - 'null'
        choices:
          description: 'A closed set of values; null: any.'
          oneOf:
            - type: array
              items:
                type: string
            - type: 'null'
    ErrorCode:
      type: string
      enum:
        - invalid_request
        - unauthorized
        - forbidden
        - not_found
        - conflict
        - payload_too_large
        - unsupported
        - unavailable
        - internal
  responses:
    Error:
      description: Every non-2xx response
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key, or a session token on its own session

````

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