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

# List all functions

> Get all functions with their metadata



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/functions.yaml get /api/functions
openapi: 3.0.3
info:
  title: Insforge Functions API
  version: 1.0.0
  description: Serverless functions running in Deno runtime
servers: []
security: []
paths:
  /api/functions:
    get:
      tags:
        - Admin
      summary: List all functions
      description: Get all functions with their metadata
      responses:
        '200':
          description: List of functions
          content:
            application/json:
              schema:
                type: object
                required:
                  - functions
                  - runtime
                properties:
                  functions:
                    type: array
                    items:
                      $ref: '#/components/schemas/FunctionMetadata'
                  runtime:
                    type: object
                    required:
                      - status
                    properties:
                      status:
                        type: string
                        enum:
                          - running
                          - unavailable
                  deploymentUrl:
                    type: string
                    nullable: true
              example:
                functions:
                  - id: 123e4567-e89b-12d3-a456-426614174000
                    slug: hello-world
                    name: Hello World Function
                    description: Returns a greeting message
                    status: active
                    createdAt: '2024-01-21T10:30:00Z'
                    updatedAt: '2024-01-21T10:35:00Z'
                    deployedAt: '2024-01-21T10:35:00Z'
                  - id: 223e4567-e89b-12d3-a456-426614174001
                    slug: process-webhook
                    name: Webhook Processor
                    description: Processes incoming webhooks
                    status: draft
                    createdAt: '2024-01-22T14:20:00Z'
                    updatedAt: '2024-01-22T14:20:00Z'
                    deployedAt: null
                runtime:
                  status: running
        '401':
          description: Unauthorized
        '403':
          description: Forbidden - Admin only
        '500':
          description: Failed to list functions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
        - apiKey: []
components:
  schemas:
    FunctionMetadata:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the function
        slug:
          type: string
          description: URL-friendly identifier
          example: hello-world
        name:
          type: string
          description: Display name for the function
          example: Hello World Function
        description:
          type: string
          nullable: true
          description: Description of what the function does
        status:
          type: string
          enum:
            - draft
            - active
            - error
          description: Current status of the function
        createdAt:
          type: string
          format: date-time
          description: When the function was created
        updatedAt:
          type: string
          format: date-time
          description: When the function was last updated
        deployedAt:
          type: string
          format: date-time
          nullable: true
          description: When the function was last deployed (null if never deployed)
      required:
        - id
        - slug
        - name
        - description
        - status
        - createdAt
        - updatedAt
        - deployedAt
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          oneOf:
            - type: string
            - type: array
              items:
                type: object
            - type: object
          description: Additional error details
        message:
          type: string
          description: Detailed error message
        pattern:
          type: string
          description: >-
            Pattern that caused validation failure (for dangerous code
            detection)
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````