Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Record a report/job failure

POST/v1/private/report-failuresRecord a report/job failure

Appends a failure row keyed by (project_id, type). Append-only — never overwrites earlier failures.

Request body

application/json
objectReportFailure
created_atstring · date-time
created_bystring
detailstring
idstring · uuid
last_updated_atstring · date-time
last_updated_bystring
project_idstring · uuidrequired
reasonstringrequired

maxLength 255 · minLength 0

typestringrequired

one of "agent_insights"

Example request
{
  "detail": "string",
  "project_id": "00000000-0000-0000-0000-000000000000",
  "reason": "string",
  "type": "agent_insights"
}

Responses

201Created

Headers

Location
400Bad Requestapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
401Unauthorizedapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu