List prompts

http
GET /projects/{project_reference}/prompts

List the prompts defined in the source of a project, a branch or an environment to find one to use or edit; returns every prompt with the source files that could not be read as prompts. Requires project.agents.read.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
source_target_kindquerySource to read prompts from: project, main_branch, environment or preview_branch. Falls back to runtime_target_kind when omitted.
runtime_target_kindqueryRuntime target to read from when source_target_kind is omitted: main_branch, environment or preview_branch.
target_environment_idqueryEnvironment to use. Required for the environment target; rejected for any other target.
target_branch_idqueryPreview branch to use. Required for the preview_branch target; rejected for any other target.

Responses

StatusDescription
200Discovered project prompts
401Unauthorized
403Forbidden
404Not found