Get prompt

http
GET /projects/{project_reference}/prompts/{prompt_id}

Read one prompt by its ID to inspect its name and description; returns the prompt. Requires project.agents.read.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
prompt_idpathYes
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 prompt
401Unauthorized
403Forbidden
404Not found