Skip to content

Review links

When a session completes with decision: "review", GET /v1/sessions/{id} includes a review link:

"review": {"status": "pending", "url": "https://verify.rightful.id/r/ses_….<mac>", "expires_at": "…"}

Whoever opens the link sees the review page, with no sign-in. Show it only to your own signed-in reviewers. Do not put it in emails or logs.

  • It is an HMAC over the session id and a random per-session value, under a key derived from the service’s master key. The database alone is not enough to forge one.
  • It works for the workflow’s review.link_days after completion (7 by default, at most 14).
  • It stops working as soon as the session is erased.
  • Read it from the session each time you need it rather than storing it.

The page shows:

  • the reason in plain words;
  • every check and its outcome;
  • your reference for the person (namespace / subject_ref) and the session metadata;
  • any images the workflow keeps (see evidence). They stay hidden until the reviewer chooses to see them, and each view counts as evidence.download.

The reviewer can Approve or Decline, with their name and a note if they want. The first decision is final. Afterwards review reads:

{"status": "done", "decision": "approved", "by": "…", "note": "…", "at": "…"}

Set review.decide_in: "app" in the workflow to show the checks and images on the page without the buttons. Your app then records its own reviewer’s decision with POST /v1/sessions/{id}/review, so your audit trail holds the decision of record. That endpoint also works with decide_in: "page"; whichever decision comes first wins.

The page refuses to be framed unless the workflow lists your origins in review.allowed_origins. With them listed:

<iframe src="{review.url}" referrerpolicy="no-referrer"></iframe>

The page sends no-store, no-referrer and noindex headers, runs no script and loads nothing from other hosts. It follows the reviewer’s light or dark setting and works in a frame about 900px wide. An expired link shows an “expired” page that can still be framed on your origins.

A review nobody decides before the link expires stays review for good. Make pending reviews visible to your reviewers promptly. Retained images are deleted on their own schedule regardless.