Skip to content

Review requests and corrections

The author of a version, or a tenant administrator, asks one tenant member who may approve to review and sign it. The reviewer gets an item in their inbox and, with email turned on, an email. All routes are on the management API under /v1/tenants/{tenant}/semantic/… and need a token whose whole delegation chain is a person.

Members are read from the tenant’s member directory, a SCIM 2.0 service of your identity provider. The platform keeps no user directory of its own.

  • A reviewer must be an approver: a member whose roles include TENANT_ADMIN. It is never the version’s author and never the caller.
  • GET …/redaction-versions/{name}/reviewer-candidates lists the eligible members with their names and addresses.
  • If the directory is not configured or cannot answer, creating a request is refused (503 E0503, member_directory_unavailable): a member is never guessed.

Configure the directory with memberDirectory.* (see Configuration).

POST …/redaction-versions/No%20contact%20data%20%C2%B7%20v2/review-requests
{"reviewer": "reviewer@example.test", "message": "Please look at the scanned invoices first."}
  • message is optional, at most 500 characters.
  • A version has at most one open request. To change the reviewer, create a new request with replaces: <open request id>; the old one is cancelled in the same transaction.
  • Only a pending version that was not signed or returned can be reviewed.

A request’s state is derived from what happened to the version, never stored as such:

State When
open Created, and the reviewer has not decided on any sample document yet.
in_progress The reviewer recorded a decision on the validation sample.
signed An approval of the version, an approve-base or an activation, by any approver.
returned The version was returned, or rejected by someone who is not its author.
cancelled Cancelled, replaced by a new request, or the version was deleted.

The request shows the reviewer’s progress through the validation sample (reviewed of total, last activity). A sign-off or a return notifies the requester, and the version’s author when that is another person.

  • :remind notifies the reviewer again, at most once every 24 hours (429 E0295 remind_too_soon otherwise, with Retry-After).
  • :cancel closes the request. The reviewer is not emailed about it.

Each member has an inbox of notifications: GET /v1/tenants/{tenant}/notifications, :read and :read-all. GET …/semantic/review-requests?assignee=me lists the requests waiting for the caller. Kinds: a review requested, a reminder, a version signed, a version returned, a correction to review, and a sample document removed at its source. Nobody is notified of their own action.

Each member can choose the language of their own notification email:

Route Answer
GET /v1/tenants/{tenant}/notifications/preferences {"locale": "ca"}: the language the caller chose, null when none.
PUT /v1/tenants/{tenant}/notifications/preferences {"locale": …} The language as stored. Takes a language tag (ca, es-ES, pt_BR); only its primary subtag is kept, in lower case. null clears it. Anything else is 422 E0102.

Any member may call it, for their own preference only. A management UI sends the language a member picks for its interface, so their email follows it. The language is stored even when no email text exists for it; the email then falls back as described below.

With email.enabled, every notification is also emailed through your SMTP relay. Sending goes through an outbox with retries and exponential backoff, so a request never waits for the relay.

  • Content. Who acted, the version and its collection, the requester’s optional message and a link to the version’s page in your management UI (email.versionLinkTemplate). An email never carries document content, document ids, sample notes or return comments.

  • Language. The first of these that is listed in email.locales:

    1. the language the recipient chose for themselves (preference);
    2. the recipient’s directory language (preferredLanguage, else locale).

    Otherwise the email is written in email.defaultLocale (en by default). No request header is used. Built-in texts exist for English, Spanish, Catalan, German, French, Italian and Polish, and email.locales lists all seven by default. email.templatesConfigMap overrides texts or adds a language; a language added this way must also be listed in email.locales.

  • Outcomes. A permanent refusal or exhausted retries end as undeliverable; a member without an address gets the inbox item only. Every final outcome is audited with the recipient as a pseudonym.

A version a reviewer returned, or rejected (by someone other than its author), is corrected by a new version created with correctionOf: <name> and the new definition. Only its author or a tenant administrator can create it, and only one correction per version.

  • Lineage. The correction continues the corrected version’s family and records it as its parent; the corrected version lists the correction.
  • Same documents. The correction’s validation sample takes the corrected version’s sample documents in the same order, processed for the new definition. Each document shows the previous verdict, note and pins as reference only: they never count towards the sign-off.
  • What the reviewer said. GET …/redaction-versions/{name}/correction-context answers the return comment and notes, or the rejection, read-only.
  • Asked automatically. When the correction’s materialization completes with no document left failed, the person who returned or rejected the corrected version is asked to review it (a request of kind correction). While documents are still failed, nothing is asked and the author is told.
  • Retired on signature. When the correction is signed, the corrected version is retired (superseded_by_correction) and stays as history until someone deletes it.