> ## Documentation Index
> Fetch the complete documentation index at: https://slatehq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Prompt

> Retrieve the details of a specific prompt.

Returns the full details of a single prompt.

## Parameters

**id** `number` *required*

Unique identifier for the prompt.

**Authorization** `string` *required*

Bearer token. Format: `Bearer slat_<your-token>`.

## Response

Returns `200 OK` with the prompt details.

**id** `number` *required*

Prompt ID.

**topicId** `number` *required*

Topic ID the prompt belongs to.

**promptText** `string` *required*

The prompt text.

**platform** `string[]` *required*

Target AI platforms.

**cronExpr** `string`

Cron schedule expression. `null` if the prompt has no schedule.

**timezone** `string` *required*

Schedule timezone.

**active** `boolean` *required*

Whether the prompt is active.

**location** `string`

Country code. `null` if not set.

**nextRun** `string`

Next run time stored on the prompt. ISO 8601 format. `null` if not set.

**lastRun** `string`

Last run time stored on the prompt. ISO 8601 format. `null` if not set.

## Example

```bash cURL theme={null}
curl -s "https://api.slatehq.ai/ai-analytics-service/api/public/v1/prompts/156" \
  -H "Authorization: Bearer slat_YOUR_TOKEN"
```

```python Python theme={null}
import requests

response = requests.get(
    "https://api.slatehq.ai/ai-analytics-service/api/public/v1/prompts/156",
    headers={
        "Authorization": "Bearer slat_YOUR_TOKEN",
    },
)
prompt = response.json()
print(prompt["promptText"], prompt["active"])
```

```javascript JavaScript theme={null}
const response = await fetch(
  "https://api.slatehq.ai/ai-analytics-service/api/public/v1/prompts/156",
  {
    headers: {
      "Authorization": "Bearer slat_YOUR_TOKEN",
    },
  }
);
const prompt = await response.json();
console.log(prompt.promptText, prompt.active);
```

### Response

```json theme={null}
{
  "id": 156,
  "topicId": 42,
  "promptText": "What is the best project management tool for remote teams?",
  "platform": ["CHATGPT", "PERPLEXITY"],
  "cronExpr": "0 0 * * *",
  "timezone": "UTC",
  "active": true,
  "location": "US",
  "nextRun": "2026-02-12T00:00:00Z",
  "lastRun": "2026-02-11T00:00:00Z"
}
```

## Status codes

| Status | Description |
| - | - |
| `200` | Prompt found. |
| `400` | The prompt ID is invalid (`invalid prompt id`). |
| `401` | Missing or invalid Bearer token. See [Authentication](https://slatehq.com/docs/api-reference/authentication.md). |
| `403` | A `workspaceId` query parameter doesn't match the token's workspace. |
| `404` | Prompt not found. The ID does not exist or does not belong to this workspace. |
| `500` | Internal server error. |

## What's next

* [Update Prompt](https://slatehq.com/docs/api-reference/aeo-tracker/prompts/update-prompt.md) — Modify a prompt's text, schedule, or platforms.
* [Delete Prompt](https://slatehq.com/docs/api-reference/aeo-tracker/prompts/delete-prompt.md) — Remove a prompt.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.