Get one AI audit record
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/audit/record?key=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://dashboard.quantcdn.io/api/v3/organizations/example/ai/audit/record?key=example' \ --header 'Authorization: Bearer <token>'One record by key (a key from aiAuditRecordsList). A key of another organisation is 400. prompt and response are returned only when the record stores them. The read is recorded in the audit log first (503 when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation machine name
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The record.
object
Normalised fields of any record type. A field with an unexpected type is left out.
object
Error message
Error flag
Inference for a record without recordType; tool_denied, tool_proposal, tool_decision, tool_outcome, slack_bot_api, audit_access, …; unknown for an unreadable object
object
Example
{ "summary": { "message": "The requested resource was not found", "error": true }}The key is not a record key of this organisation.
object
Error message
Error flag
Example
{ "message": "The requested resource was not found", "error": true, "code": "UNAVAILABLE"}PERMISSION_DENIED or SCOPE_REQUIRED
Not found, or archived (older than 365 days).
object
Error message
Error flag
Example
{ "message": "The requested resource was not found", "error": true, "code": "UNAVAILABLE"}UNAVAILABLE: the read could not be recorded, so it was not made.
object
Error message
Error flag
Example
{ "message": "The requested resource was not found", "error": true, "code": "UNAVAILABLE"}