Skip to Content
APIsapis.doAIFunctions

Functions API

API for managing Functions resources.

Fields

interface Functions { name: string; type?: 'Generation' | 'Code' | 'Human' | 'Agent'; public?: boolean; clonedFrom?: string; pricing?: any; format?: 'Object' | 'ObjectArray' | 'Text' | 'TextArray' | 'Markdown' | 'Code'; schemaYaml?: string; shape?: Record<string, any>; code?: string; prompt?: string; role?: string; user?: string; agent?: string; examples?: string[]; }

API Endpoints

GET /api/functions

Retrieves a list of Functions with pagination.

Query Parameters

  • limit: Maximum number of items to return (default: 10)
  • page: Page number for pagination (default: 1)
  • sort: Field to sort by (default: createdAt)
  • where: JSON query for filtering results

GET /api/functions/:id

Retrieves a single Functions by ID.

POST /api/functions

Creates a new Functions.

PATCH /api/functions/:id

Updates an existing Functions.

DELETE /api/functions/:id

Deletes a Functions.

Last updated on