Lists entities within a folder or at the workspace root. Returns folders, prompts, snippets, workflows, datasets, evaluations, AB tests, and input variable sets. Supports filtering by entity type, searching by name, flattening the folder hierarchy, and optionally including entity metadata.
GET
/
api
/
public
/
v2
/
folders
/
entities
List Folder Entities
Copy
curl --request GET \ --url https://api.promptlayer.com/api/public/v2/folders/entities \ --header 'X-API-KEY: <x-api-key>'
Lists entities within a folder or at the workspace root. Returns folders, prompts, snippets, workflows, datasets, evaluations, AB tests, and input variable sets.This endpoint is the primary way to browse the unified registry programmatically — equivalent to viewing the registry page in the PromptLayer dashboard.
When true, returns all entities recursively from the target folder and all of its subfolders. When false (default), only returns direct children of the folder (or root).
Restrict results to one or more entity types. Accepts a single value or a list. Valid values:FOLDER, PROMPT, SNIPPET, WORKFLOW, DATASET, REPORT, AB_TEST, INPUT_VARIABLE_SETIf omitted, all entity types are returned.
Filter entities by tags. Only entities that contain all specified tags are returned. Applies to prompts, workflows, datasets, and evaluations. Folders, AB tests, and input variable sets are excluded when this filter is active.
Maximum distance threshold for semantic search results. Only results within this distance are returned. Range: (0, 2]. If omitted, no threshold is applied.