# Get one prompt

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

One text of the agent: what is live, and for a versioned prompt its
unpublished drafts. Same shape as one entry of
`GET /campaigns/{id}/prompts`. Requires scope `prompts:read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes |  |
| `type` | path | conversation \| first_message \| follow_up_cold_1 \| follow_up_cold_2 \| follow_up_abandoned_1 \| follow_up_abandoned_2 \| group_reply \| group_dm | yes |  |
| `rendered` | query | boolean | no | Also return `rendered_body` on each live variant (versioned prompts). |

## Example request

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

## Responses

### 200: The prompt

```json
{
  "data": {
    "type": "follow_up_cold_1",
    "versioned": false,
    "body": "Write a short follow-up to {{prospectName}} who has not replied yet.",
    "uses_default": false,
    "characters": 68,
    "max_characters": 15000,
    "enabled": true,
    "delay_hours": 24
  }
}
```

### 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 agent has no text of that type

```json
{
  "error": {
    "code": "invalid_state",
    "message": "A private-message agent has no \"group_reply\" text. Its texts: conversation, first_message, follow_up_cold_1, follow_up_cold_2, follow_up_abandoned_1, follow_up_abandoned_2."
  }
}
```


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