Skip to main content
Veyndi AML
Documentation contents

API reference

Identity

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

Contract version 0.3.0All areas

Operations

GET/v1/iam/service-accounts/export

Export complete filtered metadata as CSV or Excel

Required permission: iam.service_account.manageexportServiceAccountRegister

The same authorized list reader walks one tenant repeatable-read snapshot. Personal notifications remain recipient-specific and respect permission/preference filters. Starts at the first row and refuses cursor input. Existing 10,000-row and 32 MiB limits apply; capacity errors return no partial file. The artifact digest and row count are audited before bytes leave. CSV formulas are escaped and Excel cells are text. Private notification titles/resource identities/links and service account descriptions, display names and all credential metadata are excluded before JSON capture. This is operational metadata, not a credential recovery path. Columns: id, key, status, role_keys, expires_at, revoked_at, last_used_at, created_at, updated_at.

Show parameters and responses

Parameters

NameInTypeDescription
formatrequiredquerycsv | xlsx—
statusqueryactive | suspended | revoked—
sortqueryid | id_asc | id_desc—

Responses

  • 200Complete filtered metadata with audited SHA-256 and download disposition
  • 400—
  • 403—
  • 503—
GET/v1/me

The caller's identity, capabilities and tenant branding

Required permission: authenticatedgetMe

The frontend renders its navigation from this rather than from a hardcoded role map, which is how an analyst and an executive see materially different applications from the same build (BRD §4.1). The permission list is advisory to the UI only: every request is still authorized server-side.

Show parameters and responses

Responses

  • 200Caller contextMe
  • 401—
  • 403—
GET/v1/me/notification-preferences

Read personal notification preferences

Required permission: authenticatedgetNotificationPreferences
Show parameters and responses

Responses

  • 200Current preferences and email availabilityNotificationPreferences
  • 403—
PUT/v1/me/notification-preferences

Update personal notification preferences

Required permission: authenticatedsaveNotificationPreferences
Show parameters and responses

Responses

  • 200Saved preferences and email availabilityNotificationPreferences
  • 400—
  • 403—
  • 422—
GET/v1/me/notifications

List notifications visible to the current user

Required permission: authenticatedlistNotifications

Filters run before the page limit. Cursors bind tenant, current recipient (for notifications), route, filters and global order. Old unbound cursors must restart.

Show parameters and responses

Parameters

NameInTypeDescription
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.
sortquerycreated_at_desc | created_at_asc—
readqueryread | unread—
event_typequerystringExact retained event key without new normalization or length restriction. Empty selects all event types.

Responses

  • 200Current recipient and permission-filtered notification page in selected global orderNotificationPage
  • 403—
POST/v1/me/notifications/{notificationID}/read

Mark the current user's notification read

Required permission: authenticatedmarkNotificationRead
Show parameters and responses

Parameters

NameInTypeDescription
notificationIDrequiredpathstring—

Responses

  • 200Read state recordedobject
  • 403—
  • 404—
GET/v1/me/notifications/export

Export complete filtered metadata as CSV or Excel

Required permission: authenticatedexportPersonalNotificationMetadata

The same authorized list reader walks one tenant repeatable-read snapshot. Personal notifications remain recipient-specific and respect permission/preference filters. Starts at the first row and refuses cursor input. Existing 10,000-row and 32 MiB limits apply; capacity errors return no partial file. The artifact digest and row count are audited before bytes leave. CSV formulas are escaped and Excel cells are text. Private notification titles/resource identities/links and service account descriptions, display names and all credential metadata are excluded before JSON capture. This is operational metadata, not a credential recovery path. Columns: id, event_type, resource_type, created_at, read_at.

Show parameters and responses

Parameters

NameInTypeDescription
formatrequiredquerycsv | xlsx—
readqueryread | unread—
event_typequerystringExact retained event key without normalization
sortquerycreated_at_desc | created_at_asc—

Responses

  • 200Complete filtered metadata with audited SHA-256 and download disposition
  • 400—
  • 403—
  • 503—
POST/v1/me/session/revoke

Revoke the current interactive authentication session

Required permission: authenticatedrevokeInteractiveSession

Audits and revokes the current verified issuer/subject/authentication-time binding across API replicas. Token refresh from the same authentication event cannot revive it. Machine credentials are refused.

Show parameters and responses

Responses

  • 204Session revoked
  • 401Session already expired or revoked
  • 403An interactive session is required
GET/v1/search
Required permission: authenticatedsearchRecords

Search customers, account references, screening hits, cases, reports and alert typologies. Exact BVN/NIN lookup uses tenant-keyed blind indexes; search audit retains only a keyed query digest. Each record kind is independently authorized. Restricted and erased subjects are excluded. Identifier values are never searched. Results report truncation when the limit is reached.

Show parameters and responses

Parameters

NameInTypeDescription
kindquerycustomer | account | hit | case | report | alertNarrow to an authorized record family.
report_statusqueryapprovedRequires kind=report; narrows the picker to reviewed approved artifacts.
qrequiredquerystring—
limitqueryinteger—

Responses

  • 200Successful operationSearchResultPage
  • 403—
GET/v1/work-inbox
Required permission: authenticatedlistWorkInbox

Personal assignments and approval work. Data comes from current authorized module records, refreshed every 30 seconds; failures are reported rather than shown as empty work. Read markers are private to the current user.

Show parameters and responses

Parameters

NameInTypeDescription
kindqueryalert | case | kyc_review | approval | case_task | screening_hit | report | onboarding_application—
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

  • 200Current personal workWorkInboxPage
POST/v1/work-inbox/{kind}/{itemID}/read
Required permission: authenticatedmarkWorkInboxRead
Show parameters and responses

Parameters

NameInTypeDescription
kindrequiredpathalert | case | kyc_review | approval | case_task | screening_hit | report | onboarding_application—
itemIDrequiredpathstring—

Responses

  • 204Work item read marker updated
  • 404Work item unavailable to this user
GET/v1/workspace/{kind}
Required permission: authenticatedlistWorkspaceDocuments

Private to the current user and tenant; module capabilities are checked on every request. Responses are not cached.

Show parameters and responses

Parameters

NameInTypeDescription
kindrequiredpathonboarding | case_note | report_narrative | view—
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

  • 200Successful operationWorkspaceDocumentPage
  • 403—
GET/v1/workspace/{kind}/{key}
Required permission: authenticatedgetWorkspaceDocument

Private to the current user and tenant; module capabilities are checked on every request. Responses are not cached.

Show parameters and responses

Parameters

NameInTypeDescription
kindrequiredpathonboarding | case_note | report_narrative | view—
keyrequiredpathstring—

Responses

  • 200Successful operationWorkspaceDocument
  • 403—
PUT/v1/workspace/{kind}/{key}
Required permission: authenticatedsaveWorkspaceDocument

Private to the current user and tenant; module capabilities are checked on every request. Responses are not cached.

Show parameters and responses

Parameters

NameInTypeDescription
kindrequiredpathonboarding | case_note | report_narrative | view—
keyrequiredpathstring—

Responses

  • 200Successful operationWorkspaceDocument
  • 403—
DELETE/v1/workspace/{kind}/{key}
Required permission: authenticateddiscardWorkspaceDocument

Private to the current user and tenant; module capabilities are checked on every request. Responses are not cached.

Show parameters and responses

Parameters

NameInTypeDescription
kindrequiredpathonboarding | case_note | report_narrative | view—
keyrequiredpathstring—
revisionrequiredqueryinteger—

Responses

  • 204Document discarded
  • 409Revision conflict