Skip to content

API endpoints

The editor widgets call these routes. All need the administer flowdrop permission and are not cached.

Method Path Purpose
GET /api/flowdrop/ai-prompts List AI prompts.
POST /api/flowdrop/ai-prompts Create an AI prompt.
GET /api/flowdrop/ai-prompts/autocomplete Search prompts for the picker.
GET /api/flowdrop/ai-prompt-types List prompt types.
GET /api/flowdrop/guardrail-sets/autocomplete Search guardrail sets for the picker.
GET /api/flowdrop/guardrail-sets/{guardrail_set_id} One guardrail set.
GET /api/flowdrop/ai-provider/config-schema Configuration schema for the AI provider settings.

Errors

Error responses carry an error_code with FlowDrop's refusal codes:

Code When
NOT_FOUND Unknown guardrail set.
INVALID_REQUEST_BODY Missing label or prompt text, or an unknown prompt type, when creating a prompt.
INTERNAL_ERROR Anything else that fails with a 500.