Get a prompt and its latest score
const url = 'https://api.traaker.ai/api/public/v1/brands/example/prompts/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.traaker.ai/api/public/v1/brands/example/prompts/example \ --header 'Authorization: Bearer <token>'Authorizations
Section intitulée « Authorizations »Parameters
Section intitulée « Parameters »Path Parameters
Section intitulée « Path Parameters »The prompt’s queryId. The axis is resolved automatically.
Responses
Section intitulée « Responses »OK
object
object
The prompt as it is currently configured.
Stable hash of the normalised prompt text. Changes when the text is edited.
Visibility-ladder level. Null when unset.
Geographic zone, when the prompt is localised.
ISO-639-1 code the prompt is asked in.
How the prompt was created, e.g. “generated”, “manual”.
Score from the most recent completed audit that actually measured this prompt. Null if none of the last 5 did.
Cross-engine rollup for one prompt in one audit.
object
Cross-engine score, 0–100. Null when absent (unscored classified row).
How many engines contributed to this score.
Qualitative alignment with the brand narrative.
Share of engines that cited any source, 0–1.
Share of engines that cited the brand’s own domain, 0–1.
Share of engines that recommended the brand, 0–1.
Best rank the brand reached in a recommendation list across engines (1 = first). Referral axis only; null on the others.
object
Example
{ "data": { "axis": "narrative", "level": "L1", "status": "active", "latestScore": { "sentiment": "positive" } }}Invalid or unknown query parameter.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}Missing, malformed or revoked API key.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}API access is not enabled for this account.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}No such brand or prompt on this account.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}Hourly rate limit exhausted.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}