Aller au contenu

Per-engine answers for one prompt in one run

GET
/brands/{brandId}/prompts/{queryId}/responses
curl --request GET \
--url 'https://api.traaker.ai/api/public/v1/brands/example/prompts/example/responses?latest=false&includeResponseText=true' \
--header 'Authorization: Bearer <token>'

The full signal set behind a prompt’s score, one row per engine: whether the brand was cited and recommended, its position in any recommendation list, sentiment, alignment, the citation list, and the engine’s prose.

Pick the run with exactly one of auditId, date or latest. Sending none is the same as latest=true; sending two is a 400.

Only the last 3 completed audits per brand and axis are addressable. Asking for an older run returns 404 naming the oldest available.

brandId
required
string
queryId
required
string

The prompt’s queryId. The axis is resolved automatically.

auditId
string

An auditId from /audits. Must be among the last 3 completed runs for this brand and axis.

date
string format: date
/^\d{4}-\d{2}-\d{2}$/

Calendar day (UTC) of a completed run, YYYY-MM-DD. meta.auditId echoes which run answered.

latest
boolean

Most recent completed run. Implied when no selector is given.

includeResponseText
boolean
default: true

Set false to null out response and keep payloads small when you only need the signals.

OK. data is empty (not a 404) when the resolved run completed without scoring this prompt.

Media type application/json
object
data
required
Array<object>

One engine’s answer to one prompt in one audit run.

object
engine
required

Engine that produced the answer, e.g. “openai”, “gemini”, “perplexity”.

string
promptText
required

The prompt text as it was sent AT RUN TIME. May differ from the prompt’s current text if it has been edited since.

string
queryId
string | null
queryTextHash
string | null
level
string | null
zone
string | null
language
string | null
response

Full engine prose. Null when the request set includeResponseText=false.

string | null
cited
required

The answer cited at least one source.

boolean
brandIsSource

The brand’s own domain appears among the cited sources. Null on rows written before this signal existed.

boolean | null
recommended
required

The answer recommended the brand.

boolean
competitorsMentioned
required
Array<string>
recommendedPosition

The brand’s rank in the answer’s recommendation list (1 = first). Referral axis only.

integer | null
recommendedTotal

Length of that recommendation list. Referral axis only.

integer | null
recommendedList

The recommendation list in order. Referral axis only.

Array<string> | null
listConfidence
string | null
sentiment
string | null
Allowed values: positive neutral negative
score
required
integer | null
<= 100
narrativeAlignment
string | null
alignmentReason

One-line justification for the alignment judgement.

string | null
sources
required
Array<object>

One citation. POSITIONAL: inline [n] markers in response are 1-based indices into the sources array, so entries must never be reordered, deduplicated or filtered out. An entry with url: null is a real citation the engine gave no link for.

object
label
required

What the engine labelled the source, a URL for every engine except Gemini, which gives a domain.

string
url
required

Click-through URL, or null when the engine gave none.

string | null
createdAt
required
string format: date-time
meta
required
object
brandId
string
queryId
string
axis
string
Allowed values: narrative authority referral comparison
auditId

The run that actually answered.

string
completedAt
string format: date-time
includeResponseText
boolean
count
integer

Example

{
"data": [
{
"sentiment": "positive"
}
],
"meta": {
"axis": "narrative"
}
}

Invalid or unknown query parameter.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

Missing, malformed or revoked API key.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

API access is not enabled for this account.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

No such brand or prompt on this account.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

Hourly rate limit exhausted.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}