Skip to main content
GET
/
ai-analytics-service
/
api
/
public
/
v1
/
query-runs
/
{id}
Get Query Run
curl --request GET \
  --url https://api.slatehq.ai/ai-analytics-service/api/public/v1/query-runs/{id} \
  --header 'Authorization: <authorization>'
{
  "id": 123,
  "promptId": 123,
  "topicId": 123,
  "platform": "<string>",
  "status": "<string>",
  "startedAt": "<string>",
  "completedAt": "<string>",
  "errorMessage": "<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 status and metadata of a single query run.

Parameters

id
number
required
Unique identifier for the query run.
Authorization
string
required
Bearer token. Format: Bearer slat_<your-token>.

Response

Returns 200 OK with the query run details.
id
number
required
Query run ID.
promptId
number
required
Associated prompt ID.
topicId
number
required
Associated topic ID.
platform
string
required
AI platform used. One of: CHATGPT, PERPLEXITY, GOOGLE_AI_OVERVIEW, GOOGLE_AI_MODE, GEMINI, CLAUDE.
status
string
required
Run status (e.g., PENDING, COMPLETED, FAILED).
startedAt
string
required
Run start time. ISO 8601 format.
completedAt
string
Completion time. null if the run is still in progress.
errorMessage
string
Error details if the run failed. null on success.

Example

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

Response

{
  "id": 2048,
  "promptId": 156,
  "topicId": 42,
  "platform": "CHATGPT",
  "status": "COMPLETED",
  "startedAt": "2026-02-11T14:30:00Z",
  "completedAt": "2026-02-11T14:31:15Z",
  "errorMessage": null
}

Status codes

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

What’s next