Skip to main content
GET
/
ai-analytics-service
/
api
/
public
/
v1
/
query-runs
/
{id}
/
details
Get Run Details
curl --request GET \
  --url https://api.slatehq.ai/ai-analytics-service/api/public/v1/query-runs/{id}/details \
  --header 'Authorization: <authorization>'
{
  "queryRun": {
    "id": 123,
    "platform": "<string>",
    "status": "<string>",
    "completedAt": "<string>",
    "promptText": "<string>",
    "topicName": "<string>",
    "active": true,
    "location": "<string>",
    "errorMessage": "<string>"
  },
  "aiResponse": {},
  "metrics": {}
}

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 complete details of a query run, including the raw AI response and computed metrics. Use this after a run reaches COMPLETED status to see what the AI platform returned.

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 run summary, AI response, and metrics.
queryRun
object
required
Summary of the query run with prompt and topic context.
aiResponse
object
The raw response from the AI platform. Structure varies by platform. null if the run has not completed or failed before producing a response.
metrics
object
Computed metrics for the run (brand mentions, visibility scores, citations). Structure depends on the analysis performed. null if metrics are not yet available.

Example

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

Response

{
  "queryRun": {
    "id": 2048,
    "platform": "CHATGPT",
    "status": "COMPLETED",
    "completedAt": "2026-02-11T14:31:15Z",
    "promptText": "What is the best project management tool for remote teams?",
    "topicName": "Project Management Tools",
    "active": true,
    "location": "US",
    "errorMessage": null
  },
  "aiResponse": {
    "text": "Based on my analysis, the top project management tools for remote teams include...",
    "citations": [
      "https://example.com/pm-tools-comparison"
    ]
  },
  "metrics": {
    "brandMentions": 3,
    "position": 2,
    "visibility": 85
  }
}
The aiResponse structure varies by AI platform. The example above is illustrative — the actual shape depends on the platform’s response format.

Status codes

StatusDescription
200Run details returned.
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