# 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

| Name                    | In    | Required | Description                                                                                                                           |
| ----------------------- | ----- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`     | path  | Yes      | Project slug, UUID, or domain that identifies the project.                                                                            |
| `prompt_id`             | path  | Yes      |                                                                                                                                       |
| `source_target_kind`    | query |          | Source to read prompts from: project, main\_branch, environment or preview\_branch. Falls back to runtime\_target\_kind when omitted. |
| `runtime_target_kind`   | query |          | Runtime target to read from when source\_target\_kind is omitted: main\_branch, environment or preview\_branch.                       |
| `target_environment_id` | query |          | Environment to use. Required for the environment target; rejected for any other target.                                               |
| `target_branch_id`      | query |          | Preview branch to use. Required for the preview\_branch target; rejected for any other target.                                        |

## Responses

| Status | Description               |
| ------ | ------------------------- |
| 200    | Discovered project prompt |
| 401    | Unauthorized              |
| 403    | Forbidden                 |
| 404    | Not found                 |
