Get a report
const url = 'https://api.recomention.com/v1/reports/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.recomention.com/v1/reports/example \ --header 'Authorization: Bearer <token>'The full report as JSON: scores, competitors, sources, the fix list and every answer. Only the owner’s key can read it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The report.
object
object
The report page.
A test run with made-up answers. Draw no conclusions from it.
Engines that did not run, and why. Never scored as zero.
object
An answer engine.
object
object
object
object
An answer engine.
The call failed. A failed call is in no count — never a run that did not mention the product.
object
object
Example
{ "report": { "status": "PENDING", "funding": "BYOK", "engines": [ { "engine": "OPENAI" } ], "enginesSkipped": [ { "engine": "OPENAI" } ], "sources": [ { "engines": [ "OPENAI" ] } ], "actionPlan": [ { "effort": "low" } ], "questions": [ { "answers": [ { "engine": "OPENAI" } ] } ] }}Missing, malformed, unknown or revoked API key.
object
What went wrong, in plain words. Never repeats a submitted secret.
Request fields to fix (400).
Seconds to wait before retrying (429).
Which plan limit refused a start: plan, projects, reportsPerMonth, perDay, concurrent.
The report’s status, when it explains the refusal (409).
Example generated
{ "error": "example", "fields": [ "example" ], "retryAfterSeconds": 1, "limit": "example", "status": "example"}Not found. Someone else’s report answers the same as a missing one.
object
What went wrong, in plain words. Never repeats a submitted secret.
Request fields to fix (400).
Seconds to wait before retrying (429).
Which plan limit refused a start: plan, projects, reportsPerMonth, perDay, concurrent.
The report’s status, when it explains the refusal (409).
Example generated
{ "error": "example", "fields": [ "example" ], "retryAfterSeconds": 1, "limit": "example", "status": "example"}Rate limited. Wait Retry-After seconds.
object
What went wrong, in plain words. Never repeats a submitted secret.
Request fields to fix (400).
Seconds to wait before retrying (429).
Which plan limit refused a start: plan, projects, reportsPerMonth, perDay, concurrent.
The report’s status, when it explains the refusal (409).
Example generated
{ "error": "example", "fields": [ "example" ], "retryAfterSeconds": 1, "limit": "example", "status": "example"}Headers
Section titled “Headers”Seconds to wait.
Requests allowed in the window.
Requests left in the window (0 on a 429).
Seconds until the window resets.
A dependency is briefly unavailable. Retry after Retry-After seconds.
object
What went wrong, in plain words. Never repeats a submitted secret.
Request fields to fix (400).
Seconds to wait before retrying (429).
Which plan limit refused a start: plan, projects, reportsPerMonth, perDay, concurrent.
The report’s status, when it explains the refusal (409).
Example generated
{ "error": "example", "fields": [ "example" ], "retryAfterSeconds": 1, "limit": "example", "status": "example"}Headers
Section titled “Headers”Seconds to wait.