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.
Creates a new prompt under a specific topic. Optionally triggers an immediate query run across the selected AI platforms.
Parameters
Bearer token. Format: Bearer slat_<your-token>.
Set to true to immediately trigger a live query run after creating the prompt. Default: false.
ID of the topic this prompt belongs to. Must reference an existing topic in your workspace.
The prompt text to track. Maximum 4000 characters.
AI platforms to query. One or more of: CHATGPT, PERPLEXITY, GOOGLE_AI_OVERVIEW, GOOGLE_AI_MODE, GEMINI, CLAUDE.
Cron expression defining the query schedule (e.g., 0 0 * * * for daily).
Timezone for the cron schedule (e.g., UTC, America/New_York).
Whether the prompt is active. Default: true.
ISO 3166-1 alpha-2 country code for location-specific results (e.g., US, GB, IN). Maximum 2 characters.
Response
Returns 201 Created with the new prompt.
Unique identifier for the prompt.
Topic ID the prompt belongs to.
Cron schedule expression.
Whether the prompt is active.
Country code for location filtering. null if not set.
Next scheduled run time. ISO 8601 format.
Last run time. ISO 8601 format. null if the prompt has not run yet.
Example
curl -s -X POST "https://api.slatehq.ai/ai-analytics-service/api/public/v1/prompts" \
-H "Authorization: Bearer slat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
--data-raw '{
"topicId": 42,
"promptText": "What is the best project management tool for remote teams?",
"platform": ["CHATGPT", "PERPLEXITY"],
"cronExpr": "0 0 * * *",
"timezone": "UTC",
"location": "US"
}'
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": null
}
Status codes
| Status | Description |
|---|
201 | Prompt created. |
400 | Invalid request. Missing required fields, topic not found, or invalid location code. |
401 | Missing or invalid Bearer token. See Authentication. |
500 | Internal server error. |
What’s next