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.Documentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
include_metadata=true, the metadata field contains type-specific information:
| Entity Type | Metadata Fields |
|---|---|
| PROMPT / SNIPPET | type ("chat" or "completion" or null), latest_version_number |
| WORKFLOW | latest_version_number |
| DATASET | isDraft (boolean — true if only draft versions exist), latest_version_number |
| FOLDER, REPORT, AB_TEST, INPUT_VARIABLE_SET | Empty object {} |
sort_by is provided and search ordering does not take precedence, results are sorted by the requested field and sort_order.The ID of the workspace to list entities from.
The ID of the folder to list entities from. If not provided, lists entities at the workspace root level.
Filter entities by type. Can be a single type or a list of types. If not provided, all entity types are returned.
FOLDER, PROMPT, SNIPPET, WORKFLOW, DATASET, REPORT, AB_TEST, INPUT_VARIABLE_SET Search entities by name (case-insensitive partial match).
When true, returns all entities recursively within the folder hierarchy instead of only direct children.
When true, includes type-specific metadata for each entity (e.g., prompt type, latest version number).
Filter by the creator's email address.
Filter resources created at or after this timestamp.
Filter resources created at or before this timestamp.
Filter resources updated at or after this timestamp.
Filter resources updated at or before this timestamp.
External ID source to filter by. Must be provided with external_id.
External ID value to filter by. Must be provided with external_source.
Sort field.
created_at, updated_at, name, id Sort direction.
asc, desc Filter entities by tags. Applies to entity types that support tags.
Use semantic search instead of text matching. Requires search_query.
Maximum number of semantic search results to consider.
1 <= x <= 500Maximum semantic search distance threshold.
x <= 2Successful Response
List of entities matching the query.