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

# connector.functions.get(side): the code, runtime, and params a side runs



## OpenAPI

````yaml /api-reference/openapi.json get /connectors/{idOrName}/functions/{side}
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/{idOrName}/functions/{side}:
    get:
      summary: 'connector.functions.get(side): the code, runtime, and params a side runs'
      operationId: getConnectorFunction
      parameters:
        - $ref: '#/components/parameters/ConnectorIdOrName'
        - $ref: '#/components/parameters/FunctionSide'
      responses:
        '200':
          description: The function
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorFunction'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    ConnectorIdOrName:
      name: idOrName
      in: path
      required: true
      description: The connector's ID, or for connectors.get its name
      schema:
        type: string
    FunctionSide:
      name: side
      in: path
      required: true
      description: The connector's side
      schema:
        $ref: '#/components/schemas/FunctionSide'
  headers:
    RequestId:
      description: The request's ID, for support and logs
      schema:
        type: string
  schemas:
    ConnectorFunction:
      allOf:
        - $ref: '#/components/schemas/FunctionSummary'
        - type: object
          required:
            - side
            - code
            - params
          properties:
            side:
              $ref: '#/components/schemas/FunctionSide'
            code:
              description: The one source file, UTF-8.
              type: string
            params:
              type: object
              additionalProperties:
                type: string
              description: Passed to every invocation; not secret.
    FunctionSide:
      type: string
      enum:
        - inbound
        - outbound
    FunctionSummary:
      type: object
      required:
        - runtime
        - preset
        - presetCode
        - version
        - codeSha256
        - updatedAt
      properties:
        runtime:
          $ref: '#/components/schemas/FunctionRuntime'
        preset:
          type:
            - string
            - 'null'
          description: The preset the code was taken from when it was set.
        presetCode:
          description: >-
            The code is still the preset's, byte for byte, so the console offers
            its form.
          type: boolean
        version:
          description: >-
            paddock's version of the side's function, raised by every set, never
            reused.
          type: integer
          minimum: 1
        codeSha256:
          description: SHA-256 of the code, hex.
          type: string
        updatedAt:
          $ref: '#/components/schemas/Timestamp'
    ErrorBody:
      description: The body of every non-2xx response.
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    FunctionRuntime:
      description: AWS Lambda's runtime identifiers.
      type: string
      enum:
        - nodejs24.x
        - python3.14
    Timestamp:
      description: RFC 3339 in UTC with milliseconds.
      type: string
      format: date-time
      pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
      x-go-type: wire.Timestamp
      x-go-type-import:
        path: github.com/wenfengwang/paddock/internal/wire
    ErrorObject:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
        details:
          type: object
    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.