# Get one version of a prompt

`GET https://app.whatsetter.com/api/v1/campaigns/{id}/prompts/{type}/versions/{versionId}`

One version with its full text, to read what the agent ran on at a
given date. To see what changed between two versions, use
`GET …/versions/{versionId}/compare`. Requires scope `prompts:read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes |  |
| `type` | path | conversation \| first_message | yes |  |
| `versionId` | path | string | yes |  |

## Example request

```bash
curl --request GET \
  --url 'https://app.whatsetter.com/api/v1/campaigns/{id}/prompts/{type}/versions/{versionId}' \
  --header 'Authorization: Bearer ws_live_…'
```

## Responses

### 200: The version

```json
{
  "data": {
    "id": "68e60d3100212c0a9b41",
    "version": 7,
    "variant": "A",
    "name": null,
    "status": "inactive",
    "author": "dashboard",
    "snapshot": false,
    "created_at": "2026-10-07T09:18:22.000+00:00",
    "characters": 109,
    "preview": "## Identity You are {{agent_name}} from {{company_name}}. ## Goal Qualify the lead, then send {{goal_link}}.",
    "body": "## Identity\nYou are {{agent_name}} from {{company_name}}.\n\n## Goal\nQualify the lead, then send {{goal_link}}."
  }
}
```

### 401: Missing, unknown or revoked API key

```json
{
  "error": {
    "code": "",
    "message": ""
  }
}
```

### 403: The key lacks the required scope (`insufficient_scope`), the plan does not have this part of the API (`not_in_plan`), or Instagram is not enabled on the workspace (`instagram_not_enabled`, Instagram routes)

```json
{
  "error": {
    "code": "",
    "message": ""
  }
}
```

### 404: Resource not found in this workspace

```json
{
  "error": {
    "code": "",
    "message": ""
  }
}
```

### 409: This text keeps no history

```json
{
  "error": {
    "code": "",
    "message": ""
  }
}
```


Source: https://docs.whatsetter.com/api-reference/operations/getpromptversion/
