Skip to main content
GET
/
ai-analytics-service
/
api
/
public
/
v1
/
prompts
/
{id}
Get Prompt
curl --request GET \
  --url https://api.slatehq.ai/ai-analytics-service/api/public/v1/prompts/{id} \
  --header 'Authorization: <authorization>'
{
  "id": 123,
  "topicId": 123,
  "promptText": "<string>",
  "platform": [
    "<string>"
  ],
  "cronExpr": "<string>",
  "timezone": "<string>",
  "active": true,
  "location": "<string>",
  "nextRun": "<string>",
  "lastRun": "<string>"
}

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.

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
required
Cron schedule expression.
timezone
string
required
Schedule timezone.
active
boolean
required
Whether the prompt is active.
location
string
Country code. null if not set.
nextRun
string
Next scheduled run time. ISO 8601 format.
lastRun
string
Last run time. ISO 8601 format. null if the prompt has not run yet.

Example

curl -s "https://api.slatehq.ai/ai-analytics-service/api/public/v1/prompts/156" \
  -H "Authorization: Bearer slat_YOUR_TOKEN"

Response

{
  "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

StatusDescription
200Prompt found.
401Missing or invalid Bearer token. See Authentication.
404Prompt not found. The ID does not exist or does not belong to this workspace.
500Internal server error.

What’s next