Skip to content

Get one AI audit record

GET
/api/v3/organizations/{organisation}/ai/audit/record
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.

organisation
required
string

The organisation machine name

key
required
string
<= 1024 characters

The record.

Media typeapplication/json
object
key
required
string
date
required
string format: date
summary
required

Normalised fields of any record type. A field with an unexpected type is left out.

object
message
required

Error message

string
error
required

Error flag

boolean
recordType
required

Inference for a record without recordType; tool_denied, tool_proposal, tool_decision, tool_outcome, slack_bot_api, audit_access, …; unknown for an unreadable object

string
timestamp
string format: date-time
userId
string
tokenId
string
modelId
string
interface
string
tools
required
Array<string>
decision
string
outcome
string
record
required
object
key
additional properties
any
Example
{
"summary": {
"message": "The requested resource was not found",
"error": true
}
}

The key is not a record key of this organisation.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
error
required
string
code
string
retryable
boolean
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).

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
error
required
string
code
string
retryable
boolean
Example
{
"message": "The requested resource was not found",
"error": true,
"code": "UNAVAILABLE"
}

UNAVAILABLE: the read could not be recorded, so it was not made.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
error
required
string
code
string
retryable
boolean
Example
{
"message": "The requested resource was not found",
"error": true,
"code": "UNAVAILABLE"
}