Workspace · Developers

Developers

The interface an app is built on: a person's released results as cards, the person's own ranges, a timeline and the signed report. The calls on this page run against this copy of VERA, on its invented people.
Release
Asking VERA…
Kind of copy
Asking VERA…
Region
Asking VERA…
curl -sS "$VERA/api/v1/health"Asking VERA…
Invitation
None in this browser
Its last day
No invitation, no day
Sandboxes
Opened by invitation only

A sandbox of your own opens with an invitation from Prepaire. The sample key reads without one. To ask for an invitation, write to Prepaire: info@prepaire.com. Each part that needs a sandbox shows a recorded run, marked as recorded.

Overview

  1. A person's released results, ready to show. Each result comes as a card: the marker, the figure, its unit and the day, read against the person's own range.
  2. The person's own ranges and a timeline. The range VERA has worked out for this one person from the person's own results, and every event of the record in order of time.
  3. The signed report. The laboratory's report as a signed PDF, an HL7 message and a FHIR bundle, with the steps to check its signature on your own machine. On the test copy it is a sample report under a sample seal.

What are you building?

This copy, as it answers now

Release
Asking VERA…
Region
Asking VERA…
App interface
Asking VERA…
Kind of copy
Asking VERA…
The contract and version each answer names
AnswerContract and version
cardsAsking VERA…
personal-rangesAsking VERA…
timelineAsking VERA…
event-tokensAsking VERA…
lab-reportAsking VERA…
sandboxAsking VERA…
sandbox-endAsking VERA…
sandbox-stateAsking VERA…
eventsAsking VERA…
lab-reportsAsking VERA…
catalogueAsking VERA…
compute-personal-rangeAsking VERA…
compute-indicesAsking VERA…
compute-cardiovascular-riskAsking VERA…
compute-kidney-categoryAsking VERA…
normalise-messageAsking VERA…

curl -sS "$VERA/api/twin/v1"Asking VERA…

curl -sS "$VERA/api/v1/health"Asking VERA…

Quickstart

Set these two once in a terminal. The line of step 1 then runs as it stands. Step 2 needs two things more. Its start also reads $VERA_INVITATION, the invitation Prepaire sent your company, which you set on your own machine and this page never prints. And every line after the start carries the key the start answers, not the sample key: set KEY again to the value of key in the start's answer before you send them (in the page, a press of Get a test key prints that line to copy). A later section says what else its own lines need. The address is the one this page is open at; the key is read from this copy's service document as the section opens. A line to copy hands curl the key and the invitation as arguments, which other accounts of the same machine can read while the call runs; the scripts this tab and the API menu give to download hand curl both in a file only your account reads.

export VERA=… asking VERA
export KEY=… asking VERA
  1. Step 1Read a person's results

    One call, with the sample key, reads the released results of Sarah as cards: each result with the person's own range around it. This call ran by itself when the section opened.

    Read Sarah's cards with the sample key

    curl -sS "$VERA/api/twin/v1/subject/cards" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"

    Asking VERA…

    Asking VERA…

  2. Step 2Get a test key of your own and read with it

    A sandbox of your own opens with an invitation from Prepaire. With one, a press sends it and a test key comes back. Then read Mariam's own ranges with that key. Until you run a call yourself, its recorded run stands below, marked as recorded.

    With your invitation, start a sandbox and get a test key of your own

    curl -sS -X POST "$VERA/api/twin/v1/sandbox" -H "VERA-Invitation: $VERA_INVITATION" -H 'content-type: application/json' -d '{"action":"start"}'

    A sandbox of your own opens with an invitation from Prepaire. The sample key reads without one.

    Recorded. Recorded run of 28 Nov 2026, 19:20 GST, commit 414c1d7. Recorded: HTTP 200 in 10 ms · PREPAIRE-TWIN-SANDBOX 2.0.0. Your own run takes its place.

    The key of the recorded run is not in the record: VERA gives a key once, to the caller.
    The end the recorded answer states
    29 Nov 2026, 19:20 GST, if that sandbox was not used again
    People the key reads
    SYN-DEMO-SUBJ-0001, SYN-DEMO-SUBJ-0003, SYN-DEMO-SUBJ-0002
    Views the key reads
    cards, personal-ranges, timeline, event-tokens

    A recording holds no key. A start of your own shows its key here once: VERA keeps its hash. Keep a key on your server, never in an app on a phone or in a browser.

    Read Mariam's own ranges with the key that came back

    curl -sS "$VERA/api/twin/v1/subject/personal-ranges" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0003"

    A sandbox of your own opens with an invitation from Prepaire.

    Recorded. Recorded run of 28 Nov 2026, 19:20 GST, commit 414c1d7. Recorded: HTTP 200 in 14 ms · PREPAIRE-PERSONAL-RANGES 1.3.0. Your own run takes its place.

    22 ranges in this answer, 22 of them set from the person's own results. The answer names each marker by its LOINC code; the words are those of the cards answer of step 1.

  3. Step 3A new result is released: be told, and read again

    With the same key, the laboratory's part: Sarah's sample of another analyser line is run and released in your sandbox. The sample is fixed, with the same values, ids and times in every sandbox; the release and its entry in your numbered feed are yours. The cards then hold the sample's results.

    Release a new sample for Sarah in your sandbox

    curl -sS -X POST "$VERA/api/twin/v1/sandbox" -H "Authorization: Bearer $KEY" -H 'content-type: application/json' -d '{"action":"release","subjectToken":"SYN-DEMO-SUBJ-0001"}'

    A sandbox of your own opens with an invitation from Prepaire.

    Recorded. Recorded run of 28 Nov 2026, 19:20 GST, commit 414c1d7. Recorded: HTTP 200 in 567 ms · PREPAIRE-TWIN-SANDBOX 2.0.0. Your own run takes its place.

    The release
    REL-SAMPLE-20261128060000-1-SRASXA000001
    Analyser line
    sysmex-xr-1000
    State
    released
    Results written
    20
    A repeat of an earlier call
    false
    Events added to your feed
    1 result.released

    Read your feed: the release, numbered, with its signed delivery

    curl -sS "$VERA/api/twin/v1/events?after=0" -H "Authorization: Bearer $KEY"

    A sandbox of your own opens with an invitation from Prepaire.

    Recorded. Recorded run of 28 Nov 2026, 19:20 GST, commit 414c1d7. Recorded: HTTP 200 in 6 ms · PREPAIRE-TWIN-EVENTS 1.0.0. Your own run takes its place.

    Event 1
    result.released · release REL-SAMPLE-20261128060000-1-SRASXA000001 · 28 Nov 2026, 19:20 GST
    Last event's number
    1
    Deliveries sent to an address
    None: a test copy shows each delivery and sends none

    Read Sarah's cards again with your key: the new sample's results are there

    curl -sS "$VERA/api/twin/v1/subject/cards" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"

    A sandbox of your own opens with an invitation from Prepaire.

    Recorded. Recorded run of 28 Nov 2026, 19:20 GST, commit 414c1d7. Recorded: HTTP 200 in 33 ms · PREPAIRE-TWIN-CARDS 1.3.0. Your own run takes its place.

    42 cards and 11 calculated indices in this answer. LOINC codes name the markers.

ThenThe rest of the loop (the signed report and its check, access revoked and granted, the result withdrawn) runs step by step in The whole loop, and as one script on your own machine.

Try it in the page

Choose one of this copy's invented people and a view. The call runs against this copy of VERA as your server would send it, and the answer shows as a table and as the JSON VERA sent.

Person

An invented person of this copy.

Gives the card of each current result of a person: the value with its unit and name, the change from the person's earlier result against the reference change value, and the person's own range.

Key the call carries

The sample key reads only, and is the same for every visitor: every read here runs with it. A sandbox of your own opens with an invitation from Prepaire.

curl -sS "$VERA/api/twin/v1/subject/cards" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: $SUBJECT"

Asking VERA…

The answer shows here.

Dummy patients

VERA's test copy holds 3 invented people and no real person. Each one has a history of earlier results, so a new sample is read against that person's own ranges. A test key reads these people and nobody else.

  • Sarah

    Asking VERA…

    Age today
    Asking VERA…
    Sex on the record
    Asking VERA…
    Earlier results
    Asking VERA…
    Subject token
    SYN-DEMO-SUBJ-0001
    Analyser lines a sample can run on
    • Asking VERA…
    • Asking VERA…
    • Asking VERA…
    • Asking VERA…
  • Mariam

    Asking VERA…

    Age today
    Asking VERA…
    Sex on the record
    Asking VERA…
    Earlier results
    Asking VERA…
    Subject token
    SYN-DEMO-SUBJ-0003
    Analyser lines a sample can run on
    • Asking VERA…
    • Asking VERA…
    • Asking VERA…
    • Asking VERA…
  • Daniel

    Asking VERA…

    Age today
    Asking VERA…
    Sex on the record
    Asking VERA…
    Earlier results
    Asking VERA…
    Subject token
    SYN-DEMO-SUBJ-0002
    Analyser lines a sample can run on
    • Asking VERA…
    • Asking VERA…
    • Asking VERA…
    • Asking VERA…
The analyser lines, and what each one sends
LineTestWhat the analyser sends
Asking VERA…sysmex-xr-1000Asking VERA…Asking VERA…
Asking VERA…sysmex-urine-lineAsking VERA…Asking VERA…
Asking VERA…cobas-c-303Asking VERA…Asking VERA…
Asking VERA…cobas-e-402Asking VERA…Asking VERA…
curl -sS "$VERA/api/v1/sample-run"

Asking VERA…

VERA's three sets of invented subjects, side by side

Three of VERA's interfaces answer on invented subjects. Two of them use the same 3 people; the third uses subjects of its own.

Which invented subjects each interface answers on
InterfaceIts subjectsHow a call names oneRead with a test key of this page
The app interface, /api/twin/v1 (this page)Sarah, Mariam and Daniel: SYN-DEMO-SUBJ-0001SYN-DEMO-SUBJ-0003SYN-DEMO-SUBJ-0002The subject token in the request header VERA-Subject-TokenYes: the cards, the own ranges, the timeline and the event tokens of each
The partner portal's sample partner, /api/partner/v1The same 3 people, by the same tokens (every one begins SYN-DEMO-, which no real order can carry)The same token as subjectRef of a sample in an orderNo: the partner portal gives a sandbox credential of its own
The public API's visit stream, /api/v1/command-center/streamOther invented subjects with no name: SYN-CC-CHECK-0001SYN-CC-AXIOM-0001SYN-CC-TASSO-0001By the scenario in the address; each event states its subjectNo: the stream needs no key, and the app interface refuses these tokens

Connect your own environment

Three things connect your own machine to this copy: a test key, this copy's address, and the calls below. Code written against this test copy changes two values for a production environment: the address, and where the bearer token comes from.

1. Get a test key

A sandbox of your own opens with an invitation from Prepaire. The sample key reads without one. With one, a press here gives a test key: VERA gives it once and keeps only its hash.

No key here: a start with an invitation gives one, once.

No start is sent without an invitation. The list below shows the start as a script sends it.

Lasts
24 hours after its last useEach accepted call starts the 24 hours again. A sandbox also ends when its own key ends it, 7 days after its start, and with its invitation's last day.
Ends, if not used again
Stated when the key is given
Reaches
3 invented peopleNo real person, on any copy.
Reads
cards, own ranges, timeline and event tokensOn this test copy only: a production environment refuses a test key before it reads anything.

2. Set the address and the key

export VERA="…"
export KEY="…"
export VERA_INVITATION="<the invitation Prepaire sent you>"

$KEY is the page's sample key, which reads only and is the same for every visitor. Get a test key above and this line carries yours. $VERA is this copy's address with its base path: every call's address starts with it. $VERA_INVITATION is read by the start alone; write your invitation there yourself, on your own machine: this page never prints it.

3. Copy a call

Each call comes from the one list of tested examples, the list this page itself runs. Run it here, then copy the same line to your machine.

The quickstart's calls
The interface itself
Each person's views, with the sample key
Refusals an app handles
The whole loop with your own key, in this order
The catalogue: what the laboratory's lines report
Calculations on numbers of your own
A test message of your own, read by VERA's own readers

GET /api/twin/v1/subject/cards

Asking VERA…

Paste the line into a shell where VERA and KEY are set (step 2). It prints the answer's body.

 

Call from your server, not from a phone or a browser

A key or a token inside a phone app or a web page can be read by anyone who has the app or opens the page, and whoever holds it reads what your app reads. VERA also sends no header that lets a browser on another website read an answer, so the call belongs on your server, which hands your app only what its screen shows.

Errors

Every answer under api/twin/v1 that is not a 200 has one shape: a status, a code that stays the same, one plain sentence, and the request id, with the same id in the x-request-id header. That holds for an address no call has (404 NOT_FOUND), a method the call does not take (405 METHOD_NOT_ALLOWED, with Allow), an address that cannot be decoded (400 INVALID_ADDRESS) and a request that does not have the contract's form (422 VALIDATION_FAILED, whose issues give each field, a code and one sentence). Every 401 carries WWW-Authenticate. An address ending in / is redirected (308) to the address without it. Decide on the code, never on the words. Below is a refusal as this copy answers it: the first read, sent with no key, when you press Ask VERA.

curl -sS "$VERA/api/twin/v1/subject/cards"

Not asked yet. Below are the fields the contract states for every refusal. Ask VERA sends this call with no key, and this copy's own answer takes their place.

error.code
A stable code, such as TWIN_ACCESS_DENIED. Decide on the code, never on the words.
error.message
One plain sentence.
error.requestId
The request's id, also in the x-request-id answer header: quote it to Prepaire.
error.detail
Not in every refusal. More, where it helps: an object whose fields depend on the code. Three codes of the test helper state theirs as named schemas of this contract, so a client decides on a value and never on the words: INVITATION_REFUSED (InvitationRefusedDetail), INVITATION_SANDBOXES_IN_USE (InvitationSandboxesInUseDetail) and SANDBOX_ENDED (SandboxEndedDetail, when the copy remembers why). Each response of a call names the schema beside its code, under x-vera-codes.
error.issues
Not in every refusal. With VALIDATION_FAILED: what was wrong with the request, field by field.
StatusCodeAnswered whenBy
400BODY_NOT_TAKENThe request declares a body (Content-Length above 0, or Transfer-Encoding) and this call takes none: refused at once, before a byte of the body is read, and the connection is closed.12 calls
422ENCODING_INVALIDThe encoding query holds anything but base64url.10 calls
422VALIDATION_FAILEDThe address asks for the contract in a format other than json (openapi.yaml).GET openapi.json
401AUTH_REQUIREDThe call carries no bearer: send the sample key or a test key of your own.8 calls
401TOKEN_INVALIDThe bearer is not a test key of this copy's form: a test copy accepts its sample key and the test keys it gives, and no other token.13 calls
401SANDBOX_ENDEDNo sandbox is open for this test key: a sandbox ends when its own key ends it (or its own invitation ends it by its id, or a start of its own invitation replaces it), 24 hours after the last call that carried its key, 7 days after its start, at the end of its invitation's last day, and when the copy restarts; the refusal says which when the copy remembers it, in the sentence and in detail.reason, which is one of ended_by_its_key, ended_by_its_invitation, replaced_by_its_invitation, idle, seven_days, invitation_ended (the schema SandboxEndedDetail). A key the copy never gave, of the right form, is answered the same, with no detail: the copy keeps hashes of keys and cannot tell it from one it has forgotten.8 calls
429RATE_LIMITEDMore than 120 reads in a minute with a company's own key; the answer carries Retry-After. The sample key's reads are not counted.6 calls
503SANDBOX_NOT_READYThe person's record could not be prepared just now; the answer carries Retry-After: ask again.6 calls
400SUBJECT_TOKEN_HEADER_REQUIREDThe VERA-Subject-Token request header is absent, empty or given twice.6 calls
422VALIDATION_FAILEDThe subject token is not a pseudonymous reference (letters, digits and . _ : - only), or the address carries a query parameter this read does not take (it takes encoding and no other): the issue names the parameter.4 calls
403TWIN_ACCESS_DENIEDNo current access decision lets this app read this person for this purpose (never recorded, ended, or withdrawn); on a test copy, any subject token that is not one of the invented people's.4 calls
500INTERNAL_ERRORVERA could not answer just now: ask again, quoting the request id.16 calls
422VALIDATION_FAILEDThe subject token is not a pseudonymous reference, the id in the address is neither an issue id (LRI-…) nor a report id (LR-…), or revision is not a whole number from 1.GET subject/lab-reports/{issueId}
403TWIN_ACCESS_DENIEDNo current access decision lets this app read this person's history; on a test copy, any subject token that is not one of the invented people's, said before anything is said about a report.GET subject/lab-reports/{issueId}
404REPORT_COPY_NOT_FOUNDNo report of this person has this id on this test copy, or the report has no revision of the number asked for (the sentence then names the revision): the list of the person's reports gives the ids and each one's revision, and a restart of the copy, or a day of its running, gives a report a new issue id.GET subject/lab-reports/{issueId}
403CROSS_SITE_REQUEST_REFUSEDA browser on another website sent the call.8 calls
415JSON_CONTENT_TYPE_REQUIREDThe body is not sent as application/json.6 calls
413BODY_TOO_LARGEThe body is larger than 2048 bytes.3 calls
408BODY_NOT_SENTThe body the request declares did not arrive in time: within 2 seconds for a call with no bearer (a start), within 5 seconds for a call with one. The connection is closed, and nothing was read into a call.POST sandbox
400INVALID_JSONThe body is not JSON.6 calls
422VALIDATION_FAILEDThe body names no action this call knows, or lacks what the action needs (a subject token; for withdraw a releaseId, or the person and the line).POST sandbox
401INVITATION_REQUIREDStart, with no invitation in the VERA-Invitation request header: a sandbox of your own opens with an invitation from Prepaire, and the sample key reads without one. Nothing is made and nothing is counted.POST sandbox
403INVITATION_REFUSEDStart, with an invitation this copy does not accept: detail.reason is one of not_an_invitation, unknown_issuer, signature, not_yet_good, ended, revoked, not_for_the_test_drive (the schema InvitationRefusedDetail), and the answer says no more than that. Nothing is made.POST sandbox
409INVITATION_SANDBOXES_IN_USEStart, when the invitation already holds as many open sandboxes as it allows: detail lists them, the one used longest ago first (the schema InvitationSandboxesInUseDetail: allowed, and for each sandbox its id, when it was started and when it was last used; never a key). End one with its own key (DELETE on this address); end one whose key you do not hold by its id (DELETE on this address with the invitation in the VERA-Invitation header, no bearer, and ?sandboxId=); or send the start with "replace":"oldest", which ends that invitation's own sandbox used longest ago and says which. Starts with "replace":"oldest" sent at the same moment each end a different sandbox, among them ones the same burst has just started: send them one after another. A sandbox of another invitation is never touched.POST sandbox
429RATE_LIMITEDStart, more than 10 times in a minute with one invitation (counted by the invitation's id, after the invitation is accepted and before the body is waited for, so before INVITATION_SANDBOXES_IN_USE); or more than 30 of the actions release, withdraw, revoke, grant in a minute with one key; the answer carries Retry-After.POST sandbox
401AUTH_REQUIREDFor release, withdraw, revoke, grant: the call carries no bearer: send the sample key or a test key of your own.POST sandbox
401TOKEN_INVALIDFor release, withdraw, revoke, grant: the bearer is not a test key of this copy's form: a test copy accepts its sample key and the test keys it gives, and no other token.POST sandbox
401SANDBOX_ENDEDFor release, withdraw, revoke, grant: no sandbox is open for this test key: a sandbox ends when its own key ends it (or its own invitation ends it by its id, or a start of its own invitation replaces it), 24 hours after the last call that carried its key, 7 days after its start, at the end of its invitation's last day, and when the copy restarts; the refusal says which when the copy remembers it, in the sentence and in detail.reason, which is one of ended_by_its_key, ended_by_its_invitation, replaced_by_its_invitation, idle, seven_days, invitation_ended (the schema SandboxEndedDetail). A key the copy never gave, of the right form, is answered the same, with no detail: the copy keeps hashes of keys and cannot tell it from one it has forgotten.POST sandbox
403OWN_KEY_REQUIREDThe bearer is the page's sample key, which reads only: release, withdraw, revoke, grant and ending a sandbox take a company's own test key, and a sandbox of your own opens with an invitation from Prepaire.POST sandbox
404SANDBOX_SUBJECT_UNKNOWNThe subject token is none of the invented people's.POST sandbox
404SANDBOX_RELEASE_UNKNOWNWithdraw names a release this sandbox did not make (another sandbox's release is unknown here).POST sandbox
422SANDBOX_LINE_UNKNOWNThe line is no analyser line of the person; the answer's detail lists the lines a new sample can be released on.POST sandbox
409SANDBOX_LINE_IN_RECORDThe line is the one the person's morning record already holds, for every key; the answer's detail lists the other lines.POST sandbox
409SANDBOX_FEED_FULLThe action would add an event to a feed that holds 200, the most a sandbox keeps: nothing is changed, and no event is ever dropped or renumbered.POST sandbox
503SANDBOX_NOT_READYThe sample could not be run or its release could not be confirmed just now, so nothing was released; the answer carries Retry-After: ask again.POST sandbox
503SANDBOX_BUSYThe copy runs one sample at a time for all sandboxes, and this release waited 10 seconds without its turn coming (the runs waiting are at most the people times their lines): nothing was run; the answer carries Retry-After.POST sandbox
422ENCODING_INVALIDThe encoding query holds anything but base64url: refused before a sandbox is opened.POST sandbox
403INVITATION_REFUSEDWith no bearer and an invitation in the VERA-Invitation header that this copy does not accept: detail.reason is one of not_an_invitation, unknown_issuer, signature, not_yet_good, ended, revoked, not_for_the_test_drive (the schema InvitationRefusedDetail). Nothing is ended.DELETE sandbox
422VALIDATION_FAILEDWith no bearer and an accepted invitation: sandboxId is absent, given twice, or not 16 hexadecimal characters. With a company's own test key as the bearer: sandboxId is given and is not the id of that key's own sandbox (another sandbox's id, a text of another form, or the parameter twice): a call never ends a sandbox other than the one it names, so to end one by its id send the invitation and no bearer. Nothing is ended.DELETE sandbox
404SANDBOX_NOT_OF_INVITATIONWith no bearer and an accepted invitation: the invitation holds no open sandbox with the id in sandboxId. The answer is the same for a sandbox of another invitation, an ended one and an id nobody has. Nothing is ended.DELETE sandbox
403OWN_KEY_REQUIREDThe bearer is the page's sample key, which has no sandbox to end.DELETE sandbox
422ENCODING_INVALIDThe encoding query holds anything but base64url: refused before anything is ended.DELETE sandbox
401INVITATION_REQUIREDNo invitation in the VERA-Invitation request header: what an invitation holds is read with that invitation, whatever bearer the call carries.GET sandbox
403INVITATION_REFUSEDAn invitation this copy does not accept: detail.reason is one of not_an_invitation, unknown_issuer, signature, not_yet_good, ended, revoked, not_for_the_test_drive (the schema InvitationRefusedDetail), and the answer says no more than that.GET sandbox
422ENCODING_INVALIDThe encoding query holds anything but base64url: refused before the invitation is read.GET sandbox
403OWN_KEY_REQUIREDThe bearer is the page's sample key, which has no feed: send a company's own test key (a sandbox of your own opens with an invitation from Prepaire).GET events
429RATE_LIMITEDMore reads in a minute than the key's limit (120: the feed is counted with the views); the answer carries Retry-After.GET events
422VALIDATION_FAILEDAfter is not a whole number from 0, or limit is not from 1 to 100.GET events
422VALIDATION_FAILEDThe subject token is not a pseudonymous reference (letters, digits and . _ : - only).GET subject/lab-reports
403TWIN_ACCESS_DENIEDThe subject token is not one of the invented people's: refused as a person with no access decision is.GET subject/lab-reports
401AUTH_REQUIREDThe call carries no bearer: send a test key of your own.5 calls
401SANDBOX_ENDEDNo sandbox is open for this test key: the refusal says why when the copy remembers it, in the sentence and in detail.reason (the schema SandboxEndedDetail), as the test helper's call states it.4 calls
403OWN_KEY_REQUIREDThe bearer is the page's sample key, which reads the invented people only: a calculation on your own numbers takes a company's own test key, and a sandbox of your own opens with an invitation from Prepaire.4 calls
429RATE_LIMITEDMore reads in a minute than the key's limit (120: a calculation is counted with the views); the answer carries Retry-After.4 calls
413BODY_TOO_LARGEThe body is larger than 4096 bytes.POST compute/personal-range
408BODY_NOT_SENTThe body the request declares did not arrive within 5 seconds: the connection is closed, and nothing was read into a call.5 calls
422VALIDATION_FAILEDThe body lacks loinc, unit or draws, or holds another field; draws holds none or more than 60; a date is no calendar day written YYYY-MM-DD; a value is not a number above 0; loinc is no test of the catalogue; prior lacks low or high, holds another field, or its high is not more than its low; or, with a code of the call's own in the issue: unit_not_known (a unit VERA does not convert for the test), value_not_plausible (a value outside the bound VERA holds for the test, after conversion to the test's unit), date_in_future (a date after the copy's own day, in UTC, plus one day), date_too_early (a date before 1900-01-01); each issue names the field and what is taken, and never repeats a value of the request.POST compute/personal-range
422ENCODING_INVALIDThe encoding query holds anything but base64url: refused before the key or the body is read.5 calls
413BODY_TOO_LARGEThe body is larger than 8192 bytes.POST compute/indices
422VALIDATION_FAILEDThe body lacks values or holds a field the call does not take; values holds none or more than 40; a value is not a number from 0 to 1,000,000; ageYears is not a whole number from 0 to 120; or, with a code of the call's own in the issue: value_not_plausible (a value outside the bound VERA holds for its test, after conversion to the bound's unit), unit_not_known (a unit the registry declares no conversion from, for that code), code_not_known (a code no calculated index reads), value_repeated (two values that fill one input of a formula), date_in_future (collectedOn after the copy's own day, in UTC, plus one day), date_too_early (collectedOn before 1900-01-01), index_not_known (an id that is no index of the registry); each issue names the field and what is taken, and never repeats a value of the request.POST compute/indices
422VALIDATION_FAILEDThe body lacks a field the model needs or holds one the call does not take; a number is not above 0 or is above 1,000,000; ageYears is not a whole number from 0 to 120; or, with the code value_not_plausible in the issue, total or HDL cholesterol lies outside the bound VERA holds for the test; each issue names the field and what is taken, and never repeats a value of the request.POST compute/cardiovascular-risk
422VALIDATION_FAILEDThe body holds a field the call does not take, or egfr or uacrMgG is not a number from 0 to 1,000,000.POST compute/kidney-category
401SANDBOX_ENDEDNo sandbox is open for this test key (the limit test-key-idle says when a sandbox ends); the refusal says why when the copy remembers it, in the sentence and in detail.reason.POST normalise/message
403OWN_KEY_REQUIREDThe bearer is the page's sample key, which reads the invented people only: the reading of a test message of your own takes a company's own test key, and a sandbox of your own opens with an invitation from Prepaire.POST normalise/message
429RATE_LIMITEDMore reads in a minute than the key's limit (120: a message read is counted with the views); the answer carries Retry-After.POST normalise/message
413BODY_TOO_LARGEThe body is larger than 98,304 bytes.POST normalise/message
422VALIDATION_FAILEDThe body lacks form, or holds a field the contract does not state; form is none of hl7-v2, astm-e1394 and results-list; a message is sent twice (as text and as bytes) or not at all; message is longer than 65,536 characters; bytesBase64 is no padded base64, is sent without transport, or with a transport that carries the other form; the bytes cut into more than 64 units of the link, or hold no whole result message, or more than one (the sentence names the first 10 units and counts the rest); a field of a segment or record is longer than 2,048 characters (the sentence names the field by its place, such as OBX-7, and the line); the text declares its separators a second time and differently, or writes a person's segment or record with other separators than it declares; a line holds a control or format character, does not begin with a segment id or a record type as the standard writes one, or is a segment or record the call does not take (the sentence names the line by its number, and the segment or record by its id); the text holds no MSH segment (hl7-v2) or names no sender the call reads in its H record (astm-e1394); the message carries more than 120 results; or results is sent with another form, holds none or more than 120, or a result lacks test or value.POST normalise/message
422PERSON_FIELDS_PRESENTA person field of the message holds text, an identifier field holds anything but a test token (text beside a token included), the set id or the sex field holds anything but its code, or the message holds a segment about a person: the sentence and detail.fields name the fields (the schema PersonFieldsDetail), and never what they hold. Checked before any reader sees the message, after the length of its fields.POST normalise/message
503REFERENCE_GRAPH_UNAVAILABLEThis copy holds no reference-graph build to read a test's code in: ask again later.POST normalise/message

Request ids

Every answer carries x-request-id; send your own in the same request header and VERA uses it. Quote it when you ask Prepaire about a call.

Limits on this test copy

LimitFigure
Every answer about a person to a credential of your own (a company's own test key on a test copy, a signed identity on a live copy) is sent with Cache-Control: no-store: keep what your app shows, and ask again for what is current. The one exception is on a test copy: the answers to its sample key, which are the same for every caller and are sent public for 30 seconds (the limit sample-reads).–
A subject token is 1 to 200 letters, digits and . _ : - and goes in the VERA-Subject-Token request header, once.200 characters
A call that offers the encoded form answers ?encoding=base64url with the exact bytes of its plain answer in base64url inside one fixed wrapper: use it wherever a host between you and VERA may rewrite an answer, and check any hash or signature over the decoded bytes.–
A company's own test key, and the sandbox it opens, end at the first of four moments: when the key itself ends the sandbox (DELETE on the sandbox call's address), 24 hours after the last call that carried the key, 7 days after the start, and at the end of the invitation's last day (a whole day, counted in UTC). The holder of the invitation can also end one of its open sandboxes by its id, with the invitation and no key, and read which are open (GET on the same address). A key of an ended sandbox is answered 401 SANDBOX_ENDED with the reason. A restart of the copy ends every sandbox: nothing is kept on disk.24 hours
A test key reads VERA's invented people only, by the subject tokens the dummy patients list gives. Any other token is refused. Each invented person's record is made from the person's own entry on the sample clock (the limit sample-clock): the latest results are that morning's draw, and each earlier visit lies a fixed number of days before it. The values, the dates and the observation ids are the same on every day and after every restart of a copy, and so are those of a release, in every sandbox.–
A test copy reads the invented people on the sample clock, one fixed instant, which the service document states in sample.clock. A read of an invented person is made as of that instant, generatedAt states it, and the same read gives the same bytes on any day of one release of VERA. In a sandbox where a released sample stands, the person's read is made as of that sample's own fixed time, the sample clock plus 10 minutes for each place of the line among the person's lines, and generatedAt states that. The sample clock changes only with a release of VERA, and the changelog of this contract then says so. What still differs from run to run is stated call by call (the limit repeat).–
Every call states whether its answer can be asked again and compared to the byte: repeat in the service document's list of calls, x-vera-repeat in the contract. bytes: the same request (the address, the query, the body, the person and the key) gives the same bytes while the release of VERA stands, on any day and after a restart. run: the answer holds something of this run alone, which the call's own limits name: a key or an id the copy gave, a time of the call, or the sample seal, which a copy makes at its start and again each day it runs. A read of an invented person with a company's own key is bytes while that sandbox's releases and access decisions stand as they did. On a live copy every read of a person is run: a real person's record changes.–
A call whose method is GET or DELETE takes no body. A request to one that declares a body (Content-Length above 0, or Transfer-Encoding) is refused at once, 400 BODY_NOT_TAKEN, before a byte of the body is read, and the connection is closed. What the host in front of a copy holds of a body before passing a request on is the host's own limit, not VERA's.–
The page's sample key reads only: each invented person's record with the morning's sample released, the same for every caller on every day. Every call that makes or changes something answers it 403 OWN_KEY_REQUIRED: a sandbox of your own opens with an invitation from Prepaire.–
A company's own test key reads up to 120 times a minute. Every answer to an accepted key carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; past the limit the answer is 429 RATE_LIMITED with Retry-After.120 reads a minute
The sample key's reads are open to everybody and are not counted: the copy keeps nothing for a caller without an invitation, no sandbox, no counter and no record by key or by address. An answer is the same for every caller and may be used again for 30 seconds: it carries Cache-Control: public with that max-age, an ETag (send it back in If-None-Match and an unchanged answer is 304 with no body) and a Vary that names the Authorization header and VERA-Subject-Token, since the same address answers another key and another person differently. What the copy itself holds of these answers is one for each read of the invented people (a view of a person, a person's list of reports, a report under its own issue id), for that time: never one by a caller or by a text a caller wrote. A flood of such reads reaches the host in front of the copy as the reads of any public page do, and is the host's to limit.30 seconds an answer may be used again
A sandbox of your own opens with an invitation from Prepaire, issued to a named company and signed (Ed25519): one line of text beginning vti1, sent with the start in the VERA-Invitation request header. The sample key reads without one. A copy accepts the issuers its own release lists and no other, on the invitation's days (whole days in UTC), and refuses anything else with one reason: not_an_invitation, unknown_issuer, signature, not_yet_good, ended, revoked, not_for_the_test_drive. An answer states what the invitation says (the company, the last day, the sandboxes in use and allowed) and never its text. Every invitation ends on a stated day. An invitation is a credential of your company: whoever holds its text can start sandboxes in the company's name, read which of them are open and end each one. Keep it as you keep a key, on your own server and in no source repository, ticket or message. When it has left your hands, write to Prepaire (info@prepaire.com): an invitation is stopped by a release of the copy that lists its id as revoked, and until that release it is accepted to its last day. To ask for an invitation, write to Prepaire: info@prepaire.com.–
One invitation starts up to 10 times a minute, counted by the invitation's id; past that the answer is 429 RATE_LIMITED with Retry-After. No limit of the test side is counted by a caller's address, and no count is shared between invitations: one company's starts, sandboxes, reads and actions take nothing from another's count. One thing all sandboxes do share, and the limit one-at-a-time states it: the copy runs one sample at a time, so another company's releases can lengthen the wait of a release, up to 503 SANDBOX_BUSY, which is safe to send again. They never end, read or change another company's sandbox.10 starts a minute
An invitation holds as many open sandboxes at once as it states (1 to 20). GET on the sandbox call's address, with the invitation in the VERA-Invitation header, reads what the invitation holds at any time (the last day, how many sandboxes are open and allowed, and each open sandbox's id and times, never a key) and makes nothing. A start past the number allowed is refused 409 INVITATION_SANDBOXES_IN_USE and lists the same sandboxes; end one with its own key; end one by its id with the invitation itself (DELETE on the sandbox call's address, the invitation in the VERA-Invitation header, no bearer, ?sandboxId= an id the read or the refusal lists); or start with "replace":"oldest", which ends the invitation's own sandbox used longest ago. A start is not safe to send twice, and its key is shown once: when a start's answer is lost, its sandbox is open with no key in anybody's hands, so read the invitation and end that sandbox by its id, since "replace":"oldest" would end a sandbox in use before it. No sandbox is ever ended for the sake of another invitation.20 sandboxes for one invitation at the most
One test key sends up to 30 of the actions release, withdraw, revoke, grant a minute, together. Past that the answer is 429 RATE_LIMITED with Retry-After.30 actions a minute
The actions of one sandbox are done one at a time, in the order they arrive: two sent together are decided as if sent one after the other. The copy runs one sample at a time for all sandboxes, in the order the runs were asked for, and the releases of one person and line that are waiting at the same moment are given one run, so the runs waiting are never more than the people times their lines, however many sandboxes ask. A release that has still waited 10 seconds is refused (503 SANDBOX_BUSY, with Retry-After) and nothing of it is run.10 seconds waiting
Every action of the test helper but start is safe to send twice (a start sent twice opens two sandboxes: the limit sandboxes-kept says how to end the one whose key never arrived). Each names what it leaves standing (this person's sample on this line released, this release withdrawn, this person's access revoked or granted): when that already stands, nothing is run or changed, no event is added, and the answer is the standing record with repeated true. After a timeout, send the same call again.–
A test key acts on and reads its own sandbox only: the key names the sandbox, and no call ends a sandbox other than the one it names. An end that carries a key and, in sandboxId, anything but that key's own sandbox is refused 422 with nothing ended. Two calls take the invitation in place of a key, and both reach that invitation's own open sandboxes only: the read of what the invitation holds, and the end of one sandbox by its id. Another company's releases, access decisions and events are never in an answer, and the page's sample key reads the morning record alone.–
A release adds the invented person's sample of one line to the sandbox's record: one of the person's analyser lines other than the morning record's, at most one standing release per person and line in a sandbox. With no line named, it is the person's first such line, the same each time. The sample is fixed: its values, ids and times are the same in every sandbox and on every day (its time is the sample clock plus 10 minutes for each place of the line among the person's lines), so that a run can be repeated and compared. What is the sandbox's own is the release itself: its entry in the feed, with its number and time. So one sandbox shows two clocks: runAt, releasedAt and generatedAt state the sample's fixed time, and an event's occurredAt states the moment of the call that made it, which is the copy's own clock and may lie before or after the sample's time. A sample released again after its withdrawal is the same sample under the same release id.–
A sandbox's feed holds up to 200 events, numbered from 1 with no gap, and never drops or renumbers one. An action that would pass that is refused (409 SANDBOX_FEED_FULL) and changes nothing: start a new sandbox.200 events
One answer of the feed holds up to 100 events (limit, 1 to 100). Ask again with after set to the answer's next until more is false. Keep the last number you handled: an event's number never changes, so reading from it again is safe.100 events
An event holds ids, states, counts and hashes, never a result's value, name or unit. It says what changed; read the person's views for what it now is.–
Events about a person's results enter a feed only while that app's access decision for the person stands. After access.granted, read the person's views again and put what they answer in the place of what your app kept of that person: a result withdrawn while access was revoked is named by no event.–
A test copy sends nothing to any address. Beside each event the feed shows the delivery as it would be sent: the exact body and the X-VERA-Signature header over it (HMAC-SHA256, under the sandbox's own signing secret, of the time, a full stop and the body; the same answer states the secret to the key's holder). The time in a signature is the time of the answer.–
The body of the test helper's call is at most 2048 bytes of JSON. A longer one is refused 413 BODY_TOO_LARGE: by its declared length before a byte is read, or, with no length declared, once that many bytes have been read. A call with no bearer and an invitation this copy does not accept is refused before its body is waited for. A call with no bearer (a start) waits 2 seconds for its body, and one with an accepted invitation is counted as a start of that invitation before the wait, so such waits are at most 10 a minute for one invitation; a call with a bearer waits 5 seconds. Then the answer is 408 BODY_NOT_SENT and the connection is closed. What the host in front of a copy holds of a body before passing it on is the host's own limit, not VERA's.2,048 bytes
The catalogue holds no person, no key and no time: one release of VERA answers the same bytes every time, to everybody, with no credential. It is sent with Cache-Control: public and a max-age of 3600 seconds, and with an ETag that is the SHA-256 of those bytes: send it back in If-None-Match and an unchanged catalogue is answered 304 with no body.3,600 seconds an answer may be used again
A calculation on your own numbers, and the reading of your own test message, takes a company's own test key as the bearer; the page's sample key is refused 403 OWN_KEY_REQUIRED. Each call is counted with that key's reads (120 a minute, the limit reads-per-minute), by the key and never by a caller's address.–
The body of POST compute/personal-range is at most 4096 bytes of JSON (the other calculations state their own limits: compute-indices-body, compute-risk-body). A longer one is refused 413 BODY_TOO_LARGE: by its declared length before a byte is read, or, with no length declared, once that many bytes have been read. What the host in front of a copy holds of a body before passing it on is the host's own limit, not VERA's.4,096 bytes
One calculation of a person's own range takes 1 to 60 dated results of one test of the catalogue, each a day written YYYY-MM-DD, on or before the day it is sent, and a number above 0 inside the bound VERA holds for the test, in the unit the catalogue states for the test or in a unit the laboratory catalogue lists for it with a factor: the answer states each result as sent and as used. The latest by date is the result that is read; the range is worked out from the earlier ones.60 results
A calculation, and the reading of a test message, stores nothing and changes nothing: no record, no sandbox and no feed gains anything from it, and the answer says writes none. No time enters an answer: the clock is read only to refuse a date after today, so the same body gives the same answer on any day, and it is safe to send twice.–
On a test copy the list of a person's reports holds one report: the signed sample report of the person's morning record, marked as a sample on every page, and signed with a sample seal made for that run, never a laboratory's key. A release in a sandbox adds results to the person's record and, while the sandbox's access decision for the person stands, its entry to the feed, and no report to the list (report is null in its answer). The report's issue id names one signed PDF. A restart of the copy, and each day a copy runs, signs the same results again under a new seal, with a new issue id: read the list again (the calls whose answers hold a seal state repeat run). A test copy keeps no ledger of issues and no sealed copy, so entryHash and copy are null there.–
On a test copy, content whose sources are not yet signed off is shown and marked (reviewed false, a pending review status), so an app can build the screen for it. A live copy withholds and counts it. On a test copy every card of the invented people reads status unassessed and next_step none. A card's trend states the range engine's judgment of the change from the person's earlier result (stable, up or down, with change_pct and rcv_pct), and insufficient_basis where the person has one result of the test. An app builds its screens for the other values of status and next_step from the contract's types.–
The body of POST compute/indices is at most 8,192 bytes of JSON. A longer one is refused 413 BODY_TOO_LARGE: by its declared length before a byte is read, or, with no length declared, once that many bytes have been read.8,192 bytes
The body of POST compute/cardiovascular-risk and of POST compute/kidney-category is at most 2,048 bytes of JSON. A longer one is refused 413 BODY_TOO_LARGE, as for every calculation.2,048 bytes
One request of POST compute/indices holds 1 to 40 results of one sample, each of a code a calculated index reads, in the formula's unit or in a unit the registry declares a conversion from. Two results that fill one input of a formula are refused. A request names no person: an age is sent as completed years, and a field the contract does not state is refused.40 values
A value a calculation takes lies inside the bound VERA holds for its test: the first of three tables that states one for the code (the report reader's, the gate's, the analyser host codes'). The value is compared in the bound's unit, and a value outside it is refused 422 with the issue code value_not_plausible. The answer states in normalised the bound, its table and reviewed, which is true only while the laboratory's sign-off of that table stands in VERA: a bound of a table awaiting sign-off is applied all the same, and marked. For a test none of the three tables holds, the formula's own domain and a ceiling of 1,000,000 hold the value. A result is dated on or before the day it is sent: a date after the copy's own day (UTC) plus one day is refused, so a request that answered 200 once is never refused later.–
An answer worked out from the caller's request alone ends with repeat: the SHA-256 of the request body in canonical form (JSON as RFC 8785 writes it: every object's keys sorted, no white space, UTF-8, and each number as ECMAScript writes it, so that 68.0 is written 68 and 5.2e1 is written 52), the code that worked the answer out by name and version, and every table it was read from, each with the digest of its content. While the code and the tables stand, the same request gives the same bytes on any day: no clock, key, request id or count enters the body. The answer carries Repr-Digest (RFC 9530), the SHA-256 of the bytes sent, so two days are compared by one header.–
Invented or de-identified test messages only. The call reads a message's person fields for one purpose, to refuse: a message is answered 422 PERSON_FIELDS_PRESENT, by the fields' names and never their content, when a person field holds text (HL7 v2: any PID field from PID-5 on except PID-8 and PID-18, or an NK1, GT1, IN1, IN2, IN3, PD1 or MRG segment; ASTM E1394: any P field from P-6 on except P-9 and P-14), when an identifier field (PID-2, PID-3, PID-4, PID-18; P-3, P-4, P-5; the patient id of a query, Q-3) holds anything but a test token and nothing beside it, or when the set id (PID-1, P-2) or the sex field (PID-8, P-9) holds anything but a number or one letter. A test token begins SYN- or TEST- and goes on with 1 to 40 letters, digits and hyphens; VERA cannot tell what a token's letters spell, and returns and keeps none of them. A text that declares its separators twice and differently, or writes a person's segment or record with other separators than it declares, is refused 422 VALIDATION_FAILED. So is a text one of whose lines the readers would not take for what it is: a line that holds a control or format character (a tab, NUL, a zero-width space, a soft hyphen and the like; the line ends, a link's own framing bytes and a byte order mark at the start of an HL7 text are read as such), a line that does not begin with a segment id or a record type as the standard writes one (HL7: a capital letter, then two capital letters or digits; ASTM: one capital letter, after the frame number where a capture keeps it) followed by the separator the header declares, and a segment or record no reader of the call reads. The call takes the segments MSH, PID, PV1, ORC, OBR, SPM, SAC, OBX, TCD, NTE and the records H, P, Q, O, R, C, L; the refusal names the line by its number (a line of white space is not counted) and the segment or record by its id. The answer's message.personFields says "empty" of the places message.personFieldsLookedAt names, and of no other: a field of a segment the call takes that is neither one of those places nor one of a result's own fields (PV1, OBR, ORC, SPM, SAC, TCD, the further fields of MSH and OBX; H, O, Q, L and the further fields of R) is neither looked at for a person's text, returned nor kept, with one exception: the message type and the version (MSH-9, MSH-12; H-13) are returned in message.type and message.version where they are written as a type or a version is (capital letters, digits and the component separator; letters, digits, dots and hyphens; at most 16 characters), and are null otherwise. No identifier of a message is repeated in an answer: samples, orders, messages and subject tokens are counted. A result's own fields (its code, value, unit, range, flag and status) are returned as sent to the caller who sent them, whatever text they hold, and no other field of its segment or record is: a finding about the module of a urine-line result (R-14) names the registered modules and never the text sent. The fields that name staff, the comments and the sex field are neither read into an answer nor kept; a message that carries comments is told so in a finding (COMMENT_NOT_READ).–
The body of a message read is at most 98,304 bytes of JSON; the message at most 65,536 characters as text, or as many bytes of a link in base64; at most 120 results in one message or list (every OBX segment and every R record is one, the two records of a urine-line result together); a link's bytes cut into at most 64 units (frames, transmissions and the bytes between them); no field of a segment or record longer than 2,048 characters, which is refused 422 VALIDATION_FAILED by the field's place before the person-field check and before any reader, so that no reader's pattern is run on a longer field; and a reference range (OBX-7, R-6) is read as one only where the field is at most 64 characters long and holds two numbers with their separator (alone, or with a unit or other words around them), any other text being returned as sent with a finding that no range was read from it. A longer body is refused 413 BODY_TOO_LARGE, by its declared length before a byte is read or, with no length declared, once that many bytes have been read; the address is left out of the request proxy, so the framework holds none of the body before that.98,304 bytes

The Reference section lists each call's limits and refusals one by one.

Be told of a new result

An app does not ask every person again and again: it reads one feed. GET $VERA/api/twin/v1/events?after=<n> answers the numbered events after the last one the app handled. A test copy's actions make 4 kinds of event: result.released, result.withdrawn, access.granted, access.revoked. An event holds ids and states and never a result's value: the app then reads the person's cards for what is current. Beside each event stands its delivery as it would be sent to an app's own address, with the X-VERA-Signature header over it.

This page holds no test key yet, so there is no feed of your own to read. A sandbox of your own opens with an invitation from Prepaire. The sample key reads without one.

Recorded. Recorded run of 28 Nov 2026, 19:20 GST, commit 414c1d7. Recorded: HTTP 200 in 6 ms · PREPAIRE-TWIN-EVENTS 1.0.0. Your own run takes its place.

  1. –No feed read: this page holds no test keyThe feed of a sandbox starts empty and is numbered 1, 2, 3 with no gap.
The calls this panel sent
None yet
The X-VERA-Signature header of the last event's delivery
Not asked yet
SHA-256 of that delivery's body, as the answer states it
Not asked yet
Sent to an address
Not asked yet
Every delivery's signature, worked out again in this browser
Not asked yet

The last event's delivery, as it would be sent: the body, byte for byte.

No delivery yet: the feed has not been read.

Check a delivery's signature yourself

With $VERA set to this copy's address and $KEY to a test key of your own (Connect your own environment gives both), these lines fetch your feed and work every delivery's signature out again. The signed text is the time, a full stop and the body; the key is the feed's signing secret, which the answer shows to the key's holder; a check with the usual tolerance accepts a time within 300 seconds.

curl -sS "$VERA/api/twin/v1/events?after=0" -H "Authorization: Bearer $KEY" > events.json
python3 - <<'PY'
import hashlib, hmac, json
d = json.load(open("events.json"))
secret = d["signing"]["secret"].encode()
for e in d["events"]:
    parts = dict(part.split("=", 1) for part in e["delivery"]["signature"].split(","))
    mine = hmac.new(secret, (parts["t"] + "." + e["delivery"]["body"]).encode(), hashlib.sha256).hexdigest()
    print(e["sequence"], e["event"]["type"],
          "signature holds:", hmac.compare_digest(mine, parts["v1"]),
          "body is the event:", json.loads(e["delivery"]["body"]) == e["event"],
          "body hash holds:", hashlib.sha256(e["delivery"]["body"].encode()).hexdigest() == e["delivery"]["bodySha256"])
PY

Run as printed on 26 November 2026. Against a test copy of the version of that day, built and reached the way the public copy is, with a new test key, after a release, a revoke, a grant and a withdrawal for the first invented person: 4 events (result.released, access.revoked, access.granted, result.withdrawn), and for each the signature held, the body was the event and the body's hash held. Tools: curl 8.7.1, Python 3.9.6.

A test copy shows each delivery beside its event.

The whole loop

Everything an app does with VERA, end to end, in 14 steps: read a person, a new result is released, the feed says so, read again, fetch the person's signed report and check it (the morning sample's), see access withdrawn refuse the read, see a withdrawn result leave the cards. Each step is a call of the list of tested examples, sent with a test key the loop asks for itself.

A sandbox of your own opens with an invitation from Prepaire. The sample key reads without one.

Recorded. Recorded run of 28 Nov 2026, 19:20 GST, commit 414c1d7. Beside each call stands the status of its recorded run, where the record holds one; your own run takes its place.

  1. 1

    Which copy is this

    Not run yet

    The service document says whether this is a test copy, which contracts it speaks and, on a test copy, the sample seals of its reports.

    curl -sS "$VERA/api/twin/v1"Recorded: HTTP 200 in 4 ms · PREPAIRE-VERA-APP-INTERFACE 1.6.0 · expects 200
  2. 2

    Get a test key

    Not run yet

    One call, with the invitation Prepaire sent your company, gives a test key and opens a sandbox of your own. Every later call carries that key.

    curl -sS -X POST "$VERA/api/twin/v1/sandbox" -H "VERA-Invitation: $VERA_INVITATION" -H 'content-type: application/json' -d '{"action":"start"}'Recorded: HTTP 200 in 10 ms · PREPAIRE-TWIN-SANDBOX 2.0.0 · expects 200
  3. 3

    The dummy patients

    Not run yet

    The invented people and the analyser lines a sample of each runs on. This is the public API's call, beside the app interface, and needs no key.

    curl -sS "$VERA/api/v1/sample-run"expects 200
  4. 4

    The first person's cards before the new sample

    Not run yet

    The person's released results as cards, as they stand before anything is released in your sandbox.

    curl -sS "$VERA/api/twin/v1/subject/cards" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"Recorded: HTTP 200 in 30 ms · PREPAIRE-TWIN-CARDS 1.3.0 · expects 200
  5. 5

    The person's own ranges

    Not run yet

    The range VERA has worked out for this one person from the person's own results.

    curl -sS "$VERA/api/twin/v1/subject/personal-ranges" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"Recorded: HTTP 200 in 8 ms · PREPAIRE-PERSONAL-RANGES 1.3.0 · expects 200
  6. 6

    The laboratory runs and releases a new sample

    Not run yet

    The laboratory's own pipeline runs a new sample on one of the person's analyser lines and releases it with two demonstration sign-offs. Sent a second time, the same release changes nothing and says so.

    curl -sS -X POST "$VERA/api/twin/v1/sandbox" -H "Authorization: Bearer $KEY" -H 'content-type: application/json' -d '{"action":"release","subjectToken":"SYN-DEMO-SUBJ-0001"}'Recorded: HTTP 200 in 567 ms · PREPAIRE-TWIN-SANDBOX 2.0.0 · expects 200
    curl -sS -X POST "$VERA/api/twin/v1/sandbox" -H "Authorization: Bearer $KEY" -H 'content-type: application/json' -d '{"action":"release","subjectToken":"SYN-DEMO-SUBJ-0001"}'Recorded: HTTP 200 in 2 ms · PREPAIRE-TWIN-SANDBOX 2.0.0 · expects 200
  7. 7

    Be told

    Not run yet

    Your feed holds the release as a numbered event, ids and states only, each with its delivery as it would be sent and the signature over it. The signature is worked out again here.

    curl -sS "$VERA/api/twin/v1/events?after=0" -H "Authorization: Bearer $KEY"Recorded: HTTP 200 in 6 ms · PREPAIRE-TWIN-EVENTS 1.0.0 · expects 200
  8. 8

    Read again

    Not run yet

    The cards and the timeline now hold the new sample's results.

    curl -sS "$VERA/api/twin/v1/subject/cards" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"Recorded: HTTP 200 in 33 ms · PREPAIRE-TWIN-CARDS 1.3.0 · expects 200
    curl -sS "$VERA/api/twin/v1/subject/timeline" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"Recorded: HTTP 200 in 8 ms · PREPAIRE-TWIN-TIMELINE 1.1.0 · expects 200
  9. 9

    Which reports the person has

    Not run yet

    The person's issued reports: the id each is read by, and the SHA-256 of its signed PDF.

    curl -sS "$VERA/api/twin/v1/subject/lab-reports" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"Recorded: HTTP 200 in 3 ms · PREPAIRE-LAB-REPORT-LIST 1.0.0 · expects 200
  10. 10

    Fetch the signed report in the form no host can alter

    Not run yet

    The report with its three documents, asked in the encoded form, so the bytes are exactly the ones VERA hashed and signed whatever host stands in between.

    curl -sS "$VERA/api/twin/v1/subject/lab-reports/$ISSUE?encoding=base64url" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"expects 200
  11. 11

    Check it

    Not run yet

    The SHA-256 of the PDF is worked out again and held to the one the list and the answer state; the certificate the answer names is held to the sample seals the service document stated in step 1. The script also verifies the PDF's signature with openssl.

  12. 12

    Consent is withdrawn, then given again

    Not run yet

    Your sandbox's access decision for the person is revoked: the read of step 4 is then refused. Granted again, it answers.

    curl -sS -X POST "$VERA/api/twin/v1/sandbox" -H "Authorization: Bearer $KEY" -H 'content-type: application/json' -d '{"action":"revoke","subjectToken":"SYN-DEMO-SUBJ-0001"}'Recorded: HTTP 200 in 2 ms · PREPAIRE-TWIN-SANDBOX 2.0.0 · expects 200
    curl -sS "$VERA/api/twin/v1/subject/cards" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"Recorded: HTTP 403 in 2 ms · expects 403 TWIN_ACCESS_DENIED
    curl -sS -X POST "$VERA/api/twin/v1/sandbox" -H "Authorization: Bearer $KEY" -H 'content-type: application/json' -d '{"action":"grant","subjectToken":"SYN-DEMO-SUBJ-0001"}'Recorded: HTTP 200 in 1 ms · PREPAIRE-TWIN-SANDBOX 2.0.0 · expects 200
  13. 13

    The laboratory withdraws the result

    Not run yet

    The released sample is withdrawn: the feed says so, and the person's cards no longer hold it.

    curl -sS -X POST "$VERA/api/twin/v1/sandbox" -H "Authorization: Bearer $KEY" -H 'content-type: application/json' -d '{"action":"withdraw","subjectToken":"SYN-DEMO-SUBJ-0001"}'Recorded: HTTP 200 in 2 ms · PREPAIRE-TWIN-SANDBOX 2.0.0 · expects 200
    curl -sS "$VERA/api/twin/v1/events?after=0" -H "Authorization: Bearer $KEY"expects 200
    curl -sS "$VERA/api/twin/v1/subject/cards" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: SYN-DEMO-SUBJ-0001"expects 200
  14. 14

    Production

    Done by people

    On a live copy the reads of steps 4, 5, 8 and 10 are unchanged but for the address and the bearer token. Steps 2, 6, 12 and 13 are done by people: the app's registration, the laboratory, the privacy officer. On a live copy the feed of step 7 answers 501 EVENTS_NOT_OPEN and the list of step 9 answers 501 LAB_REPORT_LIST_NOT_OPEN.

Run it on your own machine

The same fourteen steps as one script, and as a collection file for an API client. Both are made in this page from the list of tested examples, and both ask for a test key of their own, with the invitation Prepaire sent you: the script reads it from VERA_INVITATION, which you set on your own machine. The script needs bash, curl, python3, shasum and openssl; it holds every answer to the examples list and stops at the first that differs.

VERA="<this copy's address>" VERA_INVITATION="$VERA_INVITATION" bash vera-whole-loop.sh

For the collection, set its variable vera to the same address and its variable invitation to your invitation, and run the requests in order.

Run as downloaded on 28 November 2026. The script was downloaded from this section in WebKit and run from a terminal, unchanged, against a test copy of the version of that day, built and reached the way the public copy is, with a rehearsal invitation from Prepaire in VERA_INVITATION. It ran to its last line: 20 calls and checks held, with the report's signature verified by openssl (bash 3.2.57, curl 8.7.1, Python 3.9.6, LibreSSL 3.3.6, shasum 6.02), and it ended the sandbox it had started; the folder of answers it named then held neither the test key nor the feed's signing secret. In a second run a pass-through in front of the copy read the machine's process list while each call was waiting for its answer: of the 17 calls that carry the test key or the invitation, none had either in a command's arguments. With VERA_INVITATION not set, the script stopped at its first lines and said what to set. The collection file was run on 27 November 2026, as downloaded that day, with newman 6.2.3: 19 requests, 136 assertions, none failed.

The report of steps 9 and 10 is the person's signed sample report of the morning sample. The release of step 6 answers report null.

Reference

Every call, field, refusal and limit of the app interface. The rows are written out from VERA's own register of these calls and from the types of the answers, the same source the contract is generated from, so nothing here is typed a second time. Open a row to read it; a call's example runs against this copy when its row is opened.

The contract this copy serves

curl -sS "$VERA/api/twin/v1/openapi.json"

Asking VERA…

Holding this page to the contract this copy serves…

Calls in the contract: 18

GET$VERA/api/twin/v1Answers on this copySays which copy this is: a test copy or a live one, its region, its contract versions and limits, and on a test copy the sample key.
GET$VERA/api/twin/v1/openapi.jsonAnswers on this copyGives this contract as a document a machine can read (OpenAPI 3.1), with this copy's own address as its server.
GET$VERA/api/twin/v1/subject/cardsAnswers on this copyGives the card of each current result of a person: the value with its unit and name, the change from the person's earlier result against the reference change value, and the person's own range.
GET$VERA/api/twin/v1/subject/personal-rangesAnswers on this copyGives a person's own range for each test with a current result: where that person's results usually lie, from the person's own earlier results.
GET$VERA/api/twin/v1/subject/timelineAnswers on this copyGives a person's released results and events in order of time.
GET$VERA/api/twin/v1/subject/event-tokensAnswers on this copyGives a person's timeline as a sequence of tokens: which tests were done, in which order and how far apart, with sex and age band; each result token is followed by a quantile token, and the answer counts those that read Q_UNK in unknownQuantiles.
GET$VERA/api/twin/v1/subject/lab-reports/{issueId}Answers on this copyGives one issued laboratory report of a person with its hashes: the signed PDF, the HL7 message and the FHIR bundle (on a test copy, the signed sample report of an invented person).
POST$VERA/api/twin/v1/sandboxAnswers on this copyThe test helper of a test copy: with an invitation from Prepaire it gives a company a test key and a sandbox of its own, and with that key does the laboratory's and the privacy officer's part (an invented person's sample of one analyser line released, a release withdrawn, access revoked and granted).
DELETE$VERA/api/twin/v1/sandboxAnswers on this copyEnds one sandbox, the one of the test key the call carries or, with the invitation and no key, the invitation's own open sandbox named by its id (for a sandbox whose key never arrived): its releases, access decisions and feed are forgotten, its key is refused from then on, and its invitation holds one sandbox fewer.
GET$VERA/api/twin/v1/sandboxAnswers on this copyReads what an invitation holds on this copy now, and makes nothing: the company, the last day, how many sandboxes are open and allowed, and each open sandbox's id and times (the way to ask whether an invitation is still good, and to learn the id of a sandbox whose key never arrived).
GET$VERA/api/twin/v1/eventsAnswers on this copyTells an app what changed, as the numbered events of its own feed (result.released, result.withdrawn, access.granted, access.revoked; the contract also names result.corrected and report.issued), as ids and states and never a value, and shows beside each the signed delivery as it would be sent.
GET$VERA/api/twin/v1/subject/lab-reportsAnswers on this copyLists a person's issued reports (the issue id, the time, the revision and the hashes), so an app can learn the id a report is read by.
GET$VERA/api/twin/v1/catalogueAnswers on this copyLists what the laboratory's analyser lines report (each test with its LOINC code and unit), the calculated indices with their formulas and coefficients, the range engine's method and published formula, and the addresses of VERA's interfaces that need no key.
POST$VERA/api/twin/v1/compute/personal-rangeAnswers on this copyWorks out a person's own range for one test of the catalogue from the dated results the caller sends, by the engine that makes the ranges of a person's read, and stores nothing.
POST$VERA/api/twin/v1/compute/indicesAnswers on this copyComputes every calculated index of VERA's registry that the caller's own laboratory values support, by the function that makes a person's index cards, and stores nothing.
POST$VERA/api/twin/v1/compute/cardiovascular-riskAnswers on this copyComputes the 10-year and 30-year risks of the PREVENT base model (Khan 2024) from the caller's own values, by the function VERA's own review runs, and stores nothing.
POST$VERA/api/twin/v1/compute/kidney-categoryAnswers on this copyPlaces an eGFR and a urine albumin-to-creatinine ratio of the caller's own in the KDIGO 2024 categories and gives the risk of the pair, by the function VERA's own review runs, and stores nothing.
POST$VERA/api/twin/v1/normalise/messageAnswers on this copyReads an invented or de-identified test message of an analyser or a laboratory system with VERA's own readers and returns every result's own fields as sent, the result as normalised, the readers' findings and with what the reference graph holds for its code; it stores nothing.

Shared by every call

The shape of a refusal: 6 fieldsA refusal: every answer VERA writes under /api/twin/v1 that is not a 200 has this shape, also for an unknown address, a wrong method and an address that cannot be decoded. A 401 carries WWW-Authenticate; a 405 carries Allow. An address ending in / is redirected (308) to the address without it. Two answers come from the HTTP server before VERA reads the request, and have no body: 431 for headers too large, and 408 for a body that never finishes.
Every refusal code: 53 codesBy status and code, each with the calls that answer it. A call's own row says when, on which kind of copy.
The encoded form: 3 fieldsThe encoded form of any answer that offers it: the exact bytes of the plain answer in base64url (RFC 4648 section 5, no padding). Decode data, then read, hash or verify those bytes.
Limits and rules: 43What a call may send, how often, and what each kind of copy shows or withholds.

Types the answers go on to: 77 types

AccessStatement: 4 fieldsdecisionId, purpose, externalModelExport, modelTraining
AppEvent: 10 fieldsid, type, app, sequence, occurredAt, subjectToken, and 2 more
AppInterfaceMode"sandbox" | "live"
CallSummary: 9 fieldsid, method, path, purpose, state, caller, and 3 more
CardGoal: 17 fieldsorigin, range_id, low, high, units, basis, and 7 more
CardPersonalRange: 25 fieldsbasis, state, low, high, units, set_point, and 10 more
CardStatus"optimal" | "monitor" | "needs_attention" | "unassessed"
CardTrend: 6 fieldsdirection, previous, change_pct, rcv_pct
CatalogueCalculation: 8 fieldsid, name, methodVersion, formula, reads, citations, and 2 more
CatalogueGraph: 5 fieldsbuild, tests, held
CatalogueIndex: 34 fieldsid, name, version, unit, inputs, formula, and 6 more
CatalogueIndexSpecification: 10 fieldsid, name, formulaHash, specification, conversions
CatalogueInterface: 4 fieldsid, words, segments, key
CatalogueLine: 13 fieldsid, title, test, instruments, format, transport, and 3 more
CatalogueProduct: 13 fieldsid, catalogue, panels, markers, measured, calculated, and 1 more
CatalogueTest: 5 fieldsloinc, name, kind, unit, marker
ChangeFromPreviousChangeFromPreviousRcv | ChangeFromPreviousInsufficient
ChangeFromPreviousInsufficient: 3 fieldsbasis, reason, previous
ChangeFromPreviousRcv: 11 fieldsbasis, previous, changePercent, rcvPercent, exceedsRcv, direction
CheckCard: 22 fieldsbiomarker, observation, observed_at, value, comparator, unit, and 11 more
ComputeBounds: 5 fieldslow, high, unit, table, reviewed
ComputeConversion: 6 fieldsfrom, to, factor, offset, basis, source
ComputedIndex: 6 fieldsformulaHash, registryVersion, reviewed, reviewStatus, inputs, warnings
ComputeIndexInput: 14 fieldsrole, from, loinc, value, unit, used, and 1 more
ComputeIndexSkipped: 3 fieldsindex, reason, roles
ComputeIndexValue: 16 fieldsindex, name, version, value, unit, formula, and 7 more
ComputeNormalisedDraw: 9 fieldsfrom, sent, used, conversion, bounds
ComputeNormalisedValue: 10 fieldsfrom, loinc, sent, compared, bounds
ComputeRiskByOutcome: 3 fieldstotal_cvd, ascvd, heart_failure
ComputeSource: 3 fieldscitation, doi, url
ConsideredEstimate: 8 fieldsloinc, estimateId, tier, sex, cviPercent, cviCi95Percent, and 2 more
CrossedLimit: 9 fieldsrange_id, operator, threshold, units, source, source_release, and 1 more
Exclusion: 15 fieldsobservation, observedAt, reason, rcv, rangeId, closeTo
ExclusionReason"no_analytical_imprecision" | "not_active" | "no_time" | "outside_window" | "censored" | "not_numeric" | "not_positive" | "other_unit" | "method_group_unconfirmed" | "other_method_group" | "outside_population_interval" | "beyond_decision_limit" | "too_close" | "beyond_rcv"
GenotypeAdjustment: 8 fieldsentryId, genotype, low, high, unit, citation, and 2 more
IndexCard: 25 fieldsindex_id, code, name, version, value, unit, and 12 more
InvitationRefusedDetail: 1 fieldreason
InvitationSandboxesInUseDetail: 5 fieldsallowed, sandboxes
LatestResult: 8 fieldsobservation, observedAt, value, comparator, unit, position, and 2 more
Limit: 5 fieldsid, value, unit, words, on
NextStep"recheck" | "talk" | "none"
NormaliseConversion: 5 fieldsfrom, to, factor, offset, table
NormaliseFinding: 5 fieldscheck, checkName, severity, code, message
NormaliseGraph: 8 fieldsnode, name, kind, measures, readFor
NormaliseGraphEntry: 3 fieldsid, kind, name
NormaliseGraphRow: 7 fieldsname, entry, role, review
NormaliseListResult: 3 fieldstest, value, unit
NormaliseObservation: 6 fieldsloinc, value, unit, flag, analyserFlags, conversion
NormaliseRow: 7 fieldsrow, reader, sent, observation, status, findings, and 1 more
NormaliseSent: 8 fieldscode, system, value, unit, flag, range, and 2 more
NormaliseTransportUnit: 4 fieldskind, integrity, messageClass, bytes
Operator"<" | "<=" | ">" | ">=" | "="
PersonalRange: 57 fieldsloinc, unit, basis, reason, low, high, and 20 more
PersonFieldsDetail: 4 fieldsfields
RangeAhead: 15 fieldsbasis, reason, low, high, setPoint, setPointCredible, and 4 more
Repeat: 6 fieldsrequestSha256, engine, releases, holds
SandboxAccess: 4 fieldsdecisionId, revision, state, changedAt
SandboxActionAnswer: 11 fieldscontract, action, sandboxId, repeated, subjectToken, release, and 3 more
SandboxEndedDetail: 1 fieldreason
SandboxInvitation: 5 fieldscompany, lastDay, sandboxes
SandboxRelease: 19 fieldsreleaseId, releaseIds, line, state, runAt, collectedAt, and 7 more
SkippedNode: 2 fieldsuid, reason
TimelineEventTimelineEventEncounterStart | TimelineEventEncounterEnd | TimelineEventLab | TimelineEventGenomicCall | TimelineEventDiplotypeCall | TimelineEventTaxonAbundance | TimelineEventFunctionAbundance | TimelineEventClockAge | TimelineEventPolygenicScore | TimelineEventIndexValue
TimelineEventClockAge: 7 fieldsuid, at, encounter, releaseId, kind, model, and 1 more
TimelineEventDiplotypeCall: 8 fieldsuid, at, encounter, releaseId, kind, gene, and 2 more
TimelineEventEncounterEnd: 6 fieldsuid, at, encounter, releaseId, kind, product
TimelineEventEncounterStart: 6 fieldsuid, at, encounter, releaseId, kind, product
TimelineEventFunctionAbundance: 7 fieldsuid, at, encounter, releaseId, kind, functionId, and 1 more
TimelineEventGenomicCall: 8 fieldsuid, at, encounter, releaseId, kind, spdi, and 2 more
TimelineEventIndexValue: 9 fieldsuid, at, encounter, releaseId, kind, indexId, and 3 more
TimelineEventLab: 13 fieldsuid, at, encounter, releaseId, kind, loinc, and 5 more
TimelineEventPolygenicScore: 7 fieldsuid, at, encounter, releaseId, kind, pgsId, and 1 more
TimelineEventTaxonAbundance: 7 fieldsuid, at, encounter, releaseId, kind, ncbitaxon, and 1 more
TrajectoryPresentation: 3 fieldsincluded, reason, withheldSteps
TrajectoryStep: 14 fieldsobservation, observedAt, value, comparator, unit, basis, and 8 more
ValidationIssue: 4 fieldsfield, code, message, pattern
WithheldRange: 2 fieldsloinc, reason

VERA's other two interfaces

The app interface is one of three. Each of the other two has a contract generated from its own code and a page of its own.

The partner port

For a laboratory or a partner that sends samples or data to VERA and gets the results back as FHIR R4 and HL7.

curl -sS "$VERA/api/partner/v1/openapi.json"

Asking VERA…

The public API

For a reader of reference science: the reference graph, its sources and VERA's invented people, with no credential.

curl -sS "$VERA/api/v1/openapi.json"

Asking VERA…

Signatures and how to check one

A signed report is a PDF with its signature inside it. These steps fetch one from this copy and check it on your own machine with curl, Python, shasum and openssl: nothing of VERA runs in them. On a test copy the report is a sample report, signed with a sample seal the copy makes for one sample run; it shows that the report is the one this copy signed and is unchanged since. The seal is no laboratory's key, whatever laboratory the signature's own fields name. On a live copy the same answer carries the issuing laboratory's own certificate, and steps 4, 5, 6 and 8 apply as printed. Step 7 is a test copy's step, since a sample seal is stated by a test copy's service document: a live report's certificate is held to the answer that carried the PDF, which is no check of whose certificate it is.

Asked of this copy now, and hashed in this browser

The service document
Asking VERA…
The list of reports
Asking VERA…
The report
Asking VERA…
Issue id and time
Asking VERA…
SHA-256 of the PDF, worked out in this browser
Asking VERA…
The same as the list and the answer state
Asking VERA…
The answer's seal is one the service document states
Asking VERA…

The signed reportRuns today

Set two values first, in a new, empty folder. The address is this copy's, with its base path, as Connect your own environment gives it. The person is one of this copy's invented people.

VERA=<this copy's address, as "Connect your own environment" gives it>
SUBJECT=SYN-DEMO-SUBJ-0001
  1. 1. A helper that gives the exact bytes of an encoded answer

    cat > decode.py <<'PY'
    import base64, json, sys
    w = json.load(sys.stdin)
    assert w["encoding"] == "base64url", "not the encoded form"
    b = base64.urlsafe_b64decode(w["data"] + "=" * (-len(w["data"]) % 4))
    assert len(b) == w["bytes"], "not the length the answer states"
    sys.stdout.buffer.write(b)
    PY
    It prints
    Nothing. The folder now holds decode.py.
    It shows
    Every answer below is asked with ?encoding=base64url and decoded with these six lines, so what is hashed and verified is what VERA sent.
  2. 2. Ask the copy which kind it is, and take its sample key and its sample seals

    curl -sS "$VERA/api/twin/v1?encoding=base64url" | python3 decode.py > service.json
    KEY=$(python3 -c 'import json; d = json.load(open("service.json")); print(d["sampleKey"])')
    python3 -c 'import json; d = json.load(open("service.json")); print(d["mode"], d["sampleSeal"]["algorithm"]); print("\n".join(d["sampleSeal"]["certificateSha256"]))'
    It prints
    sandbox ECDSA P-256 with SHA-256, then one line of 64 hexadecimal characters for each sample seal: the SHA-256 of its certificate.
    It shows
    The fingerprints are read here, from the service document, apart from the report they will be compared with in step 7.
  3. 3. List the person's issued reports

    curl -sS "$VERA/api/twin/v1/subject/lab-reports?encoding=base64url" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: $SUBJECT" | python3 decode.py > reports.json
    ISSUE=$(python3 -c 'import json; d = json.load(open("reports.json")); print(d["reports"][0]["issueId"])')
    python3 -c 'import json; d = json.load(open("reports.json")); print(d["reports"][0]["issueId"], d["reports"][0]["issuedAt"], "revision", d["reports"][0]["revision"]); print(d["reports"][0]["pdfSha256"])'
    It prints
    The issue id, the time and the revision, then the SHA-256 the list states for the signed PDF.
    It shows
    The id a report is read by, and the hash to expect, before the report itself is fetched.
  4. 4. Fetch the report, write the PDF to a file and hash it yourself

    curl -sS "$VERA/api/twin/v1/subject/lab-reports/$ISSUE?encoding=base64url" -H "Authorization: Bearer $KEY" -H "VERA-Subject-Token: $SUBJECT" | python3 decode.py > report.json
    python3 -c 'import base64, json; d = json.load(open("report.json")); open("report.pdf", "wb").write(base64.b64decode(d["documents"]["pdf"]["base64"])); print(d["pdfSha256"]); print(d["signature"]["signerCertificateSha256"])'
    shasum -a 256 report.pdf
    It prints
    Three lines: the SHA-256 the answer states for the PDF, the fingerprint it states for the signing certificate, and the SHA-256 shasum works out for report.pdf. The first and the third are the same, and the same as step 3 printed.
    It shows
    The PDF on your disk is, byte for byte, the one the list and the answer name. Steps 5 to 7 show who signed it.
  5. 5. Take the signature out of the PDF

    python3 - <<'PY'
    import re
    pdf = open("report.pdf", "rb").read()
    a, b, c, d = map(int, re.search(rb"/ByteRange \[(\d+) (\d+) (\d+) (\d+)\s*\]", pdf).groups())
    assert a == 0 and c + d == len(pdf), "the signature does not cover the whole file"
    open("signed.bin", "wb").write(pdf[:b] + pdf[c:])
    der = bytes.fromhex(pdf[b + 1:c - 1].decode())
    n = der[1]
    size = 2 + n if n < 128 else 2 + (n & 127) + int.from_bytes(der[2:2 + (n & 127)], "big")
    open("signature.der", "wb").write(der[:size])
    print(len(pdf), "bytes in the PDF:", b + d, "signed,", c - b, "kept for the signature's own value,", size, "bytes of signature in it")
    PY
    It prints
    The PDF's length, how many of its bytes are signed, how many are kept for the signature's own value (the two add up to the file), and the signature's length. The folder now holds signed.bin and signature.der.
    It shows
    The signature is inside the PDF (a detached CMS signature, sub-filter ETSI.CAdES.detached) and covers every byte of the file but its own value.
  6. 6. Verify the signature over the signed bytes

    openssl cms -verify -binary -inform DER -in signature.der -content signed.bin -noverify -signer seal.pem -out verified.bin
    It prints
    Verification successful. The folder now holds seal.pem, the certificate the signature was made with.
    It shows
    The signed bytes are unchanged since the holder of that certificate's key signed them. -noverify leaves out the certificate's chain only: a sample seal is self-signed and has none, so step 7 checks which certificate it is.
  7. 7. Compare the certificate with the seals the service document stated

    SEAL=$(openssl x509 -in seal.pem -outform DER | shasum -a 256 | cut -d " " -f 1)
    echo "$SEAL"
    python3 -c 'import json; d = json.load(open("service.json")); print("stated by the service document:", "'"$SEAL"'" in d["sampleSeal"]["certificateSha256"])'
    python3 -c 'import json; d = json.load(open("report.json")); print("stated by the report answer:", d["signature"]["signerCertificateSha256"] == "'"$SEAL"'")'
    openssl x509 -in seal.pem -noout -subject -issuer -enddate
    It prints
    The fingerprint, then stated by the service document: True and stated by the report answer: True, then the certificate's subject, its issuer (the same: it is self-signed) and the day it ends.
    It shows
    The certificate inside the PDF is one of the seals this copy states apart from the report. A sample seal is no laboratory's key: the copy makes it for one sample run.
  8. 8. Change one byte and see the check fail

    python3 -c 'b = bytearray(open("signed.bin", "rb").read()); b[1000] ^= 1; open("changed.bin", "wb").write(b)'
    openssl cms -verify -binary -inform DER -in signature.der -content changed.bin -noverify -out verified.bin
    It prints
    Verification failure, then openssl's own lines for it, which name a content verify error.
    It shows
    The check of step 6 is a real one: a single changed bit in the signed bytes is refused.

Run as printed on 26 November 2026. Against a test copy of the version of that day, built and reached the way the public copy is, once for each of the 3 invented people: each PDF's own SHA-256 was the one the list and the answer state, each signature verified, each certificate was a seal the service document states, and the changed byte of step 8 was refused. Tools: curl 8.7.1, Python 3.9.6, LibreSSL 3.3.6 (the openssl of macOS), shasum 6.02.

A release receiptChecked at every read

A release receipt reaches an app in the answer of the test helper's action release, in the field release.receipt. A receipt is a keyed hash (HMAC-SHA-256 under a key that never leaves the copy), which VERA itself checks each time a released sample is read back: it counts the sample as released only when the receipt holds.

An event's signed deliveryRuns today

Each event of the feed comes with its delivery as it would be sent: the exact body and the X-VERA-Signature header over it (t=<unix seconds>,v1=<HMAC-SHA-256 of "<t>.<body>" under the feed's signing secret>). The section Be told of a new result prints the lines that work the signature out again with Python's hmac and compare it, and checks the same in the page. Go to Be told of a new result.

The calls these steps make are in the Reference above: the service document, the list of a person's reports and one report. A sample report and its seal last a day at the most, and no longer than the copy runs: after a restart of the copy, or a day later, start again from step 2.

Real people: production

The reads an app writes against the test copy are the reads it runs for real people: the four views and a report by its id answer on both in the same contracts, and two values change, the address and where the bearer token comes from. The table below says what each call answers on a test copy and on a live one. Everything below is read from VERA's own registers as this copy holds them.

What changes

WhatTest copyProduction environment
What it isA test copy. It holds VERA's invented people only and no person's data, and it answers test keys. The sample key reads for everybody; a sandbox of your own opens with an invitation from Prepaire.A live copy. It answers the app's own signed identity from the region's sign-in service, and reads a person only under the access decision recorded for that person. No test key is accepted here.
The bearerSend a test key as the bearer: the sample key this document states, which reads only, or a key of your own from the test helper (POST sandbox with the action start and your invitation from Prepaire in the VERA-Invitation header), which ends 24 hours after its last call, 7 days after its start or at the end of the invitation's last day, whichever comes first.Send the app's own access token from the region's sign-in service as the bearer. Prepaire registers the app; a privacy officer records the access decision for each person.
The personOne of VERA's invented people, named by subject token in the VERA-Subject-Token header.A real person, named by subject token in the same header.

The address

Each country's environment stands by itself and keeps its data in the region. The region list states each environment and its address once one is published: open the region list.

The region list of this release names 2 regions and 2 environments. An app calls an environment at the address the region list publishes for it.

What each call answers, by kind of copy

CallOn a test copyOn a live copyWho may call it on a live copy
GET $VERA/api/twin/v1AnswersAnswersAnyone, with no credential.
GET $VERA/api/twin/v1/openapi.jsonAnswersAnswersAnyone, with no credential.
GET $VERA/api/twin/v1/subject/cardsAnswersAnswersThe app's own identity from the region's sign-in service, as the bearer: a signed access token with the role twin_app (or kg_service) and this copy's node claims. The person's access decision must grant the purpose.
GET $VERA/api/twin/v1/subject/personal-rangesAnswersAnswersThe app's own identity from the region's sign-in service, as the bearer: a signed access token with the role twin_app (or kg_service) and this copy's node claims. The person's access decision must grant the purpose.
GET $VERA/api/twin/v1/subject/timelineAnswersAnswersThe app's own identity from the region's sign-in service, as the bearer: a signed access token with the role twin_app (or kg_service) and this copy's node claims. The person's access decision must grant the purpose.
GET $VERA/api/twin/v1/subject/event-tokensAnswersAnswersThe app's own identity from the region's sign-in service, as the bearer: a signed access token with the role twin_app (or kg_service) and this copy's node claims. The person's access decision must grant the purpose.
GET $VERA/api/twin/v1/subject/lab-reports/{issueId}AnswersAnswersThe app's own identity from the region's sign-in service, as the bearer: a signed access token with the role twin_app (or kg_service) and this copy's node claims. The person's access decision must grant the purpose.
POST $VERA/api/twin/v1/sandboxAnswersAnswers 404Nobody: a live copy answers 404 for this call, and looks at no invitation. There a person in the laboratory releases a result and a privacy officer records the access decision.
DELETE $VERA/api/twin/v1/sandboxAnswersAnswers 404Nobody: a live copy answers 404 for this call.
GET $VERA/api/twin/v1/sandboxAnswersAnswers 404Nobody: a live copy answers 404 for this call, and looks at no invitation.
GET $VERA/api/twin/v1/eventsAnswersAnswers 501 EVENTS_NOT_OPENOn a live copy the app's signed identity is checked as on every read and then answered 501 EVENTS_NOT_OPEN.
GET $VERA/api/twin/v1/subject/lab-reportsAnswersAnswers 501 LAB_REPORT_LIST_NOT_OPENThe app's own identity from the region's sign-in service, as the bearer: a signed access token with the role twin_app (or kg_service) and this copy's node claims. The person's access decision must grant the purpose.
GET $VERA/api/twin/v1/catalogueAnswersAnswers 404Nobody: a live copy answers 404 for this call.
POST $VERA/api/twin/v1/compute/personal-rangeAnswersAnswers 404Nobody: a live copy answers 404 for this call. A real person's own ranges are read there with the person's read.
POST $VERA/api/twin/v1/compute/indicesAnswersAnswers 404Nobody: a live copy answers 404 for this call. A real person's indices are read there with the person's cards.
POST $VERA/api/twin/v1/compute/cardiovascular-riskAnswersAnswers 404Nobody: a live copy answers 404 for this call.
POST $VERA/api/twin/v1/compute/kidney-categoryAnswersAnswers 404Nobody: a live copy answers 404 for this call.
POST $VERA/api/twin/v1/normalise/messageAnswersAnswers 404Nobody: a live copy answers 404 for this call. A laboratory's own messages reach a live copy through its listener and its gate, under the laboratory's signed tables.

How an app is registered

Today an app is a client of the region's sign-in service that carries one of the roles the reads accept (twin_app, kg_service) and the claims of the region's node. Prepaire's administrators make it, and a test key is refused on a live copy before anything is read.

The access decision, per person

A live copy reads a person for an app only under an access decision a privacy officer records for that person and that app. It names the products and the purposes the app may read for. Without one that is current, the answer is 403 TWIN_ACCESS_DENIED: no current access decision lets this app read this person for this purpose (never recorded, ended, or withdrawn); on a test copy, any subject token that is not one of the invented people's.

ReadThe purpose the decision must name
GET $VERA/api/twin/v1/subject/cardscurrent_state
GET $VERA/api/twin/v1/subject/personal-rangescurrent_state, personal_baseline
GET $VERA/api/twin/v1/subject/timelinehistory
GET $VERA/api/twin/v1/subject/event-tokenshistory
GET $VERA/api/twin/v1/subject/lab-reports/{issueId}history
GET $VERA/api/twin/v1/subject/lab-reportshistory

Where data may go

  • Every answer about a person to a credential of your own (a company's own test key on a test copy, a signed identity on a live copy) is sent with Cache-Control: no-store: keep what your app shows, and ask again for what is current. The one exception is on a test copy: the answers to its sample key, which are the same for every caller and are sent public for 30 seconds (the limit sample-reads).
  • A subject token is 1 to 200 letters, digits and . _ : - and goes in the VERA-Subject-Token request header, once.
  • Call from your own server. No answer here allows a browser on another website to read it, and a key or token never belongs in a phone app or a web page.
  • Every answer carries x-request-id; send your own in the same request header and VERA uses it. Quote it when you ask Prepaire about a call.
  • Every answer about a person states its own terms in the field access: externalModelExport false and modelTraining false. No answer authorises training a model on it or sending it outside VERA.
  • A production environment sends nothing to a host that is not on its list of approved hosts, which the information security officer signs. The list shipped with this release names 6 providers that can never be approved; its review is pending. A delivery of events to an app's own address would go to a host on that list only.

What comes next

The plan for the app interface is kept here, once, and nowhere else on this page.

  • GET $VERA/api/twin/v1/events on a live copy.
  • GET $VERA/api/twin/v1/subject/lab-reports on a live copy.
  • Results of the product lane check written to a person's record, and so read by an app: decided on 26 November 2026, and opened by its decision record once the reference identities of the panel and an access decision that names the product are settled.
  • Typed release of the proteomics lane olink_reveal, opened by its decision record.
  • Typed release of the proteomics lane olink_explore_ht, opened by its decision record.
  • Typed release of the proteomics lane olink_focus, opened by its decision record.
  • This page's section “The digital twin and the GenetiQ site”.
  • This page's section “Showing VERA under your own name”.

Changes and status

Every 200 names its contract and version, so an app can tell a change from a fault; a refusal names neither, and its code is what stays the same. A version's last number moves for a correction, the middle one for an addition an existing reader may ignore, the first for a change a reader must follow. The app interface is PREPAIRE-VERA-APP-INTERFACE@1.6.0; its contract a machine reads is at GET $VERA/api/twin/v1/openapi.json.

Generated clients. On 28 November 2026 the contract was given to 4 code generators: openapi-generator 7.27.0 typescript-fetch; openapi-generator 7.27.0 python; openapi-typescript 7.13.0 with openapi-fetch 0.17.0; openapi-generator 7.27.0 swift6. Each client compiled (tsc 5.9.3, Python 3.12.15, swift 6.4.2) and made real calls against a served test copy, reading each answer through its generated types: 4 of 4 held. The clients were generated from the contract as a copy serves it, and VERA's own tests fail when the contract differs from the one that was checked, so a change to the contract is followed by a new run and a new day here.

This copy now

Asked of this copy when the section came into view: its health call and its service document.

The health call
Asking VERA…
Answering
Asking VERA…
Release
Asking VERA…
The health call's own contract
Asking VERA…
The service document
Asking VERA…
Kind of copy
Asking VERA…
The app interface
Asking VERA…
Contract of cards
Asking VERA…
Contract of personal-ranges
Asking VERA…
Contract of timeline
Asking VERA…
Contract of event-tokens
Asking VERA…
Contract of lab-report
Asking VERA…
Contract of sandbox
Asking VERA…
Contract of sandbox-end
Asking VERA…
Contract of sandbox-state
Asking VERA…
Contract of events
Asking VERA…
Contract of lab-reports
Asking VERA…
Contract of catalogue
Asking VERA…
Contract of compute-personal-range
Asking VERA…
Contract of compute-indices
Asking VERA…
Contract of compute-cardiovascular-risk
Asking VERA…
Contract of compute-kidney-category
Asking VERA…
Contract of normalise-message
Asking VERA…

What each version of the app interface changed

The contract's own list of changes, word for word, the latest first. The versions this copy serves are the ones it states above. The first version a release of VERA served is 1.2.0: what 1.2.0 lists as removed stood only in 1.0.0 and 1.1.0, the versions before it.

1.6.0 · 28 Nov 2026. What an answer says is brought in line with what the code does, where an outside reading of 1.5.0 found the two apart, and the message read is bounded field by field. The calls are those of 1.5.0; every change is on a test copy, where the calls on a caller's own values answer. A caller written against 1.5.0 meets these changes: normalise/message returns a row for every result record, answers gate null for a message none of whose rows the gate read, and refuses four kinds of message it answered before; the catalogue's range calculation lists its tests; and the service document's list of limits holds one entry fewer. Corrected on 29 Nov 2026 at this same version, which no numbered release of VERA had served, after an outside reading of the interface on that day. No call, field or code changed its meaning. Three answers changed, each in the list below: GET openapi.{format} is answered with another status and code for an ending other than json, bvSource.cvaPercent is printed with other digits for four tests, and GET catalogue has a new member after every member there was. What changed:

  • POST normalise/message (PREPAIRE-TWIN-NORMALISE-MESSAGE@1.1.0): a row for every result record, so an ASTM result record sent twice is two rows, each with its own fields and the finding DUPLICATE; before, the second record was in no answer. message.rows counts them. repeat.engine.version reads 1.1.0 for the two readers that carry the call's own version (roche-catalogue-lane and report-import-validate).
  • normalise/message: new message.personFieldsLookedAt, the places of the message the person-field check looked at and no other; message.personFields says "empty" of those places alone.
  • normalise/message refuses with 422 VALIDATION_FAILED, by the place and never by the text: a field of a segment or record longer than 2,048 characters, before the person-field check and before any reader; a line that holds a control or format character; a line that does not begin with a segment id or a record type as the standard writes one; and a segment or record no reader of the call reads (the call takes the segments MSH, PID, PV1, ORC, OBR, SPM, SAC, OBX, TCD, NTE and the records H, P, Q, O, R, C, L). An XR-Series message holds at most 120 result records.
  • normalise/message: a reference range is read from a field of at most 64 characters that holds two numbers with their separator; a text no range is read from carries the finding REF_RANGE. A row of an HL7 message the report reader read is held to the flag and the range sent, as the gate holds its own rows (FLAG_MISSED, FLAG_MISMATCH), with observation.flag N, L or H by the value and the range as sent; FLAG_NOT_COMPARED marks a row that sent a flag and no range. gate is null for an HL7 message none of whose rows the gate read. A figure a reader's rounding changed carries VALUE_ROUNDED. On a refused row of the report reader the last finding is ROW_REFUSED and an earlier note is ROW_CHECK. observation.conversion states the factor 1 where a unit is rewritten into the reader's. The findings about a urine-line module name the registered modules and quote nothing of the message.
  • Words of normalise/message: observation.flag states the gate's rule with its table's two factors and the table's own review status; observation.value states each reader's rounding; sent says each field is the text the reader read; rows[].reader says which unit spellings each reader takes. The limits normalise-test-messages and normalise-body say what the call takes and returns.
  • GET catalogue (PREPAIRE-TWIN-CATALOGUE@1.2.0): the calculation personal-range gains tests, the tests the range engine gives a range of the person's own for, by LOINC code: the quantity tests VERA's table of biological variation states a within-person variation for. A range asked for another quantity test of the catalogue comes back with the reason no_biological_variation and bvSource null. No field of 1.1.0 is changed.
  • The catalogue's formula of personal-range also states which results are left out of a range worked out from a caller's results, as the engine applies it: outside_window, too_close and beyond_rcv, with the bound that rcv.limitPercent states, and the number of kept results a range of the person's own needs. Seven results on seven days give too_few_results with none kept: the rule that leaves them out is too_close.
  • Words of compute/personal-range and of a person's ranges: bvSource.cvaSource says what the name DEMO-IQC-HALF-CVI is, half of the test's within-person variation rounded to one decimal place, the analytical variation a test copy uses for its invented people's results and for a caller's own numbers; the call's description and the catalogue's formula say that it enters the width of every such range.
  • The limit request-rate is taken out of the limits: it stated no number and named a plan. The list holds the limits a copy has.
  • Words of the service document: calls and calls[].state say what a call in the state next is answered on the copy that lists it: 501 with the call's own code, once the caller is checked as for every read. Before, the two definitions named a plan.
  • Words: the action release, the limit sample-reports and the field release.report say that the feed gains the release's entry while the sandbox's access decision for the person stands, as the limit events-need-access states for every event.
  • A read that carries an entity tag names it. The reads the sample key reads (subject/cards, subject/personal-ranges, subject/timeline, subject/event-tokens, subject/lab-reports, subject/lab-reports/{issueId}, each also under its older address) and catalogue state the ETag header among the headers of their 200 and the answer 304 (no body) to a request whose If-None-Match names it. A copy answered so before; the contract said it in the words of the limits sample-reads and catalogue-same-bytes alone.
  • GET openapi.{format}: the contract's address with another ending than json (openapi.yaml) is answered 422 VALIDATION_FAILED, a status the operation names. Before, it was answered 404 NOT_FOUND, which the operation does not name.
  • GET catalogue (PREPAIRE-TWIN-CATALOGUE@1.2.0): new member graph, after every member there was. It states the build of the reference graph the copy serves and, for each test of the lines, whether that graph holds the test's entry (graph.tests[].held), with their count (graph.held), read from the served build when the answer is made. The description of a test's loinc says where the graph's entry of a test is found and points to graph.tests; it said before that every code is carried by a node of the graph.
  • bvSource.cvaPercent (a person's ranges, compute/personal-range): the figure is printed as the table of biological variation states it. Four tests printed the fraction times 100 (3.6000000000000005 for 3.6).
  • Words: two field descriptions name VERA's tables in plain words where they named a file (bvSource, an index card's citations).

1.5.0 · 28 Nov 2026. Calls that work on what a caller sends, and answers that can be asked again on another day and compared to the byte. No field of 1.4.0 is removed or renamed. A caller written against 1.4.0 meets four changes on a test copy: generatedAt states the sample clock and no longer the moment of the read; a sandbox's release gives the person's fixed sample of the line, under the same release id each time; a read that declares a body is refused; and compute/personal-range refuses a value outside the bound VERA holds for the test and a date after today.

  • New: POST compute/indices: the calculated indices on a caller's own values, by the function that makes a person's index cards. Each value comes with its formula, the hash of its specification, every input as sent and as used, and its sources; each index not computed comes with the function's own reason.
  • New: POST compute/cardiovascular-risk: the PREVENT base model on a caller's own values. An input outside the range the equations were built on gives no risk for the outcomes that read it and is never moved into the range.
  • New: POST compute/kidney-category: the KDIGO category and risk from an eGFR and a UACR, with the whole map the reading was made with.
  • New in every answer worked out from the caller's request alone: repeat (the request's digest, the code, the tables, each table with the digest of its content) and the header Repr-Digest. New limits: compute-values, compute-plausible, compute-repeat, compute-indices-body, compute-risk-body.
  • compute/personal-range: a value outside the bound VERA holds for the test and a date after today are refused; a unit VERA converts for the test is taken; the answer gains normalised, asOf and repeat (PREPAIRE-TWIN-COMPUTE-PERSONAL-RANGE@1.1.0).
  • A validation refusal of a calculation names the field and what is taken, and never repeats a value of the request. Its issues carry codes of the calls' own: value_not_plausible, unit_not_known, code_not_known, value_repeated, date_in_future, date_too_early, index_not_known.
  • The registry of calculated indices is 1.1.1: one limitation of FIB-4 is reworded to what the registry does. No formula, and so no formula hash, changed.
  • New: POST normalise/message: a test message of an analyser or a laboratory system, read by VERA's own readers (the five-check gate on LOINC or local codes, the laboratory system's codes through the test catalogue, the Sysmex XR-Series and urine-line records, the report reader for a plain list); each test with the reader that read it, as sent and as normalised, with the readers' findings and with what the reference graph holds for its code. In an HL7 message with LOINC codes the gate reads the tests of its conversion table and the report reader the tests of its own table; a code neither holds is refused in its row, by a sentence that names the table read. Each row is read on its own, and gate.decision is the gate's word on the whole message. The link's own bytes are taken too, and their frames and checksums checked. Invented or de-identified test messages only; a message whose person fields hold text is refused (422 PERSON_FIELDS_PRESENT), by the fields' names.
  • New limits: normalise-test-messages, normalise-body.
  • A calculated index whose formula gives a value below zero is not returned: compute/indices lists it in skipped with the reason result_below_zero (an HDL cholesterol above the total, say). Phenotypic Age carries the warning mortality_score_at_1 where its mortality score has reached 1 in double precision.
  • GET catalogue gains indexSpecifications: every calculated index of the registry, which are the indices compute/indices computes, whether or not a line of the laboratory reports its inputs; each with the specification whose SHA-256 in canonical form is its formulaHash, and the conversions the registry declares for its inputs' codes. The catalogue is PREPAIRE-TWIN-CATALOGUE@1.1.0; no field of 1.0.0 is changed.
  • The canonical form requestSha256 is taken of is the one RFC 8785 writes: every object's keys sorted, no white space, UTF-8, and each number as ECMAScript writes it (68.0 is written 68). The limit compute-repeat says so.
  • normalise/message states Repr-Digest on the encoded form too, as the calculations do: the digest of the bytes sent.
  • A body that begins with a UTF-8 byte order mark is read. A body sent with a Content-Encoding is refused 400 INVALID_JSON, and the sentence says that the call does not decode one.
  • A link's bytes sent to normalise/message cut into at most 64 units; a refusal of such bytes names the first ten units and counts the rest. An identifier field of a test message takes a test token and nothing beside it; the set id and the sex field take a number or one letter; a text that declares its separators twice and differently is refused. The limits normalise-test-messages and normalise-body say each.
  • Words: the contract's description says which calls refuse a query parameter they do not state (the reads of a person) and that every other call passes one over; the limit compute-body names the call it bounds; the limit release-lines says which times of a sandbox are the sample's and which the call's.
  • On a test copy the invented people are read on the sample clock, a fixed instant the service document states (sample.clock, with the invented people's subject tokens in sample.subjectTokens): generatedAt states it, and a read of an invented person gives the same bytes on any day of one release and after a restart of a copy. Before, a test copy read them on its own clock: every date of a person's history moved by a day each morning, the observation ids carried the day, and generatedAt was the moment of the read. The sample clock of this release is the morning draw's run of 28 Nov 2026 on the laboratory's clock, and sample.clock states the instant; it changes only with a release, and an entry here then says so. New limit: sample-clock.
  • A sandbox release adds the person's fixed sample of that line: the same values, ids and times in every sandbox and on every day (the sample clock plus 10 minutes for each place of the line among the person's lines). runAt and releasedAt of a release state that fixed time and no longer the time of the call; a sample released again after its withdrawal is the same sample under the same release id. What is the sandbox's own is the release itself: its entry in the feed, with its number and the time of the call, and withdrawnAt. While a released sample stands in a sandbox, that sandbox's read of the person is made as of the sample's fixed time, and generatedAt states that. The limits release-lines and one-at-a-time and the words of the action say so; no word says a sample is captured at the time of the call. The fields of PREPAIRE-TWIN-SANDBOX@2.0.0 are unchanged.
  • With a company's own key, access.decisionId names the sandbox's demonstration access decision by the person and its revision, and is the same in every sandbox. Before, it was made from the sandbox's own id, so every read with a company's key differed from sandbox to sandbox in that one field.
  • Every call states repeat in the service document's list of calls and x-vera-repeat in this contract: bytes (the same request, the same bytes, on any day of one release) or run (the answer holds this run's own key, ids, times or seal). On a test copy bytes: the contract, the catalogue, the four views of a person, and every calculation and reading worked out from the caller's request. run: the service document (it states the sample seals, which a copy makes at its start and each day it runs), the list of a person's reports and a report, the test helper's three calls and the event feed. New limit: repeat.
  • A call whose method is GET or DELETE takes no body: a request to one that declares a body (Content-Length above 0, or Transfer-Encoding) is refused at once, 400 BODY_NOT_TAKEN, before a byte of the body is read, and the connection is closed. Before, such a body was held for the request, up to 10 MiB, and then passed over. New limit: body-not-taken.
  • The test helper waits 2 seconds for the body of a call that carries no bearer (a start), where it waited 5; a call with an accepted invitation and no bearer is counted as a start of that invitation before the wait, so the eleventh in a minute is refused 429 at once. A call with a bearer waits 5 seconds, as before. The limit sandbox-body says both.
  • Words: the description of subject/cards names what a card carries ("the value with its unit and name, the change from the person's earlier result against the reference change value, and the person's own range"). The description of subject/event-tokens says what a token sequence holds: which tests were done, in which order and how far apart, with sex and age band; each result token is followed by a quantile token, and the answer counts those that read Q_UNK in unknownQuantiles. The limit sample-reports says which report a test copy lists: the signed sample report of the person's morning record, and no report for a sandbox's release, whose report is null.
  • Words, joined with 1.2.2: the action release keeps 1.2.2's statement of the report call beside the fixed sample ("The release adds results to the person's record and its entry to the feed; report is null in the answer, and the report call reads the person's signed report of the morning sample."), and the field release.report reads "Always null on a test copy: a release adds results to the person's record and its entry to the feed, and the report call reads the signed sample report of the morning record, which the person's list of reports holds."

1.4.0 · 28 Nov 2026. What a caller sends now changes what comes back, or is refused by name. Every call and every field of 1.3.0 is unchanged. One refusal is new: a read of a person's view that carries a query parameter the read does not take. A caller written against 1.3.0 that sends no such parameter needs no change.

  • The reads of a person's views (GET subject/cards, subject/timeline, subject/personal-ranges, subject/event-tokens, and the same four with the subject token in the path) take the encoded form's encoding and no other query parameter. A parameter a read does not take is refused 422 VALIDATION_FAILED, and the issue names it. Before, such a parameter was passed over: a read asked with from and to, limit or loinc answered 200 with the person's whole record, the same bytes as the read with no parameter.
  • POST /api/twin/v1/compute/personal-range takes an optional prior: the two bounds, low and high, of the reference interval the range starts from, in the test's unit. With it the range is made as a person's read makes a range whose priorKind is interval, and the answer states the interval in priorSource (its origin is lab_reported: the interval is the caller's, and reviewed is false). Without it the starting point is flat, as in 1.3.0. The trajectory a person's read returns, sent with that read's priorSource.low and priorSource.high, gives that read's own bounds. A prior that lacks a bound, holds another field, or whose high is not more than its low is refused 422 VALIDATION_FAILED.
  • The catalogue's calculation personal-range publishes both formulas in formula: the range from the person's own results alone (priorKind flat), as in 1.3.0, and the range that starts from an interval (priorKind interval). reads names priorSource.low and priorSource.high beside the fields of 1.3.0. Every range a read returns can be worked out again from the answer's own fields and this one text.
  • Words only: the limit marked-not-withheld states a card's trend as 1.3.0 made it. "On a test copy every card of the invented people reads status unassessed and next_step none. A card's trend states the range engine's judgment of the change from the person's earlier result (stable, up or down, with change_pct and rcv_pct), and insufficient_basis where the person has one result of the test. An app builds its screens for the other values of status and next_step from the contract's types." The four descriptions 1.2.1 corrected stand as 1.2.1 wrote them, but for this limit's word of the trend.

1.3.0 · 27 Nov 2026. Three additions for an app that uses VERA as its engine: the catalogue of what the laboratory's lines report and what VERA calculates from it, the range engine on a caller's own numbers, and two calculated indices that are now returned. Every call, field and refusal of 1.2.0 is unchanged; a caller written against 1.2.0 needs no change. Both new calls answer on a test copy and are 404 on every other copy.

  • New call: GET /api/twin/v1/catalogue (CatalogueAnswer, contract PREPAIRE-TWIN-CATALOGUE@1.0.0), with no credential. lines holds the four analyser lines (the id a release takes in line, the instruments by their id in the asset register, the message format, the specimen, whether the morning record of the invented people holds the line) and every test each reports, with its LOINC code, name, UCUM unit and catalogue marker: 68 tests. products holds the Check panel's counts. indices holds every calculated index all of whose inputs a line reports, with its formula, every coefficient, its conditions, its declared unit conversions, its formulaHash and its citations. calculations holds the range engine with its method version and the published formula that works a flat-prior range out again from an answer's own fields. interfaces holds the addresses, as segments, of the public contract, the knowledge graph's index and the recorded model runs.
  • The catalogue holds no person, no key and no time. One release of VERA answers the same bytes every time, with Cache-Control: public, max-age=3600 and an ETag that is the SHA-256 of those bytes; If-None-Match is answered 304. The limit catalogue-same-bytes says so.
  • In the catalogue a unit that a result writes with a solidus in front (/uL) is written with the unity in front (1/uL), which UCUM reads as the same unit, so that no text value of the answer begins with /.
  • New call: POST /api/twin/v1/compute/personal-range (ComputePersonalRangeRequest, ComputePersonalRangeAnswer, contract PREPAIRE-TWIN-COMPUTE-PERSONAL-RANGE@1.0.0). The body names one test of the catalogue by loinc, its unit as the catalogue states it, and 1 to 60 draws, each a date (YYYY-MM-DD) and a value above 0. The answer's range is one entry exactly as GET subject/personal-ranges returns one in ranges (the schema PersonalRange), made by the same engine, with test, each draw's observation id and writes: "none".
  • The new call takes a company's own test key. The sample key is refused 403 OWN_KEY_REQUIRED. A call is counted with the key's reads (120 a minute). The body is at most 4,096 bytes (413 BODY_TOO_LARGE), read with a hard bound by the call itself. A test the catalogue does not list, another unit, more than 60 draws or a field the call does not take: 422 VALIDATION_FAILED with the field named. Nothing is stored, and the same body gives the same answer. The limits compute-own-key, compute-body, compute-draws and compute-no-write say so.
  • index_cards of GET subject/cards and the index_value events of GET subject/timeline now hold the triglyceride-glucose index (tyg-index) for each invented person, and Phenotypic Age (phenoage-levine-2018) once the full blood count is released: 7 indices with the sample key (they were 6) and 11 after the blood count (they were 9). Both formulas took glucose under LOINC 2345-7 alone, and the laboratory's chemistry line reports fasting glucose under 1558-6; the role now takes either code. Both entries of the registry of indices are version 1.1.0 with a new formula_hash; no coefficient, unit or condition changed. No field was added to a card.
  • The contract states an example body for POST /api/twin/v1/compute/personal-range (the request body's example): five dated fasting glucose results of nobody, which answer 200 as written.
  • The one sentence of the event feed (the summary of listEvents, and the call's purpose in the service document) names the four kinds of event a test copy's actions make. The schema AppEvent is unchanged.
  • A new tag, Calculations, for the calls under compute/.
  • The one sentence of GET subject/cards (the summary of getSubjectCards, and the call's purpose in the service document) says what every card returns (the result with its unit, its change against the reference change value, the person's own range) and names the goal, the laboratory's interval and the meaning as fields a card holds where the copy's reference sources state them for the test. No field changed.
  • A card's trend states the range engine's judgment of the change from the earlier result where the reference graph states no reference change value for the test: direction (up, down or stable), change_pct, and in rcv_pct the engine's bound on the side the result moved to. It is the judgment the same card's personal_range.change and GET subject/personal-ranges (latest.change) already return; before, trend said insufficient_basis beside them. No field was added.
  • POST /api/twin/v1/compute/personal-range refuses a result dated before 1900-01-01 (422 VALIDATION_FAILED, field draws.N.date), and the sentence of a refused 0 says "must be more than 0". OPTIONS on the address answers the same Allow as its 405.
  • The limit test-people says how the invented people's records are dated: the latest results are the laboratory's most recent morning draw's and each earlier visit lies a fixed number of days before it, so the dates move one day from one draw to the next while the values stay, and a release gives the same values in every sandbox between two draws.
  • Both calls that take a body (POST sandbox, POST compute/personal-range) answer 408 BODY_NOT_SENT and close the connection when the body the request declares has not arrived within 5 seconds.
  • GET /api/twin/v1/catalogue answers Cache-Control: private, max-age=3600 where the request named its own X-Request-Id (which the answer carries, as every answer does), and public otherwise: an answer a shared cache may keep carries nothing of the asker.

1.2.2 · 28 Nov 2026. A correction of words. No call, parameter, answer field, code or schema is changed, every view's own contract and PREPAIRE-TWIN-SANDBOX@2.0.0 are unchanged, and a client made from 1.2.1 works as it did. Three descriptions now state what a copy answers.

  • POST /api/twin/v1/sandbox, the action release: "The report call reads the person's signed report of the morning sample."
  • The same action's answer, the field release.report: "The signed report the release issued, where the report call reads it. null on a test copy, where the report call reads the morning sample's report, which has the same report id and revision."
  • The limit sample-reads, its last sentence: "A flood of such reads reaches the host in front of the copy as the reads of any public page do, and is the host's to limit."

1.2.1 · 27 Nov 2026. A correction of words. No call, parameter, answer field, code or schema is changed, every view's own contract and PREPAIRE-TWIN-SANDBOX@2.0.0 are unchanged, and a client made from 1.2.0 works as it did. Four descriptions now state what a copy answers.

  • GET /api/twin/v1/events, its summary: the kinds of event a test copy's actions make, and that the contract also names result.corrected and report.issued.
  • The same call's answer: "A test copy's actions make these kinds: result.released, result.withdrawn, access.granted, access.revoked. The contract also names result.corrected and report.issued."
  • The same call on a live copy: "On a live copy the app's signed identity is checked as on every read and then answered 501 EVENTS_NOT_OPEN." The answer and its code are as they were.
  • The limit marked-not-withheld: "On a test copy every card of the invented people reads status unassessed, next_step none and a trend of insufficient_basis; an app builds its screens for the other values of those three fields from the contract's types."

1.2.0 · 27 Nov 2026. The test drive by invitation. The reads of a person on a live copy, and every view's own contract, are unchanged. The test helper's start is changed in a way that is not additive, so the helper's own contract takes a new first number: PREPAIRE-TWIN-SANDBOX@2.0.0. A caller written against the start of 1.1.0 is refused by this version until it sends an invitation.

  • POST /api/twin/v1/sandbox with {"action":"start"} takes an invitation in the request header VERA-Invitation: one line of text that Prepaire issued to a named company and signed (Ed25519). Without one nothing is made: 401 INVITATION_REQUIRED. One the copy does not accept: 403 INVITATION_REFUSED with one detail.reason of not_an_invitation, unknown_issuer, signature, not_yet_good, ended, revoked, not_for_the_test_drive.
  • The start's answer gains invitation (the company, the last day, the sandboxes in use and allowed; never the invitation's text), replaced and sandbox.lifeSeconds. sandbox.endsAt is the earliest of three times.
  • An invitation holds as many open sandboxes as it states. A start past that: 409 INVITATION_SANDBOXES_IN_USE, which lists that invitation's own sandboxes; the body field "replace":"oldest" ends the one of them used longest ago and starts anew. One invitation starts 10 times a minute (429 RATE_LIMITED), counted by the invitation's id.
  • New call: DELETE /api/twin/v1/sandbox with a company's own test key ends that key's sandbox (SandboxEndAnswer). With no bearer, the invitation in VERA-Invitation and ?sandboxId=, the same call ends that open sandbox of that invitation: the way to end a sandbox whose key never arrived, after a start whose answer was lost. A sandbox of another invitation, an ended one and an id nobody has are answered alike: 404 SANDBOX_NOT_OF_INVITATION. A call never ends a sandbox other than the one it names: a bearer sent together with ?sandboxId= is answered only when the id is that bearer's own sandbox, and is refused 422 otherwise, with nothing ended. A client set up with both credentials sends the invitation alone to end a sandbox by its id.
  • New call: GET /api/twin/v1/sandbox with the invitation in VERA-Invitation reads what that invitation holds on the copy now (SandboxInvitationAnswer): the company, the last day, the sandboxes in use and allowed, and each open sandbox's sandboxId, startedAt, lastUsedAt and endsAt, never a key. It makes nothing and counts nothing: the way to ask whether an invitation is still good, and to learn the id of a sandbox whose key never arrived without starting another. The address's Allow is now GET, HEAD, OPTIONS, POST, DELETE.
  • A sandbox ends when its own key ends it, 24 hours after the last call that carried its key, 7 days after its start, or at the end of its invitation's last day (it was: 30 minutes after its last use). 401 SANDBOX_ENDED says which in detail.reason when the copy remembers it: ended_by_its_key, ended_by_its_invitation, replaced_by_its_invitation, idle, seven_days or invitation_ended.
  • What a client decides on in a refusal's detail has a schema of its own, named beside the code in each response (x-vera-codes): InvitationRefusedDetail, InvitationSandboxesInUseDetail (allowed, and for each open sandbox sandboxId, startedAt, lastUsedAt) and SandboxEndedDetail.
  • Removed: 429 START_PROOF_REQUIRED, the request field proof, the limits start-proof and sample-reads-per-minute. No sandbox is ended for the sake of another company's any more, and no limit is counted for all callers together.
  • The sample key's reads are not counted. Their answers are public for 30 seconds (Cache-Control: public, max-age=30, an ETag, and a Vary that names the Authorization header and VERA-Subject-Token); If-None-Match is answered 304. The limit sample-reads says so, and that a flood of such reads is the host's to absorb.
  • 403 OWN_KEY_REQUIRED, wherever the sample key is refused, says that a sandbox of your own opens with an invitation from Prepaire.
  • A new security scheme, invitation (an API key in the header VERA-Invitation), on the test helper's POST, DELETE and GET.
  • The call that reads one report states its query parameter revision, which it already took, and says what it does: with a report id (LR-…) it names a revision, a whole number from 1 to 100,000 in digits alone (1.0 and 01 are refused 422), the latest when left out. It opens no earlier revision: the latest answers 200, an earlier one that was issued 409 REPORT_REVISION_SUPERSEDED, one the report does not have 404 REPORT_COPY_NOT_FOUND. Beside an issue id (LRI-…), which names one revision already, a revision must be that issue's own: any other answers 404 (it was passed over).
  • The limit invitation says that an invitation is a credential of the company, how to keep it, and what stops one: a release of the copy that lists its id as revoked.
  • The limit no-store says what holds: an answer about a person to a company's own test key or to a signed identity is sent Cache-Control: no-store; the sample key's answers are the exception the limit sample-reads states. The limit sandbox-starts says that no count is shared between invitations, and names what all sandboxes do share: the one sample run at a time.

1.1.0 · 26 Nov 2026. The loop on a test copy. Additive. PREPAIRE-TWIN-SANDBOX@1.1.0, PREPAIRE-TWIN-EVENTS@1.0.0, PREPAIRE-LAB-REPORT-LIST@1.0.0.

  • The test helper's actions release, withdraw, revoke and grant (SandboxActionAnswer).
  • GET /api/twin/v1/events: the numbered events of a company's own sandbox, each with its signed delivery as it would be sent.
  • GET /api/twin/v1/subject/lab-reports: the list of a person's issued reports, on a test copy; and there the report by its id answers the signed sample report of an invented person.

1.0.0 · 26 Nov 2026. The service document, the contract, the four reads of a person (cards, personal ranges, timeline, event tokens), one issued report by its id on a live copy, and the test helper's start.

VERA's other contracts and their versions

The app interface is one of VERA's contracts. These are the contracts that keep a written list of changes, each with its versions and days, the latest first; what each version of another contract changed stands in that contract's own list and not on this page.

prepaire-command-center-events-v1 · 8 versions.

VersionDay
1.7.018 Nov 2026
1.6.018 Nov 2026
1.5.015 Nov 2026
1.4.014 Nov 2026
1.3.013 Nov 2026
1.2.010 Nov 2026
1.1.09 Nov 2026
1.0.09 Nov 2026

prepaire-first-party-v1 · 2 versions.

VersionDay
1.1.09 Nov 2026
1.0.08 Nov 2026

prepaire-kg-v1 · 6 versions: 1.7.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0, 1.0.0. Its list of changes gives no days.

prepaire-partner-port-v1 · 7 versions.

VersionDay
1.6.016 Nov 2026
1.5.015 Nov 2026
1.4.015 Nov 2026
1.3.015 Nov 2026
1.2.015 Nov 2026
1.1.014 Nov 2026
1.0.013 Nov 2026

vera-app-interface-v1 · 9 versions.

VersionDay
1.6.028 Nov 2026
1.5.028 Nov 2026
1.4.028 Nov 2026
1.3.027 Nov 2026
1.2.228 Nov 2026
1.2.127 Nov 2026
1.2.027 Nov 2026
1.1.026 Nov 2026
1.0.026 Nov 2026

vera-reference-graph-api-v1 · 5 versions.

VersionDay
1.4.028 Nov 2026
1.3.028 Nov 2026
1.2.028 Nov 2026
1.1.020 Nov 2026
1.0.011 Nov 2026

Demonstration copy