Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Security and governance — API reference

The compliance report, rule-based data-leak prevention (free; no AI reads anything), the tamper-evident hash-chained audit trail and its signed anchors, SIEM export (signed NDJSON / CEF download and HTTPS forwarding), the account's own encryption keys (rotate, destroy retired versions), device trust and the secrets inventory. Counts and metadata only — never a person's mail or files. Scopes `governance:read` / `governance:write`; the role decides (`governance:manage`, or `audit:read` to read).

← All groups
GET /api/v1/audit/anchor

The audit chain's signed anchor

Keep it outside Record Sender (a SIEM, a vault, a printout); later, POST it to /audit/verify.

Scope: governance:read · governance.anchor

Responses 200 · 401 · 403 · 429

200 Success

anchor * object
fields
account_id string (uuid)
at string (date-time)
hash string
seq integer
signature string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/audit/export

Export the audit trail (signed)

NDJSON or CEF lines in chain order, then `# signature: hmac-sha256=…` and `# chain-head: …` lines.

Scope: governance:read · governance.audit_export

ParameterInTypeDescription
formatquery"ndjson" | "cef"
from *querystring (date)
to *querystring (date)at most a year after from
Responses 200 · 401 · 403 · 429

200 Success

string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/audit/verify

Verify the audit chain

Recomputes every link. With `anchor` (from GET /audit/anchor, kept outside), also checks the chain still reaches it — entries cut off the end are detected.

Scope: governance:read · Idempotency-Key · governance.verify_chain

Request body application/json
anchor object an anchor
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

chain * object
fields
broken object | null seq, id, reason: gap | link_mismatch | hash_mismatch | anchor_missing
checked integer
head_hash string | null
head_seq integer
ok boolean
unchained integer entries written before the chain started

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 bad_anchor

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

GET /api/v1/devices

Members' devices

Devices signed in to this account (never the members' other accounts), with their trust mark; needs `governance:manage`.

Scope: governance:read · governance.devices

Responses 200 · 401 · 403 · 429

200 Success

devices * [object]
posture * object

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

PUT /api/v1/devices/{user_id}/{fingerprint}

Trust, block or clear a device

Blocking signs the device out of the account and keeps it out; the member is told why.

Scope: governance:write · governance.mark_device

ParameterInTypeDescription
user_id *pathstring (uuid)
fingerprint *pathstring
Request body application/json
reason string required to block
state * "trusted" | "blocked" | "unknown"
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

ok boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 cannot_block_yourself

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

GET /api/v1/dlp/detectors

The DLP detectors

Scope: governance:read · governance.detectors

Responses 200 · 401 · 403 · 429

200 Success

detectors * [object]
fields
classification "confidential" | "restricted"
description string
key string
name string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/dlp/incidents

DLP incidents

The rule, the person, the channel, the outcome (audited, warned, sent_after_warning, blocked) and detector counts — never the text, subject or recipients.

Scope: governance:read · paginated · governance.incidents

ParameterInTypeDescription
daysqueryinteger1–365, default 30
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
incidents * [object]
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/dlp/policies

Data-leak prevention rules

Scope: governance:read · paginated · governance.policies

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
policies * [DlpPolicy]
fields

DlpPolicy

action "audit" | "warn" | "block" audit: send and record; warn: the sender may send anyway; block: never send
detectors ["payment_card" | "iban" | "us_ssn" | "secret_key" | "bulk_emails" | "classified_marking"]
enabled boolean
id string (uuid)
inserted_at string (date-time)
keywords [string] Whole words, any case (up to 50)
min_matches integer Matches needed before the rule acts (default 1)
name string
recipients "external" | "all" external: only when a recipient is outside the organization and its federated partners

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/dlp/policies

Add a DLP rule

Scope: governance:write · Idempotency-Key · governance.create_policy

Request body application/json
action * "audit" | "warn" | "block" audit: send and record; warn: the sender may send anyway; block: never send
detectors ["payment_card" | "iban" | "us_ssn" | "secret_key" | "bulk_emails" | "classified_marking"]
enabled boolean
keywords [string] Whole words, any case (up to 50)
min_matches integer Matches needed before the rule acts (default 1)
name * string
recipients "external" | "all" external: only when a recipient is outside the organization and its federated partners
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

policy * DlpPolicy
fields

DlpPolicy

action "audit" | "warn" | "block" audit: send and record; warn: the sender may send anyway; block: never send
detectors ["payment_card" | "iban" | "us_ssn" | "secret_key" | "bulk_emails" | "classified_marking"]
enabled boolean
id string (uuid)
inserted_at string (date-time)
keywords [string] Whole words, any case (up to 50)
min_matches integer Matches needed before the rule acts (default 1)
name string
recipients "external" | "all" external: only when a recipient is outside the organization and its federated partners

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/dlp/policies/{id}

Delete a DLP rule

Scope: governance:write · governance.delete_policy

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/dlp/policies/{id}

Change a DLP rule

Scope: governance:write · governance.update_policy

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
action "audit" | "warn" | "block" audit: send and record; warn: the sender may send anyway; block: never send
detectors ["payment_card" | "iban" | "us_ssn" | "secret_key" | "bulk_emails" | "classified_marking"]
enabled boolean
keywords [string] Whole words, any case (up to 50)
min_matches integer Matches needed before the rule acts (default 1)
name string
recipients "external" | "all" external: only when a recipient is outside the organization and its federated partners
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

policy * DlpPolicy
fields

DlpPolicy

action "audit" | "warn" | "block" audit: send and record; warn: the sender may send anyway; block: never send
detectors ["payment_card" | "iban" | "us_ssn" | "secret_key" | "bulk_emails" | "classified_marking"]
enabled boolean
id string (uuid)
inserted_at string (date-time)
keywords [string] Whole words, any case (up to 50)
min_matches integer Matches needed before the rule acts (default 1)
name string
recipients "external" | "all" external: only when a recipient is outside the organization and its federated partners

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/dlp/scan

What the detectors find in a text

Nothing is stored or logged. Answers detector → count and the classification the text deserves.

Scope: governance:read · Idempotency-Key · governance.scan

Request body application/json
text * string
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

classification "confidential" | "restricted" | nil
found * object detector → count

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/governance/report

The compliance report

Read now from live data: retention, legal holds, data-subject requests, DLP, the audit chain, keys, SIEM, devices, secrets, members and the data region — each `ok` or `attention` with the reason.

Scope: governance:read · governance.report

Responses 200 · 401 · 403 · 429

200 Success

report * object account_id, account, generated_at, attention, sections: [{key, name, status, reason, figures}]

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/governance/settings

Governance settings

Scope: governance:read · governance.settings

Responses 200 · 401 · 403 · 429

200 Success

settings * object
fields
device_policy "open" | "notify"
key_rotation_days integer
secret_rotation_days integer
stale_session_days integer

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

PUT /api/v1/governance/settings

Change governance settings

Scope: governance:write · governance.put_settings

Request body application/json
device_policy "open" | "notify"
key_rotation_days integer
secret_rotation_days integer
stale_session_days integer
Responses 200 · 401 · 402 · 403 · 422 · 429

200 Success

settings * object
fields
device_policy "open" | "notify"
key_rotation_days integer
secret_rotation_days integer
stale_session_days integer

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/keys

The account's encryption keys

Scope: governance:read · governance.keys

Responses 200 · 401 · 403 · 429

200 Success

keys * [AccountKey]
fields

AccountKey

destroyed_at string | null
fingerprint string
id string (uuid)
inserted_at string (date-time)
provider "local"
retired_at string | null
status "active" | "retired" | "destroyed"
version integer
providers * [object]
rotation * object active, age_days, due, rotation_days

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/keys/rotate

Create or rotate the account key

Scope: governance:write · Idempotency-Key · governance.rotate_key

Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

key * AccountKey
fields

AccountKey

destroyed_at string | null
fingerprint string
id string (uuid)
inserted_at string (date-time)
provider "local"
retired_at string | null
status "active" | "retired" | "destroyed"
version integer

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/keys/{id}

Destroy a retired key version

Crypto-shredding: anything encrypted with that version can never be read again. The active version can't be destroyed.

Scope: governance:write · governance.destroy_key

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

key * AccountKey
fields

AccountKey

destroyed_at string | null
fingerprint string
id string (uuid)
inserted_at string (date-time)
provider "local"
retired_at string | null
status "active" | "retired" | "destroyed"
version integer

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 not_retired

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

GET /api/v1/secrets

Secrets and certificates

Every credential and key the account keeps — kind, name, hint, age, last use, rotation due — never a value.

Scope: governance:read · governance.secrets

Responses 200 · 401 · 403 · 429

200 Success

secrets * [object]
summary * object

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/siem/destinations

SIEM destinations

Scope: governance:read · governance.destinations

Responses 200 · 401 · 403 · 429

200 Success

destinations * [SiemDestination]
fields

SiemDestination

cursor_seq integer the last chain entry sent
enabled boolean
failures integer
format "ndjson" | "cef"
id string (uuid)
last_error string | null
last_sent_at string | null
last_status "ok" | "failed" | nil
name string
url string (uri)

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/siem/destinations

Add a SIEM destination

An https:// URL on the public internet. Entries are POSTed every minute in chain order with `X-RecordSender-Signature: t=…,v1=…` (HMAC-SHA256 of `t.body`). The secret is shown once.

Scope: governance:write · Idempotency-Key · governance.create_destination

Request body application/json
format "ndjson" | "cef"
name * string
start "now" | "beginning"
url * string (uri)
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

destination * SiemDestination
fields

SiemDestination

cursor_seq integer the last chain entry sent
enabled boolean
failures integer
format "ndjson" | "cef"
id string (uuid)
last_error string | null
last_sent_at string | null
last_status "ok" | "failed" | nil
name string
url string (uri)
secret * string

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 invalid_url

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

DELETE /api/v1/siem/destinations/{id}

Remove a SIEM destination

Scope: governance:write · governance.delete_destination

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/siem/destinations/{id}

Turn a SIEM destination on or off

Scope: governance:write · governance.update_destination

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
enabled * boolean
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

destination * SiemDestination
fields

SiemDestination

cursor_seq integer the last chain entry sent
enabled boolean
failures integer
format "ndjson" | "cef"
id string (uuid)
last_error string | null
last_sent_at string | null
last_status "ok" | "failed" | nil
name string
url string (uri)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/siem/destinations/{id}/send

Send to a SIEM destination now

Scope: governance:write · Idempotency-Key · governance.send_destination

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429 · 502

200 Success

sent * integer

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

502 delivery_failed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)