Skip to main content
Veyndi AML
Documentation contents

API reference

Assistance

8 operations in this area of the contract. Every one declares the permission it requires.

Contract version 0.3.0All areas

Operations

POST/v1/alerts/{resourceID}/ai-explanation

Generate an evidence-bound alert_explanation for human review

Required permission: cases.case.writeexplainAlertWithAI

Requires monitoring.alert.read in addition to the declared cases.case.write permission. Generation persists a governed invocation; read-only reviewers can inspect retained provenance.

Show parameters and responses

Parameters

NameInTypeDescription
resourceIDrequiredpathstring—

Responses

  • 201Draft only; acceptance is a separate human actionAIAssistance
  • 409Assistance disabled or governance or evidence unavailable
  • 503Provider failed or output did not pass evidence validation
POST/v1/alerts/ai-filters

Generate an evidence-bound search_filters for human review

Required permission: cases.case.writeproposeAlertFiltersWithAI

Requires cases.case.write in addition to monitoring.alert.read; prepares a governed model invocation without executing the proposed filters.

Show parameters and responses

Responses

  • 201Draft only; acceptance is a separate human actionAIAssistance
  • 409Assistance disabled or governance or evidence unavailable
  • 503Provider failed or output did not pass evidence validation
POST/v1/cases/{resourceID}/ai-handover

Generate an evidence-bound case_handover for human review

Required permission: cases.case.writedraftCaseHandoverWithAI

Requires cases.case_content.read in addition to the declared cases.case.write permission. Generation persists a governed invocation; read-only reviewers can inspect retained provenance.

Show parameters and responses

Parameters

NameInTypeDescription
resourceIDrequiredpathstring—

Responses

  • 201Draft only; acceptance is a separate human actionAIAssistance
  • 409Assistance disabled or governance or evidence unavailable
  • 503Provider failed or output did not pass evidence validation
POST/v1/cases/{resourceID}/ai-handover/{invocationID}/accept

Accept the exact saved AI draft and record human authorship

Required permission: cases.case.writeacceptAICaseHandover
Show parameters and responses

Parameters

NameInTypeDescription
resourceIDrequiredpathstring—
invocationIDrequiredpathstring—

Responses

  • 201Saved note or immutable report successor, pending independent report approvalobject
  • 409Already accepted or evidence or approval changed
GET/v1/cases/{resourceID}/ai-provenance

Read accepted AI evidence and model provenance, including while inference is disabled

Required permission: cases.case_content.readlistCaseAIAcceptanceProvenance
Show parameters and responses

Parameters

NameInTypeDescription
resourceIDrequiredpathstring—
limitqueryintegerPage size, capped at 200.
cursorquerystringOpaque keyset cursor from a previous response. Offset pagination is deliberately not offered: `OFFSET 500000` is a table scan, and if it were offered it would be used (ADR-0012). Only the collections that document this parameter can be resumed. The rest report `truncated: true` and refuse a cursor rather than silently returning the first page again — see the `truncated` field on the page schemas.

Responses

  • 200Human acceptance and exact evidence/model referencesAIAcceptanceProvenancePage
POST/v1/reports/{resourceID}/ai-narrative

Generate an evidence-bound str_narrative for human review

Required permission: reporting.report.generatedraftReportNarrativeWithAI
Show parameters and responses

Parameters

NameInTypeDescription
resourceIDrequiredpathstring—

Responses

  • 201Draft only; acceptance is a separate human actionAIAssistance
  • 409Assistance disabled or governance or evidence unavailable
  • 503Provider failed or output did not pass evidence validation
POST/v1/reports/{resourceID}/ai-narrative/{invocationID}/accept

Accept the exact saved AI draft and record human authorship

Required permission: reporting.report.generateacceptAIReportNarrative
Show parameters and responses

Parameters

NameInTypeDescription
resourceIDrequiredpathstring—
invocationIDrequiredpathstring—

Responses

  • 201Saved note or immutable report successor, pending independent report approvalobject
  • 409Already accepted or evidence or approval changed
GET/v1/reports/{resourceID}/ai-provenance

Read accepted AI evidence and model provenance, including while inference is disabled

Required permission: reporting.report_content.readlistReportAIAcceptanceProvenance
Show parameters and responses

Parameters

NameInTypeDescription
resourceIDrequiredpathstring—
limitqueryintegerPage size, capped at 200.
cursorquerystringOpaque keyset cursor from a previous response. Offset pagination is deliberately not offered: `OFFSET 500000` is a table scan, and if it were offered it would be used (ADR-0012). Only the collections that document this parameter can be resumed. The rest report `truncated: true` and refuse a cursor rather than silently returning the first page again — see the `truncated` field on the page schemas.

Responses

  • 200Human acceptance and exact evidence/model referencesAIAcceptanceProvenancePage