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
/v1/iam/service-accounts/exportExport complete filtered metadata as CSV or Excel
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 responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
formatrequired | query | csv | xlsx | — |
status | query | active | suspended | revoked | — |
sort | query | id | id_asc | id_desc | — |
Responses
200Complete filtered metadata with audited SHA-256 and download disposition400—403—503—
/v1/meThe caller's identity, capabilities and tenant branding
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 responsesHide parameters and responses
Responses
200Caller contextMe401—403—
/v1/me/notification-preferencesRead personal notification preferences
Show parameters and responsesHide parameters and responses
Responses
200Current preferences and email availabilityNotificationPreferences403—
/v1/me/notification-preferencesUpdate personal notification preferences
Show parameters and responsesHide parameters and responses
Responses
200Saved preferences and email availabilityNotificationPreferences400—403—422—
/v1/me/notificationsList notifications visible to the current user
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 responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | Page size, capped at 200. |
cursor | query | string | Opaque 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. |
sort | query | created_at_desc | created_at_asc | — |
read | query | read | unread | — |
event_type | query | string | Exact 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 orderNotificationPage403—
/v1/me/notifications/{notificationID}/readMark the current user's notification read
Show parameters and responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
notificationIDrequired | path | string | — |
Responses
200Read state recordedobject403—404—
/v1/me/notifications/exportExport complete filtered metadata as CSV or Excel
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 responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
formatrequired | query | csv | xlsx | — |
read | query | read | unread | — |
event_type | query | string | Exact retained event key without normalization |
sort | query | created_at_desc | created_at_asc | — |
Responses
200Complete filtered metadata with audited SHA-256 and download disposition400—403—503—
/v1/me/session/revokeRevoke the current interactive authentication session
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 responsesHide parameters and responses
Responses
204Session revoked401Session already expired or revoked403An interactive session is required
/v1/searchSearch 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 responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
kind | query | customer | account | hit | case | report | alert | Narrow to an authorized record family. |
report_status | query | approved | Requires kind=report; narrows the picker to reviewed approved artifacts. |
qrequired | query | string | — |
limit | query | integer | — |
Responses
200Successful operationSearchResultPage403—
/v1/work-inboxPersonal 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 responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
kind | query | alert | case | kyc_review | approval | case_task | screening_hit | report | onboarding_application | — |
limit | query | integer | Page size, capped at 200. |
cursor | query | string | Opaque 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
/v1/work-inbox/{kind}/{itemID}/readShow parameters and responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
kindrequired | path | alert | case | kyc_review | approval | case_task | screening_hit | report | onboarding_application | — |
itemIDrequired | path | string | — |
Responses
204Work item read marker updated404Work item unavailable to this user
/v1/workspace/{kind}Private to the current user and tenant; module capabilities are checked on every request. Responses are not cached.
Show parameters and responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
kindrequired | path | onboarding | case_note | report_narrative | view | — |
limit | query | integer | Page size, capped at 200. |
cursor | query | string | Opaque 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 operationWorkspaceDocumentPage403—
/v1/workspace/{kind}/{key}Private to the current user and tenant; module capabilities are checked on every request. Responses are not cached.
Show parameters and responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
kindrequired | path | onboarding | case_note | report_narrative | view | — |
keyrequired | path | string | — |
Responses
200Successful operationWorkspaceDocument403—
/v1/workspace/{kind}/{key}Private to the current user and tenant; module capabilities are checked on every request. Responses are not cached.
Show parameters and responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
kindrequired | path | onboarding | case_note | report_narrative | view | — |
keyrequired | path | string | — |
Responses
200Successful operationWorkspaceDocument403—
/v1/workspace/{kind}/{key}Private to the current user and tenant; module capabilities are checked on every request. Responses are not cached.
Show parameters and responsesHide parameters and responses
Parameters
| Name | In | Type | Description |
|---|---|---|---|
kindrequired | path | onboarding | case_note | report_narrative | view | — |
keyrequired | path | string | — |
revisionrequired | query | integer | — |
Responses
204Document discarded409Revision conflict