Build on TRACE: one key per organisation, real calls, signed webhooks
For a system or a prototype that works for an ISERC (ethics committee), PPB or NACOSTI. Everything here is read from the exchange's code and checked against the running sandbox.
Start here
The TRACE exchange carries an application from the ISERC (ethics committee) to PPB (clinical trials only) and NACOSTI. Your system calls it with its own key; TRACE tells you what changed by signed webhooks.
- Base URL
http://localhost:8031- Environment
- Sandbox, for the demonstration. Every call and every answer here is real; the partner systems are simulated.
- Format
- JSON in and out (the token call takes a form). Dates as YYYY-MM-DD.
- Keys
- One key per organisation (client id and secret), handed over privately. Never put one in a page, a repository or a ticket.
Words we use
Each word is also explained where it first appears on this page: point at it, tap it, or reach it with the keyboard.
- ISERC
- Institutional Scientific and Ethics Review Committee: an ethics committee NACOSTI accredits, such as KEMRI's or MTRH's.
- PPB authorisation
- PPB's approval of a clinical trial, valid until a date.
- PPB
- Pharmacy and Poisons Board: it authorises clinical trials.
- NACOSTI
- National Commission for Science, Technology and Innovation: it issues the research licence.
- RIMS
- Research Information Management System: NACOSTI's licensing system.
- TRACE
- The exchange between the ISERCs, PPB and NACOSTI. It carries applications and decisions; it never approves or rejects.
- Application ID
- The one number an application keeps for life, given by TRACE when it is accepted.
- research licence
- NACOSTI's permission to carry out the research.
- protocol
- The study's plan: what will be done, how, and with whom.
- affiliation letter
- A letter from the researcher's institution confirming the study is theirs.
- webhook
- A message TRACE sends an organisation's system when something changes, signed so it can be trusted.
- API key
- An organisation's own client id and secret for calling TRACE, handed over privately.
- sandbox
- A test copy of TRACE for building and trying things, with test data.
- simulated
- A stand-in for a partner's real system, built for this demonstration.
- client credentials
- The way a system gets a token with its client id and secret, with no person signing in.
- bearer token
- The short-lived token sent on every call in the Authorization header.
- event_id
- Your own unique id for each write you send.
- correlation id
- The id TRACE gives each answer, in the X-Correlation-ID header.
Keys and tokens
Trade your client id and secret for a bearer token, then send it on every call. A token works for 900 seconds (15 minutes); ask for a new one when it runs out.
POST /v1/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=<your client id>&client_secret=<your client secret>
The id and secret may instead go in Basic auth (then the form carries only grant_type). Every other call: Authorization: Bearer <token>.
| Answer | When |
|---|---|
| 200 {access_token, token_type: Bearer, expires_in: 900} | The key is right. |
| 400 {error: unsupported_grant_type} | grant_type is not client_credentials. |
| 401 {error: invalid_client} | Unknown client, wrong secret, a revoked key or a stopped connection. |
| 401 {error: invalid_token} | On any other call: no token, an expired one or a wrong one. |
Get a token (form) · 200
POST /v1/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=%3Cyour+client+id%3E&client_secret=%3Cyour+client+secret%3E200
{
"access_token": "<token from POST /v1/token>",
"token_type": "Bearer",
"expires_in": 900
}Get a token (Basic auth) · 200
POST /v1/token
Content-Type: application/x-www-form-urlencoded
Authorization: Basic <base64 of client_id:client_secret>
grant_type=client_credentials200
{
"access_token": "<token from POST /v1/token>",
"token_type": "Bearer",
"expires_in": 900
}A wrong secret · 401 invalid_client
POST /v1/token
grant_type=client_credentials&client_id=%3Cyour+client+id%3E&client_secret=%3Ca+wrong+secret%3E401
WWW-Authenticate: Basic
{
"error": "invalid_client"
}A call without a token · 401 invalid_token
GET /v2/pipeline
401
WWW-Authenticate: Bearer
{
"error": "invalid_token"
}Routes, stages and the Application ID
| Route | Stages, in order | Who holds each stage |
|---|---|---|
| non_clinical | ethics_review → nacosti_review → licensed | ISERC, then NACOSTI |
| clinical_trial | ethics_review → ppb_review → nacosti_review → licensed | ISERC, PPB, then NACOSTI |
Any open stage can end in rejected (it stops). A request for changes keeps the stage and sets waiting_on to applicant; the next document version from the holder sets it back to reviewer.
The Application ID is KE-{ISERC code}-{year}-{six digits}-{check digit}, for example KE-KEMRI-2026-000043-3. It is issued once and never reused. The check digit is Luhn over the year and the six digits (doubling from the rightmost digit), so one mistyped digit or two swapped are caught:
def check_digit(year_and_seq: str) -> int: # "2026000035"
total = 0
for i, ch in enumerate(reversed(year_and_seq)):
d = int(ch) * (2 if i % 2 == 0 else 1)
total += d - 9 if d > 9 else d
return (10 - total % 10) % 10Documents
Only a document's name, size and SHA-256 fingerprint travel in the demonstration; the files themselves go by a secure link later.
| Kind | Required for | Added by |
|---|---|---|
protocol | Both routes | The ISERC |
affiliation_letter | Both routes | The ISERC |
informed_consent_form | Clinical trials | The ISERC |
investigators_brochure | Clinical trials | The ISERC |
other | Optional | The ISERC |
ppb_application_form | Optional, at PPB's stage | PPB |
insurance_certificate | Optional, at PPB's stage | PPB |
ppb_authorisation_letter | Optional, at PPB's stage | PPB |
| Check | Rule |
|---|---|
| File | A PDF (the filename ends in .pdf). |
| sha256 | 64 hexadecimal characters. |
| bytes | 1 byte to 20 MB (20,971,520). |
| source_url | Optional: where your system serves the file to TRACE. See Open a document. |
| template | Optional. If you name one for a protocol or an affiliation letter it must be the current one: NACOSTI-PROTOCOL-2026, NACOSTI-AFFILIATION-2026. |
| Versions | Each new document of a kind is the next version. At ethics approval the latest version of each kind is locked as the approved one; a later version is kept as history but does not count. |
Submit an application · POST /v2/applications
Who: an ISERC. Others get 403 not_allowed.
| Field | Required | Notes |
|---|---|---|
event_id | Yes | Your unique id for this call, up to 120 characters. The same id again gets the first answer back. |
source_ref | Yes | Your own reference; one application per source_ref. |
study.title | Yes | Up to 300 characters. |
study.type | Yes | non_clinical or clinical_trial: it sets the route. |
study.sites | Yes | A list, at least one. |
study.starts_on, study.ends_on | Yes | YYYY-MM-DD. |
investigator.name, investigator.institution | Yes | Nothing else about the investigator is kept. |
documents | Yes | See Documents: every required kind for the route. |
| Answer | When |
|---|---|
| 201 accepted | Complete: the Application ID, the route, the stage ethics_review. NACOSTI is told at once. |
| 200 duplicate | The same event_id again: the first answer, marked duplicate. |
| 422 incomplete | A required document is missing (missing) or one doesn't fit (wrong). Nothing is created or sent on. |
| 422 rejected | A field is missing or wrong (fields), or the source_ref was already used. |
| 403 not_allowed | The caller is not an ISERC. |
Accepted · 201 accepted
Complete: TRACE issues the Application ID and tells NACOSTI (application.created). Called with KEMRI's key.
POST /v2/applications
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-k4",
"source_ref": "KEMRI/SERU/2026/DEVD4FCAD",
"study": {
"title": "Malaria vaccine uptake among children under five in Kisumu County",
"type": "non_clinical",
"sites": [
"Kisumu"
],
"starts_on": "2027-01-15",
"ends_on": "2027-12-15"
},
"investigator": {
"name": "Dr. Achieng Otieno",
"institution": "Maseno University"
},
"documents": [
{
"kind": "protocol",
"filename": "protocol.pdf",
"sha256": "646d0571e44e0f99d8cb46246fe7a7fa5057b05e0cdf82203576b335c8c6b935",
"bytes": 192156,
"template": "NACOSTI-PROTOCOL-2026"
},
{
"kind": "affiliation_letter",
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286
}
]
}201
X-Correlation-ID: 572eff1af55347cfa82a7548397257fe
{
"result": "accepted",
"application_id": "KE-KEMRI-2026-000043-3",
"route": "non_clinical",
"stage": "ethics_review"
}A clinical trial · 201 accepted
A clinical trial needs four documents. Called with MTRH's key.
POST /v2/applications
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-m1",
"source_ref": "MTRH/IREC/2026/DEVD4FCAD",
"study": {
"title": "Phase III trial of a single-dose sickle cell gene therapy in adolescents",
"type": "clinical_trial",
"sites": [
"Eldoret",
"Kakamega"
],
"starts_on": "2027-03-01",
"ends_on": "2029-02-28"
},
"investigator": {
"name": "Prof. Kiprono Chelimo",
"institution": "Moi University"
},
"documents": [
{
"kind": "protocol",
"filename": "protocol-v1.pdf",
"sha256": "78f43bd46120077afc2348e0f3bb11f0136ae80a711ce46cb2593a51696e67cc",
"bytes": 195195
},
{
"kind": "affiliation_letter",
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286
},
{
"kind": "informed_consent_form",
"filename": "consent-form.pdf",
"sha256": "a04aa0a557c054c2e72c5a1657e0212ecd46c8d6fe21dca9ab6e1a687e5653a1",
"bytes": 196208
},
{
"kind": "investigators_brochure",
"filename": "brochure.pdf",
"sha256": "a6d0ab662a3720d139371550dc9b97322169744bc14e13c0caab392c4c3b45b9",
"bytes": 192156
}
]
}201
X-Correlation-ID: 5094c57c56c24f30b92c21562b1a0d13
{
"result": "accepted",
"application_id": "KE-MTRH-2026-000061-5",
"route": "clinical_trial",
"stage": "ethics_review"
}Missing a document · 422 incomplete
The affiliation letter is missing. Called with KEMRI's key.
POST /v2/applications
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-k1",
"source_ref": "KEMRI/SERU/2026/DEVD4FCAD",
"study": {
"title": "Malaria vaccine uptake among children under five in Kisumu County",
"type": "non_clinical",
"sites": [
"Kisumu"
],
"starts_on": "2027-01-15",
"ends_on": "2027-12-15"
},
"investigator": {
"name": "Dr. Achieng Otieno",
"institution": "Maseno University"
},
"documents": [
{
"kind": "protocol",
"filename": "protocol.pdf",
"sha256": "646d0571e44e0f99d8cb46246fe7a7fa5057b05e0cdf82203576b335c8c6b935",
"bytes": 192156
}
]
}422
X-Correlation-ID: b84ded5736a64b79a1e66f650eceaddb
{
"result": "incomplete",
"missing": [
"affiliation_letter"
],
"wrong": [],
"message": "Nothing was created or sent on. Send the application again with every document."
}A document that doesn't fit · 422 incomplete
A Word file, and a letter on last year's template. Called with KEMRI's key.
POST /v2/applications
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-k2",
"source_ref": "KEMRI/SERU/2026/DEVD4FCAD",
"study": {
"title": "Malaria vaccine uptake among children under five in Kisumu County",
"type": "non_clinical",
"sites": [
"Kisumu"
],
"starts_on": "2027-01-15",
"ends_on": "2027-12-15"
},
"investigator": {
"name": "Dr. Achieng Otieno",
"institution": "Maseno University"
},
"documents": [
{
"kind": "protocol",
"filename": "protocol.docx",
"sha256": "3fd6c76d2d23bbb8ae942ca93d8a0ac0fffdb726518396dd15f11615374b49ab",
"bytes": 193169
},
{
"kind": "affiliation_letter",
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286,
"template": "NACOSTI-AFFILIATION-2024"
}
]
}422
X-Correlation-ID: c14c93a637874959952f721d2072c91e
{
"result": "incomplete",
"missing": [],
"wrong": [
{
"kind": "protocol",
"filename": "protocol.docx",
"why": "must be a PDF"
},
{
"kind": "affiliation_letter",
"filename": "affiliation-letter.pdf",
"why": "template NACOSTI-AFFILIATION-2024 is out of date; use NACOSTI-AFFILIATION-2026"
}
],
"message": "Nothing was created or sent on. Send the application again with every document."
}Bad fields · 422 rejected
No title, a date not in YYYY-MM-DD, no institution. Called with KEMRI's key.
POST /v2/applications
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-k3",
"source_ref": "KEMRI/SERU/2026/DEVD4FCAD",
"study": {
"title": "",
"type": "non_clinical",
"sites": [
"Kisumu"
],
"starts_on": "15/01/2027",
"ends_on": "2027-12-15"
},
"investigator": {
"name": "Dr. Achieng Otieno"
},
"documents": [
{
"kind": "protocol",
"filename": "protocol.pdf",
"sha256": "646d0571e44e0f99d8cb46246fe7a7fa5057b05e0cdf82203576b335c8c6b935",
"bytes": 192156
},
{
"kind": "affiliation_letter",
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286
}
]
}422
X-Correlation-ID: 283af196475f4f6da1e76ec1559be228
{
"result": "rejected",
"fields": [
"study.title",
"study.starts_on",
"investigator.institution"
]
}The same event_id again · 200 duplicate
The same event_id again: the first answer, marked duplicate. Nothing new is created. Called with KEMRI's key.
POST /v2/applications
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-k4",
"source_ref": "KEMRI/SERU/2026/DEVD4FCAD",
"study": {
"title": "Malaria vaccine uptake among children under five in Kisumu County",
"type": "non_clinical",
"sites": [
"Kisumu"
],
"starts_on": "2027-01-15",
"ends_on": "2027-12-15"
},
"investigator": {
"name": "Dr. Achieng Otieno",
"institution": "Maseno University"
},
"documents": [
{
"kind": "protocol",
"filename": "protocol.pdf",
"sha256": "646d0571e44e0f99d8cb46246fe7a7fa5057b05e0cdf82203576b335c8c6b935",
"bytes": 192156,
"template": "NACOSTI-PROTOCOL-2026"
},
{
"kind": "affiliation_letter",
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286
}
]
}200
X-Correlation-ID: 572eff1af55347cfa82a7548397257fe
{
"result": "duplicate",
"application_id": "KE-KEMRI-2026-000043-3",
"route": "non_clinical",
"stage": "ethics_review"
}A source_ref already used · 422 rejected
A new event_id with a source_ref already used. Called with KEMRI's key.
POST /v2/applications
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-k5",
"source_ref": "KEMRI/SERU/2026/DEVD4FCAD",
"study": {
"title": "Malaria vaccine uptake among children under five in Kisumu County",
"type": "non_clinical",
"sites": [
"Kisumu"
],
"starts_on": "2027-01-15",
"ends_on": "2027-12-15"
},
"investigator": {
"name": "Dr. Achieng Otieno",
"institution": "Maseno University"
},
"documents": [
{
"kind": "protocol",
"filename": "protocol.pdf",
"sha256": "646d0571e44e0f99d8cb46246fe7a7fa5057b05e0cdf82203576b335c8c6b935",
"bytes": 192156,
"template": "NACOSTI-PROTOCOL-2026"
},
{
"kind": "affiliation_letter",
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286
}
]
}422
X-Correlation-ID: adba6ffdd92143b19986179bff0db1a7
{
"result": "rejected",
"fields": [
"source_ref"
],
"why": "already submitted under another event_id"
}Not an ISERC · 403 not_allowed
Only an ISERC submits. Called with PPB's key.
POST /v2/applications
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-p0",
"source_ref": "KEMRI/SERU/2026/DEVD4FCAD",
"study": {
"title": "Malaria vaccine uptake among children under five in Kisumu County",
"type": "non_clinical",
"sites": [
"Kisumu"
],
"starts_on": "2027-01-15",
"ends_on": "2027-12-15"
},
"investigator": {
"name": "Dr. Achieng Otieno",
"institution": "Maseno University"
},
"documents": [
{
"kind": "protocol",
"filename": "protocol.pdf",
"sha256": "646d0571e44e0f99d8cb46246fe7a7fa5057b05e0cdf82203576b335c8c6b935",
"bytes": 192156,
"template": "NACOSTI-PROTOCOL-2026"
},
{
"kind": "affiliation_letter",
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286
}
]
}403
X-Correlation-ID: 69b319a2e2244197be88fefc975d8472
{
"result": "not_allowed",
"why": "only an ISERC submits applications"
}Personal details sent by mistake · 201 accepted
Personal details sent by mistake: accepted, and the extra fields are dropped, never stored. Called with KEMRI's key.
POST /v2/applications
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-k6",
"source_ref": "KEMRI/SERU/2026/DEVD4FCAD-P",
"study": {
"title": "Malaria vaccine uptake among children under five in Kisumu County",
"type": "non_clinical",
"sites": [
"Kisumu"
],
"starts_on": "2027-01-15",
"ends_on": "2027-12-15"
},
"investigator": {
"name": "Dr. Achieng Otieno",
"institution": "Maseno University",
"national_id": "12345678",
"phone": "+254700000000",
"date_of_birth": "1980-01-01"
},
"documents": [
{
"kind": "protocol",
"filename": "protocol.pdf",
"sha256": "646d0571e44e0f99d8cb46246fe7a7fa5057b05e0cdf82203576b335c8c6b935",
"bytes": 192156
},
{
"kind": "affiliation_letter",
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286
}
]
}201
X-Correlation-ID: 7c2be2fb3b8b4db59f3fa67ffaf23016
{
"result": "accepted",
"application_id": "KE-KEMRI-2026-000044-1",
"route": "non_clinical",
"stage": "ethics_review"
}Add a document version · POST /v2/applications/{id}/documents
Who: the ISERC on its own application (never a PPB kind); PPB while it holds ppb_review. Nobody after licensed or rejected. The body is event_id plus one document (kind, filename, sha256, bytes, optional template).
| Answer | When |
|---|---|
| 201 accepted | Kept: kind, version, counts (true), or counts false with why once the approved version is locked. |
| 200 duplicate | The same event_id again. |
| 422 incomplete | The document doesn't fit (wrong). |
| 422 rejected | No event_id. |
| 403 not_owner | This organisation cannot add documents to this application now, or an ISERC sent a PPB kind. |
| 404 not_found | Unknown, or not yours to see. |
A new version · 201 accepted
Version 2 counts; version 1 is kept as history. Called with MTRH's key.
POST /v2/applications/KE-MTRH-2026-000061-5/documents
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-m3",
"kind": "protocol",
"filename": "protocol-v2.pdf",
"sha256": "194077f5647a40a8a6d13dfa48c746182d08a3645726a634254b06faf07d624c",
"bytes": 195195
}201
X-Correlation-ID: 04a295c6fd7745e99b88f284cdced057
{
"result": "accepted",
"document_id": "7372e628-a6f5-42d1-b6c9-03a88193c316",
"kind": "protocol",
"version": 2,
"counts": true
}After approval · 201 accepted
After approval: kept, but it does not count. Called with MTRH's key.
POST /v2/applications/KE-MTRH-2026-000061-5/documents
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-m6",
"kind": "protocol",
"filename": "protocol-v3.pdf",
"sha256": "d040e5127c87262a53ba613154ba2a84e259b70b2878f1956fd17b72aad15ba6",
"bytes": 195195
}201
X-Correlation-ID: 830db403dbee4c95890ebb34b717fbc0
{
"result": "accepted",
"document_id": "e15b9089-5a1c-4db2-b664-02c6bf7fc8e2",
"kind": "protocol",
"version": 3,
"counts": false,
"why": "approved version 2 is locked; this one is kept but does not count"
}PPB's own document · 201 accepted
PPB adds its own documents while it holds the stage. Called with PPB's key.
POST /v2/applications/KE-MTRH-2026-000061-5/documents
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-p1",
"kind": "ppb_application_form",
"filename": "ppb-application-form.pdf",
"sha256": "9e93244427056e452b66af561b0b6539be98581895cd38f644855fe764b0a5ef",
"bytes": 204312
}201
X-Correlation-ID: be6c4ac8c2c74f379ede8a9a77896c8d
{
"result": "accepted",
"document_id": "0794103c-6545-4c9b-a5e1-36a10615aac0",
"kind": "ppb_application_form",
"version": 1,
"counts": true
}After the licence · 403 not_owner
Licensed: nobody adds documents any more. Called with MTRH's key.
POST /v2/applications/KE-MTRH-2026-000061-5/documents
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-m7",
"kind": "protocol",
"filename": "protocol-v4.pdf",
"sha256": "78b377d9c4a2ce284b3eaf9df044e8fbf012d02a5c92e8d592ba0b0af80ab6e3",
"bytes": 195195
}403
X-Correlation-ID: 4079e87c976048bf9428292348112fe1
{
"result": "not_owner",
"why": "this organisation cannot add documents to this application now"
}Record a decision · POST /v2/applications/{id}/events
Who: only the organisation that holds the current stage. Body: event_id, type, and optionally reference, decided_on, note; valid_until is required for ppb.authorised.
| type | Sent by | At stage | Effect |
|---|---|---|---|
ethics.changes_requested | ISERC (its own application) | ethics_review | Opens a request, the same as POST …/requests: requested_from (applicant, the default) and a note. Answers 200 with request_id; the stage stays; waiting_on becomes the recipient. information.requested (only to the source ISERC and the requester) and stage.changed. |
ethics.approved | ISERC (its own application) | ethics_review | Locks the latest version of each document. Clinical trial: to ppb_review (package.sent_to_ppb); otherwise to nacosti_review (package.sent_to_nacosti). stage.changed. |
ethics.rejected | ISERC (its own application) | ethics_review | Stage rejected; it stops. stage.changed. |
ppb.changes_requested | PPB | ppb_review | Opens a request, the same as POST …/requests: requested_from (applicant, or source_iserc, the default) and a note. Answers 200 with request_id; the stage stays; waiting_on becomes the recipient. information.requested (only to the source ISERC and the requester) and stage.changed. |
ppb.authorised | PPB | ppb_review | Needs valid_until (YYYY-MM-DD). To nacosti_review with PPB's outcome (package.sent_to_nacosti); authorisation.expiring if it ends within 30 days. stage.changed. |
ppb.rejected | PPB | ppb_review | Stage rejected; it stops. stage.changed. |
licence.changes_requested | NACOSTI | nacosti_review | Opens a request, the same as POST …/requests: requested_from (applicant, or source_iserc, the default) and a note. Answers 200 with request_id; the stage stays; waiting_on becomes the recipient. information.requested (only to the source ISERC and the requester) and stage.changed. |
licence.issued | NACOSTI | nacosti_review | Stage licensed: the end. stage.changed and licence.decided. |
licence.rejected | NACOSTI | nacosti_review | Stage rejected. stage.changed and licence.decided. |
| Answer | When |
|---|---|
| 200 accepted | The stage now, routed_to when it moved to PPB or NACOSTI; for a *.changes_requested, the request_id, requested_from and waiting_on (see Requests and answers). |
| 200 duplicate | The same event_id again. |
| 422 rejected | No event_id, an unknown type, or ppb.authorised without valid_until. |
| 403 not_owner | The stage belongs to another organisation (the answer says which). |
| 404 not_found | Unknown, or not yours to see. |
Ask for changes · 200 accepted
The stage stays; TRACE waits on the applicant. Called with MTRH's key.
POST /v2/applications/KE-MTRH-2026-000061-5/events
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-m2",
"type": "ethics.changes_requested",
"reference": "MTRH/IREC/CR/1",
"note": "Revise the dosing section."
}200
X-Correlation-ID: ce15962842f242b88f1b76612de65a6d
{
"result": "accepted",
"request_id": "4a7646b6-9f31-448c-92dc-5c663d8c4343",
"stage": "ethics_review",
"waiting_on": "applicant",
"requested_from": "applicant"
}Ethics approves a trial · 200 accepted
Approval locks the latest version of each document and, for a trial, routes to PPB. Called with MTRH's key.
POST /v2/applications/KE-MTRH-2026-000061-5/events
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-m5",
"type": "ethics.approved",
"reference": "MTRH/IREC/2026/0412",
"decided_on": "2026-12-02"
}200
X-Correlation-ID: 74dfea850c584c8b91b2d9ed3eccf6e6
{
"result": "accepted",
"stage": "ppb_review",
"routed_to": "PPB"
}PPB authorises · 200 accepted
Routes to NACOSTI; ending within 30 days, so TRACE also sends authorisation.expiring. Called with PPB's key.
POST /v2/applications/KE-MTRH-2026-000061-5/events
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-p3",
"type": "ppb.authorised",
"reference": "PPB/CT/2026/0103",
"decided_on": "2026-12-02",
"valid_until": "2026-12-27"
}200
X-Correlation-ID: a957e21307da4dfa975f927c04a158ce
{
"result": "accepted",
"stage": "nacosti_review",
"routed_to": "NACOSTI"
}NACOSTI issues the licence · 200 accepted
The end of the pipeline: licence.decided goes out. Called with NACOSTI's key.
POST /v2/applications/KE-MTRH-2026-000061-5/events
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-n1",
"type": "licence.issued",
"reference": "NACOSTI/P/26/0412",
"decided_on": "2026-12-02"
}200
X-Correlation-ID: f6e79ca407b84a98a46145f1a90518c5
{
"result": "accepted",
"stage": "licensed"
}Out of turn · 403 not_owner
NACOSTI may not decide while the ISERC holds the stage. Called with NACOSTI's key.
POST /v2/applications/KE-MTRH-2026-000061-5/events
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-n0",
"type": "licence.issued",
"reference": "NACOSTI/P/26/0001"
}403
X-Correlation-ID: a5cec4419d7141c49f107d431014f12a
{
"result": "not_owner",
"stage": "ethics_review",
"why": "the ethics review stage belongs to ISERC"
}An unknown type · 422 rejected
An unknown type. Called with MTRH's key.
POST /v2/applications/KE-MTRH-2026-000061-5/events
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-m4",
"type": "ethics.approve"
}422
X-Correlation-ID: 8b99b823d4a34cc2a76e946f686321f9
{
"result": "rejected",
"fields": [
"type"
]
}No valid_until · 422 rejected
An authorisation needs valid_until. Called with PPB's key.
POST /v2/applications/KE-MTRH-2026-000061-5/events
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-p2",
"type": "ppb.authorised",
"reference": "PPB/CT/2026/0103"
}422
X-Correlation-ID: 8fb90dbb3de04c9c81729ac6d5220fb9
{
"result": "rejected",
"fields": [
"valid_until"
]
}Requests and answers · POST /v2/applications/{id}/requests
The organisation holding the stage asks the source ISERC or the applicant for something, with its actual note. The stage does not move: waiting_on becomes the recipient (source_iserc or applicant; reviewer when nothing is open), and the timeline and the pipeline count those days as waiting_days, apart from reviewer_days. The note goes by information.requested only to the source ISERC and the requester, never to anyone else. A *.changes_requested event does the same and answers with a request_id.
| Field | Required | Notes |
|---|---|---|
event_id | Yes | Your unique id for this call. |
note | Yes | 1 to 2,000 characters: what is asked. |
requested_from | No | source_iserc or applicant. Default: applicant when the ISERC asks, source_iserc when PPB or NACOSTI asks. The ISERC cannot ask itself. |
audience | No | iserc_internal or applicant: who may read the note. Default follows the recipient. |
response_due_at | No | YYYY-MM-DD. |
Answer with POST /v2/applications/{id}/requests/{request_id}/responses and {"event_id", "note", "document"?}. The source ISERC answers; for a request to the applicant, the requester may record the applicant's answer it received itself (RIMS with a verified contact). An optional document (the Document fields) becomes a new version. information.responded goes to the source ISERC and the requester. A request still open when the stage moves on is closed, with its note kept. GET …/requests lists them: NACOSTI and the source ISERC see all, PPB its own.
| Answer | When |
|---|---|
| 201 accepted | Opened (request_id, stage, waiting_on, requested_from), or answered (state responded, waiting_on, the document version). |
| 200 accepted | A *.changes_requested event opened the request. |
| 200 duplicate | The same event_id again. |
| 422 rejected | No event_id or note, a recipient you may not ask, a bad date or audience. |
| 403 not_owner | Only the stage's holder asks. |
| 403 not_allowed | Answering: neither the source ISERC nor, for a request to the applicant, the requester. |
| 409 not_open | The request was already answered or closed. |
| 404 not_found | Unknown application or request, or not yours to see. |
NACOSTI asks the source ISERC · 201 accepted
The stage stays nacosti_review; the application now waits on KEMRI's ISERC. The note goes only to KEMRI and NACOSTI. Called with NACOSTI's key.
POST /v2/applications/KE-KEMRI-2026-000046-6/requests
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-n2",
"requested_from": "source_iserc",
"note": "Please confirm whether the revised protocol covers the additional site in Siaya.",
"response_due_at": "2026-12-09"
}201
X-Correlation-ID: 8deacb06d7cd4f6aa7496d3c7a8bfac8
{
"result": "accepted",
"request_id": "58a2c3da-b2aa-4bc4-8108-f3cee904b6d8",
"stage": "nacosti_review",
"waiting_on": "source_iserc",
"requested_from": "source_iserc"
}The requests, as the ISERC · 200
The source ISERC sees every request on its application. Called with KEMRI's key.
GET /v2/applications/KE-KEMRI-2026-000046-6/requests
Authorization: Bearer <token from POST /v1/token>200
{
"application_id": "KE-KEMRI-2026-000046-6",
"waiting_on": "source_iserc",
"requests": [
{
"request_id": "58a2c3da-b2aa-4bc4-8108-f3cee904b6d8",
"requested_by": "NACOSTI",
"requested_from": "source_iserc",
"audience": "iserc_internal",
"note": "Please confirm whether the revised protocol covers the additional site in Siaya.",
"stage": "nacosti_review",
"state": "open",
"requested_at": "2026-12-02T12:21:44.477022+00:00",
"response_due_at": "2026-12-09"
}
]
}The ISERC answers with a letter · 201 accepted
Answered by request ID, with a new document version; waiting_on goes back to the reviewer. Called with KEMRI's key.
POST /v2/applications/KE-KEMRI-2026-000046-6/requests/58a2c3da-b2aa-4bc4-8108-f3cee904b6d8/responses
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-r4",
"note": "Yes: Siaya is covered; the site confirmation letter is attached.",
"document": {
"kind": "other",
"filename": "site-confirmation.pdf",
"sha256": "e25fef143c209fec8b7f57481f285f0d6e7369a04d5b732015893dfc3908d789",
"bytes": 861,
"source_url": "http://partners:8032/files/KEMRI/devd4fcad/site-confirmation.pdf"
}
}201
X-Correlation-ID: 60ba2a0d6f3840d4b24f0c5cde75ce4f
{
"result": "accepted",
"request_id": "58a2c3da-b2aa-4bc4-8108-f3cee904b6d8",
"state": "responded",
"waiting_on": "reviewer",
"document": {
"document_id": "0875e1f4-8c05-493f-9380-d1ae94b71ce1",
"kind": "other",
"version": 1,
"counts": true
}
}A *.changes_requested event to the applicant · 200 accepted
The same as a request: it answers with a request_id, and the application waits on the applicant. Called with NACOSTI's key.
POST /v2/applications/KE-KEMRI-2026-000046-6/events
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-n5",
"type": "licence.changes_requested",
"requested_from": "applicant",
"note": "Please upload the licence fee receipt."
}200
X-Correlation-ID: 5ae32a6936e94d90bedc83ef3308006c
{
"result": "accepted",
"request_id": "f60a0914-0c9e-4360-a30d-e71f4bbf6c7b",
"stage": "nacosti_review",
"waiting_on": "applicant",
"requested_from": "applicant"
}NACOSTI records the applicant's answer · 201 accepted
The requester records the answer it received from the applicant itself. Called with NACOSTI's key.
POST /v2/applications/KE-KEMRI-2026-000046-6/requests/f60a0914-0c9e-4360-a30d-e71f4bbf6c7b/responses
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-n6",
"note": "Receipt received on eCitizen."
}201
X-Correlation-ID: e72c374f8aff499199e8f36e2f02aa2b
{
"result": "accepted",
"request_id": "f60a0914-0c9e-4360-a30d-e71f4bbf6c7b",
"state": "responded",
"waiting_on": "reviewer"
}No note · 422 rejected
A request needs its note. Called with NACOSTI's key.
POST /v2/applications/KE-KEMRI-2026-000046-6/requests
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-n3",
"requested_from": "source_iserc"
}422
X-Correlation-ID: 7e4a13c4d80047d6af7c02e5991c4bde
{
"result": "rejected",
"fields": [
"note"
]
}Not the stage's holder · 403 not_owner
Only the stage's holder asks. Called with KEMRI's key.
POST /v2/applications/KE-KEMRI-2026-000046-6/requests
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-r3",
"requested_from": "applicant",
"note": "Any question."
}403
X-Correlation-ID: ac2fb0ae87e846fa9bae7bb822e51988
{
"result": "not_owner",
"stage": "nacosti_review",
"why": "only the holder of the nacosti review stage (NACOSTI) asks"
}Answering someone else's request · 403 not_allowed
A request to the ISERC is answered by the ISERC. Called with NACOSTI's key.
POST /v2/applications/KE-KEMRI-2026-000046-6/requests/58a2c3da-b2aa-4bc4-8108-f3cee904b6d8/responses
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-n4",
"note": "Answering my own question."
}403
X-Correlation-ID: 3fb4d07bbe40492d80f8c25536725884
{
"result": "not_allowed",
"why": "the source ISERC answers; the requester may record an applicant's answer it received"
}Answered already · 409 not_open
The request is already answered. Called with KEMRI's key.
POST /v2/applications/KE-KEMRI-2026-000046-6/requests/58a2c3da-b2aa-4bc4-8108-f3cee904b6d8/responses
Authorization: Bearer <token from POST /v1/token>
Content-Type: application/json
{
"event_id": "devd4fcad-r5",
"note": "Again."
}409
X-Correlation-ID: a3775f012f2840a3944fcb6c20e8f310
{
"result": "not_open",
"state": "responded"
}Open a document · GET /v2/documents/{id}/content
A manifest is not the document. Each version has a document_id and says whether its file is at_source (the manifest carried a source_url) or manifest_only. When NACOSTI, PPB (a trial sent to it) or the source ISERC opens a version, TRACE checks the caller on every request, fetches the file server to server from the source system, verifies its SHA-256 against the manifest, records the access and streams the PDF. TRACE keeps no bytes: the file stays where its ISERC keeps it.
| Answer | When |
|---|---|
| 200 application/pdf | The file, with X-Trace-Document, X-Trace-Kind, X-Trace-Version, X-Trace-Sha256, X-Trace-Approved and X-Trace-Scan. |
| 404 not_found | Unknown, or not yours to open: the same answer, so nothing is revealed. |
| 404 no_file | The source sent only the manifest for this version: ask it for the file. |
| 502 unavailable | The address is not on the source's registered host, or the source did not answer 200 within 10 seconds. |
| 502 checksum_mismatch | The file the source gave is not the version in the manifest; nothing is passed on. |
| 502 too_large | Over 20 MB. |
GET /v2/documents/{id}/access lists every opening with its result, for NACOSTI and the organisation that supplied the document.
For source systems: serving your files to TRACE
Put a source_url in the manifest, on the same host as your registered webhook receiver (TRACE fetches nothing else). When a reader opens the file, TRACE sends GET {source_url} with X-Trace-Timestamp (Unix seconds), X-Trace-Signature: sha256=<hex>, X-Trace-Document and X-Trace-Requester. The signature is HMAC-SHA256 over the text GET {path}\n{timestamp} ({path} is the source_url's path and query) with your TRACE webhook secret. Serve the PDF only if the signature matches, compared in constant time, and the timestamp is recent: how recent is your choice (the demo partners accept 5 minutes). Answer 200 with exactly the bytes in the manifest.
import hashlib, hmac, time
def trace_may_fetch(path: str, timestamp: str, signature: str, secret: str, max_age: int = 300) -> bool:
if not timestamp.isdigit() or abs(time.time() - int(timestamp)) > max_age:
return False # an old or replayed request
expected = "sha256=" + hmac.new(secret.encode(), f"GET {path}\n{timestamp}".encode(), hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, signature or "")import crypto from "node:crypto";
export function traceMayFetch(path, timestamp, signature, secret, maxAge = 300) { // path: path and query, as requested
if (!/^\d+$/.test(timestamp || "") || Math.abs(Date.now() / 1000 - Number(timestamp)) > maxAge) return false;
const expected = Buffer.from("sha256=" + crypto.createHmac("sha256", secret).update(`GET ${path}\n${timestamp}`).digest("hex"));
const given = Buffer.from(signature || "");
return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}No malware scan: every answer says X-Trace-Scan: not-scanned-demo. No encryption at rest, because TRACE stores no file. Apply scanning, type checks and retention before calling a file reviewable in production.
NACOSTI opens the protocol · 200
TRACE fetches the PDF from KEMRI's system, checks its fingerprint, records the opening and streams it. It keeps no bytes. Called with NACOSTI's key.
GET /v2/documents/4f52c58b-ce9b-4da0-88be-a4d34a051d45/content
Authorization: Bearer <token from POST /v1/token>200
cache-control: no-store
content-disposition: inline; filename="protocol.pdf"
content-type: application/pdf
x-correlation-id: 9e460e0c30de48108d402fcab0987463
x-trace-approved: true
x-trace-document: 4f52c58b-ce9b-4da0-88be-a4d34a051d45
x-trace-kind: protocol
x-trace-scan: not-scanned-demo
x-trace-sha256: a748f27f1e4b7e11c14e9df6c8a1f942930ca04775fa4e80eab4d5a616f5dcd3
x-trace-version: 1
"<the PDF: 847 bytes, starting %PDF-1.4>"A manifest-only version · 404 no_file
The source sent only the manifest for this version. Called with NACOSTI's key.
GET /v2/documents/05602b20-2241-4bf0-8d62-ef7847c2a522/content
Authorization: Bearer <token from POST /v1/token>404
content-type: application/json
x-correlation-id: 952ac085a29b4c338752283db107d71f
{
"result": "no_file",
"why": "the source sent only the manifest for this version; ask it for the file"
}Not entitled · 404 not_found
Not entitled: the same answer as a document that does not exist. Called with MTRH's key.
GET /v2/documents/4f52c58b-ce9b-4da0-88be-a4d34a051d45/content
Authorization: Bearer <token from POST /v1/token>404
content-type: application/json
x-correlation-id: 1f75d6fc4a3249419414f0ac83c7c975
{
"result": "not_found"
}An address off the registered host · 502 unavailable
TRACE fetches only from the source organisation's registered host. Called with NACOSTI's key.
GET /v2/documents/2245197f-c1fc-4925-8d19-34dea7a777c7/content
Authorization: Bearer <token from POST /v1/token>502
content-type: application/json
x-correlation-id: 80ab31ec599844c7af10a2b37cd77a7b
{
"result": "unavailable",
"why": "the file's address is not on the source system's registered host"
}The wrong file at the source · 502 checksum_mismatch
The file the source gave is not the version in the manifest: TRACE does not pass it on. Called with NACOSTI's key.
GET /v2/documents/d0a892d7-ba87-4c0a-90a6-d78911c241cd/content
Authorization: Bearer <token from POST /v1/token>502
content-type: application/json
x-correlation-id: d67f6f3baa6c407dadd92e91d8a7d0ec
{
"result": "checksum_mismatch",
"why": "the file the source gave is not the version in the manifest",
"expected_sha256": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"received_sha256": "ac0a9cc34a83515851b0aee520c6199e74fa6c66e75fa9bf03056a79d28a7449"
}Who opened it · 200
Who opened this version, when, and with what result. Called with NACOSTI's key.
GET /v2/documents/4f52c58b-ce9b-4da0-88be-a4d34a051d45/access
Authorization: Bearer <token from POST /v1/token>200
{
"document_id": "4f52c58b-ce9b-4da0-88be-a4d34a051d45",
"kind": "protocol",
"version": 1,
"access": [
{
"by": "NACOSTI",
"result": "ok",
"at": "2026-12-02T12:21:54.056417+00:00",
"correlation_id": "9e460e0c30de48108d402fcab0987463"
},
{
"by": "MTRH",
"result": "denied",
"at": "2026-12-02T12:21:54.142030+00:00",
"correlation_id": "1f75d6fc4a3249419414f0ac83c7c975"
}
]
}The access log, not yours · 404 not_found
Only NACOSTI and the organisation that supplied the document see its access log. Called with PPB's key.
GET /v2/documents/4f52c58b-ce9b-4da0-88be-a4d34a051d45/access
Authorization: Bearer <token from POST /v1/token>404
{
"result": "not_found"
}Read one application · GET /v2/applications/{id}
| Who | Sees |
|---|---|
| NACOSTI | Every application: the package, every document version and which counts, the timeline, the history of calls. |
| The ISERC that submitted it | The same, for its own applications. |
| PPB | The clinical trials sent to it: the package and the timeline, not the history. |
| Anyone else | 404 not_found. |
Each document version carries its document_id and file (at_source or manifest_only); requests lists the requests you may see. The timeline lists each stage with its holder, start, end, days, waiting_days (waiting on the source ISERC or the applicant), reviewer_days and flag. flag is on_time, amber (14 days or more), red (30 or more) or done; expiring is true when a PPB authorisation ends within 30 days.
With requests and files at the source · 200
Each document version has a document_id and says whether its file is at_source; the requests and the waiting days are in the answer. Called with NACOSTI's key.
GET /v2/applications/KE-KEMRI-2026-000046-6
Authorization: Bearer <token from POST /v1/token>200
{
"application_id": "KE-KEMRI-2026-000046-6",
"source": "KEMRI",
"source_ref": "KEMRI/SERU/2026/DEVD4FCAD-R",
"route": "non_clinical",
"stage": "nacosti_review",
"study": {
"title": "Malaria vaccine uptake among children under five in Kisumu County",
"type": "non_clinical",
"sites": [
"Kisumu"
],
"starts_on": "2027-01-15",
"ends_on": "2027-12-15"
},
"investigator": {
"name": "Dr. Achieng Otieno",
"institution": "Maseno University"
},
"documents": [
{
"kind": "affiliation_letter",
"label": "Affiliation letter",
"versions": [
{
"document_id": "9f5da96b-a4f3-4e1a-82cf-64f827203cd3",
"version": 1,
"filename": "affiliation-letter.pdf",
"sha256": "95d2375ddc8d0b809260182b85b46598bbdc1775f89c50ae371127ce56e0eb3a",
"bytes": 861,
"file": "at_source",
"approved": true,
"added_by": "KEMRI",
"at": "2026-12-02T12:21:36.155669+00:00"
}
],
"counts": 1
},
{
"kind": "other",
"label": "Other",
"versions": [
{
"document_id": "0875e1f4-8c05-493f-9380-d1ae94b71ce1",
"version": 1,
"filename": "site-confirmation.pdf",
"sha256": "e25fef143c209fec8b7f57481f285f0d6e7369a04d5b732015893dfc3908d789",
"bytes": 861,
"file": "at_source",
"approved": false,
"added_by": "KEMRI",
"at": "2026-12-02T12:21:47.643668+00:00"
}
],
"counts": 1
},
{
"kind": "protocol",
"label": "Protocol",
"versions": [
{
"document_id": "4f52c58b-ce9b-4da0-88be-a4d34a051d45",
"version": 1,
"filename": "protocol.pdf",
"sha256": "a748f27f1e4b7e11c14e9df6c8a1f942930ca04775fa4e80eab4d5a616f5dcd3",
"bytes": 847,
"file": "at_source",
"approved": true,
"added_by": "KEMRI",
"at": "2026-12-02T12:21:36.155669+00:00"
}
],
"counts": 1
}
],
"decisions": {
"ethics": "KEMRI/ERC/2026/0412"
},
"waiting_on": "reviewer",
"holder": "NACOSTI",
"days_in_stage": 0,
"flag": "on_time",
"expiring": false,
"timeline": [
{
"stage": "ethics_review",
"holder": "ISERC",
"started_at": "2026-12-02T12:21:36.202556+00:00",
"ended_at": "2026-12-02T12:21:39.653170+00:00",
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "on_time"
},
{
"stage": "nacosti_review",
"holder": "NACOSTI",
"started_at": "2026-12-02T12:21:39.653170+00:00",
"ended_at": null,
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "on_time"
}
],
"history": [
{
"type": "submitted",
"by": "KEMRI",
"at": "2026-12-02T12:21:36.202556+00:00",
"stage_to": "ethics_review",
"correlation_id": "a29bed228e034d0da907b08889fd764a"
},
{
"type": "ethics.approved",
"by": "KEMRI",
"at": "2026-12-02T12:21:39.653170+00:00",
"stage_to": "nacosti_review",
"correlation_id": "0292a69bd1bd43569d679224e69b92f9"
},
{
"type": "information.requested",
"by": "NACOSTI",
"at": "2026-12-02T12:21:44.483434+00:00",
"stage_to": null,
"correlation_id": "8deacb06d7cd4f6aa7496d3c7a8bfac8"
},
{
"type": "information.responded",
"by": "KEMRI",
"at": "2026-12-02T12:21:47.678192+00:00",
"stage_to": null,
"correlation_id": "60ba2a0d6f3840d4b24f0c5cde75ce4f"
}
],
"requests": [
{
"request_id": "58a2c3da-b2aa-4bc4-8108-f3cee904b6d8",
"requested_by": "NACOSTI",
"requested_from": "source_iserc",
"audience": "iserc_internal",
"note": "Please confirm whether the revised protocol covers the additional site in Siaya.",
"stage": "nacosti_review",
"state": "responded",
"requested_at": "2026-12-02T12:21:44.477022+00:00",
"response_due_at": "2026-12-09",
"response": {
"note": "Yes: Siaya is covered; the site confirmation letter is attached.",
"responded_by": "KEMRI",
"responded_at": "2026-12-02T12:21:47.671547+00:00",
"document_id": "0875e1f4-8c05-493f-9380-d1ae94b71ce1"
}
},
{
"request_id": "f60a0914-0c9e-4360-a30d-e71f4bbf6c7b",
"requested_by": "NACOSTI",
"requested_from": "applicant",
"audience": "applicant",
"note": "Please upload the licence fee receipt.",
"stage": "nacosti_review",
"state": "responded",
"requested_at": "2026-12-02T12:21:49.232132+00:00",
"response_due_at": null,
"response": {
"note": "Receipt received on eCitizen.",
"responded_by": "NACOSTI",
"responded_at": "2026-12-02T12:21:50.719663+00:00",
"document_id": null
}
}
]
}As NACOSTI · 200
NACOSTI sees every application, with its history of calls. Called with NACOSTI's key.
GET /v2/applications/KE-MTRH-2026-000061-5
Authorization: Bearer <token from POST /v1/token>200
{
"application_id": "KE-MTRH-2026-000061-5",
"source": "MTRH",
"source_ref": "MTRH/IREC/2026/DEVD4FCAD",
"route": "clinical_trial",
"stage": "licensed",
"study": {
"title": "Phase III trial of a single-dose sickle cell gene therapy in adolescents",
"type": "clinical_trial",
"sites": [
"Eldoret",
"Kakamega"
],
"starts_on": "2027-03-01",
"ends_on": "2029-02-28"
},
"investigator": {
"name": "Prof. Kiprono Chelimo",
"institution": "Moi University"
},
"documents": [
{
"kind": "affiliation_letter",
"label": "Affiliation letter",
"versions": [
{
"document_id": "e4b87d16-db67-422b-8264-3ed09d8e1048",
"version": 1,
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286,
"file": "manifest_only",
"approved": true,
"added_by": "MTRH",
"at": "2026-12-02T12:20:57.729239+00:00"
}
],
"counts": 1
},
{
"kind": "informed_consent_form",
"label": "Informed consent form",
"versions": [
{
"document_id": "362bc6dc-dcf9-4568-bb16-6d2edccc36e3",
"version": 1,
"filename": "consent-form.pdf",
"sha256": "a04aa0a557c054c2e72c5a1657e0212ecd46c8d6fe21dca9ab6e1a687e5653a1",
"bytes": 196208,
"file": "manifest_only",
"approved": true,
"added_by": "MTRH",
"at": "2026-12-02T12:20:57.729239+00:00"
}
],
"counts": 1
},
{
"kind": "investigators_brochure",
"label": "Investigator's brochure",
"versions": [
{
"document_id": "f41c5686-4760-46d3-9a03-5ac31433c987",
"version": 1,
"filename": "brochure.pdf",
"sha256": "a6d0ab662a3720d139371550dc9b97322169744bc14e13c0caab392c4c3b45b9",
"bytes": 192156,
"file": "manifest_only",
"approved": true,
"added_by": "MTRH",
"at": "2026-12-02T12:20:57.729239+00:00"
}
],
"counts": 1
},
{
"kind": "ppb_application_form",
"label": "PPB application form",
"versions": [
{
"document_id": "0794103c-6545-4c9b-a5e1-36a10615aac0",
"version": 1,
"filename": "ppb-application-form.pdf",
"sha256": "9e93244427056e452b66af561b0b6539be98581895cd38f644855fe764b0a5ef",
"bytes": 204312,
"file": "manifest_only",
"approved": false,
"added_by": "PPB",
"at": "2026-12-02T12:21:18.467612+00:00"
}
],
"counts": 1
},
{
"kind": "protocol",
"label": "Protocol",
"versions": [
{
"document_id": "05602b20-2241-4bf0-8d62-ef7847c2a522",
"version": 1,
"filename": "protocol-v1.pdf",
"sha256": "78f43bd46120077afc2348e0f3bb11f0136ae80a711ce46cb2593a51696e67cc",
"bytes": 195195,
"file": "manifest_only",
"approved": false,
"added_by": "MTRH",
"at": "2026-12-02T12:20:57.729239+00:00"
},
{
"document_id": "7372e628-a6f5-42d1-b6c9-03a88193c316",
"version": 2,
"filename": "protocol-v2.pdf",
"sha256": "194077f5647a40a8a6d13dfa48c746182d08a3645726a634254b06faf07d624c",
"bytes": 195195,
"file": "manifest_only",
"approved": true,
"added_by": "MTRH",
"at": "2026-12-02T12:21:04.473575+00:00"
},
{
"document_id": "e15b9089-5a1c-4db2-b664-02c6bf7fc8e2",
"version": 3,
"filename": "protocol-v3.pdf",
"sha256": "d040e5127c87262a53ba613154ba2a84e259b70b2878f1956fd17b72aad15ba6",
"bytes": 195195,
"file": "manifest_only",
"approved": false,
"added_by": "MTRH",
"at": "2026-12-02T12:21:11.873156+00:00",
"note": "approved version 2 is locked; this one is kept but does not count"
}
],
"counts": 2
}
],
"decisions": {
"ethics": "MTRH/IREC/2026/0412",
"ppb": "PPB/CT/2026/0103",
"licence": "NACOSTI/P/26/0412"
},
"ppb_valid_until": "2026-12-27",
"waiting_on": "reviewer",
"holder": "",
"days_in_stage": 0,
"flag": "done",
"expiring": false,
"timeline": [
{
"stage": "ethics_review",
"holder": "ISERC",
"started_at": "2026-12-02T12:20:57.851253+00:00",
"ended_at": "2026-12-02T12:21:08.407690+00:00",
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "on_time"
},
{
"stage": "ppb_review",
"holder": "PPB",
"started_at": "2026-12-02T12:21:08.407690+00:00",
"ended_at": "2026-12-02T12:21:21.898730+00:00",
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "on_time"
},
{
"stage": "nacosti_review",
"holder": "NACOSTI",
"started_at": "2026-12-02T12:21:21.898730+00:00",
"ended_at": "2026-12-02T12:21:25.819214+00:00",
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "on_time"
},
{
"stage": "licensed",
"holder": "",
"started_at": "2026-12-02T12:21:25.819214+00:00",
"ended_at": null,
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "done"
}
],
"history": [
{
"type": "submitted",
"by": "MTRH",
"at": "2026-12-02T12:20:57.851253+00:00",
"stage_to": "ethics_review",
"correlation_id": "5094c57c56c24f30b92c21562b1a0d13"
},
{
"type": "information.requested",
"by": "MTRH",
"at": "2026-12-02T12:21:01.167051+00:00",
"stage_to": null,
"correlation_id": "ce15962842f242b88f1b76612de65a6d"
},
{
"type": "document.added",
"by": "MTRH",
"at": "2026-12-02T12:21:04.478242+00:00",
"stage_to": null,
"correlation_id": "04a295c6fd7745e99b88f284cdced057"
},
{
"type": "event.refused",
"by": "NACOSTI",
"at": "2026-12-02T12:21:08.136877+00:00",
"stage_to": null,
"correlation_id": "a5cec4419d7141c49f107d431014f12a"
}
],
"requests": [
{
"request_id": "4a7646b6-9f31-448c-92dc-5c663d8c4343",
"requested_by": "MTRH",
"requested_from": "applicant",
"audience": "applicant",
"note": "Revise the dosing section.",
"stage": "ethics_review",
"state": "closed",
"requested_at": "2026-12-02T12:21:01.158542+00:00",
"response_due_at": null
}
]
}As PPB · 200
PPB sees the trials sent to it: the package and the timeline, not the history. Called with PPB's key.
GET /v2/applications/KE-MTRH-2026-000061-5
Authorization: Bearer <token from POST /v1/token>200
{
"application_id": "KE-MTRH-2026-000061-5",
"source": "MTRH",
"source_ref": "MTRH/IREC/2026/DEVD4FCAD",
"route": "clinical_trial",
"stage": "licensed",
"study": {
"title": "Phase III trial of a single-dose sickle cell gene therapy in adolescents",
"type": "clinical_trial",
"sites": [
"Eldoret",
"Kakamega"
],
"starts_on": "2027-03-01",
"ends_on": "2029-02-28"
},
"investigator": {
"name": "Prof. Kiprono Chelimo",
"institution": "Moi University"
},
"documents": [
{
"kind": "affiliation_letter",
"label": "Affiliation letter",
"versions": [
{
"document_id": "e4b87d16-db67-422b-8264-3ed09d8e1048",
"version": 1,
"filename": "affiliation-letter.pdf",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"bytes": 202286,
"file": "manifest_only",
"approved": true,
"added_by": "MTRH",
"at": "2026-12-02T12:20:57.729239+00:00"
}
],
"counts": 1
},
{
"kind": "informed_consent_form",
"label": "Informed consent form",
"versions": [
{
"document_id": "362bc6dc-dcf9-4568-bb16-6d2edccc36e3",
"version": 1,
"filename": "consent-form.pdf",
"sha256": "a04aa0a557c054c2e72c5a1657e0212ecd46c8d6fe21dca9ab6e1a687e5653a1",
"bytes": 196208,
"file": "manifest_only",
"approved": true,
"added_by": "MTRH",
"at": "2026-12-02T12:20:57.729239+00:00"
}
],
"counts": 1
},
{
"kind": "investigators_brochure",
"label": "Investigator's brochure",
"versions": [
{
"document_id": "f41c5686-4760-46d3-9a03-5ac31433c987",
"version": 1,
"filename": "brochure.pdf",
"sha256": "a6d0ab662a3720d139371550dc9b97322169744bc14e13c0caab392c4c3b45b9",
"bytes": 192156,
"file": "manifest_only",
"approved": true,
"added_by": "MTRH",
"at": "2026-12-02T12:20:57.729239+00:00"
}
],
"counts": 1
},
{
"kind": "ppb_application_form",
"label": "PPB application form",
"versions": [
{
"document_id": "0794103c-6545-4c9b-a5e1-36a10615aac0",
"version": 1,
"filename": "ppb-application-form.pdf",
"sha256": "9e93244427056e452b66af561b0b6539be98581895cd38f644855fe764b0a5ef",
"bytes": 204312,
"file": "manifest_only",
"approved": false,
"added_by": "PPB",
"at": "2026-12-02T12:21:18.467612+00:00"
}
],
"counts": 1
},
{
"kind": "protocol",
"label": "Protocol",
"versions": [
{
"document_id": "05602b20-2241-4bf0-8d62-ef7847c2a522",
"version": 1,
"filename": "protocol-v1.pdf",
"sha256": "78f43bd46120077afc2348e0f3bb11f0136ae80a711ce46cb2593a51696e67cc",
"bytes": 195195,
"file": "manifest_only",
"approved": false,
"added_by": "MTRH",
"at": "2026-12-02T12:20:57.729239+00:00"
},
{
"document_id": "7372e628-a6f5-42d1-b6c9-03a88193c316",
"version": 2,
"filename": "protocol-v2.pdf",
"sha256": "194077f5647a40a8a6d13dfa48c746182d08a3645726a634254b06faf07d624c",
"bytes": 195195,
"file": "manifest_only",
"approved": true,
"added_by": "MTRH",
"at": "2026-12-02T12:21:04.473575+00:00"
},
{
"document_id": "e15b9089-5a1c-4db2-b664-02c6bf7fc8e2",
"version": 3,
"filename": "protocol-v3.pdf",
"sha256": "d040e5127c87262a53ba613154ba2a84e259b70b2878f1956fd17b72aad15ba6",
"bytes": 195195,
"file": "manifest_only",
"approved": false,
"added_by": "MTRH",
"at": "2026-12-02T12:21:11.873156+00:00",
"note": "approved version 2 is locked; this one is kept but does not count"
}
],
"counts": 2
}
],
"decisions": {
"ethics": "MTRH/IREC/2026/0412",
"ppb": "PPB/CT/2026/0103",
"licence": "NACOSTI/P/26/0412"
},
"ppb_valid_until": "2026-12-27",
"waiting_on": "reviewer",
"holder": "",
"days_in_stage": 0,
"flag": "done",
"expiring": false,
"timeline": [
{
"stage": "ethics_review",
"holder": "ISERC",
"started_at": "2026-12-02T12:20:57.851253+00:00",
"ended_at": "2026-12-02T12:21:08.407690+00:00",
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "on_time"
},
{
"stage": "ppb_review",
"holder": "PPB",
"started_at": "2026-12-02T12:21:08.407690+00:00",
"ended_at": "2026-12-02T12:21:21.898730+00:00",
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "on_time"
},
{
"stage": "nacosti_review",
"holder": "NACOSTI",
"started_at": "2026-12-02T12:21:21.898730+00:00",
"ended_at": "2026-12-02T12:21:25.819214+00:00",
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "on_time"
},
{
"stage": "licensed",
"holder": "",
"started_at": "2026-12-02T12:21:25.819214+00:00",
"ended_at": null,
"days": 0,
"waiting_days": 0,
"reviewer_days": 0,
"flag": "done"
}
],
"requests": []
}Another ISERC's application · 404 not_found
Another ISERC's application: not found. Called with KEMRI's key.
GET /v2/applications/KE-MTRH-2026-000061-5
Authorization: Bearer <token from POST /v1/token>404
{
"result": "not_found"
}The pipeline · GET /v2/pipeline
Every application the caller may see (NACOSTI: all), each with stage, holder, waiting_on (reviewer, source_iserc or applicant), days_in_stage, waiting_days, flag, expiring, ppb_valid_until and total_days; with the thresholds (demo settings: amber 14, red 30, expiring 30 days), the counts per stage and the numbers red, amber and expiring. A caller that is not a TRACE member gets 403 not_allowed.
As NACOSTI (three rows shown) · 200
Every application NACOSTI may see. Shortened here to three rows, one of them waiting after a request. Called with NACOSTI's key.
GET /v2/pipeline
Authorization: Bearer <token from POST /v1/token>200
{
"thresholds": {
"amber_days": 14,
"red_days": 30,
"expiring_days": 30
},
"counts": {
"ethics_review": 52,
"ppb_review": 3,
"nacosti_review": 22,
"licensed": 27,
"rejected": 12
},
"red": 3,
"amber": 2,
"expiring": 12,
"applications": [
{
"application_id": "KE-KEMRI-2026-000005-2",
"source": "KEMRI",
"route": "clinical_trial",
"title": "Dose-finding study of a monoclonal antibody against RSV in infants",
"stage": "licensed",
"holder": "",
"waiting_on": "reviewer",
"days_in_stage": 1.1,
"flag": "done",
"waiting_days": 0,
"expiring": false,
"ppb_valid_until": "2027-09-27",
"total_days": 71.1
},
{
"application_id": "KE-MTRH-2026-000004-5",
"source": "MTRH",
"route": "clinical_trial",
"title": "Safety of a new artemisinin combination in pregnancy, second trimester",
"stage": "nacosti_review",
"holder": "NACOSTI",
"waiting_on": "reviewer",
"days_in_stage": 17.1,
"flag": "amber",
"waiting_days": 0,
"expiring": true,
"ppb_valid_until": "2026-12-13",
"total_days": 57.1
},
{
"application_id": "KE-KEMRI-2026-000046-6",
"source": "KEMRI",
"route": "non_clinical",
"title": "Malaria vaccine uptake among children under five in Kisumu County",
"stage": "nacosti_review",
"holder": "NACOSTI",
"waiting_on": "reviewer",
"days_in_stage": 0,
"flag": "on_time",
"waiting_days": 0,
"expiring": false,
"ppb_valid_until": null,
"total_days": 0
}
]
}Webhooks
Register with POST /v2/webhooks and {"url": "https://your-system.example/trace/webhooks", "events": [...]} (leave events out for all). The answer, 201, carries secret (whsec_…) once; registering again replaces the subscription and the secret. A url that is not http(s) gets 422 rejected.
| Event | When | Who receives it |
|---|---|---|
application.created | An application is accepted | NACOSTI (the package); the submitting ISERC (ID and stage only) |
document.version_added | A new document version is kept | NACOSTI; the ISERC; PPB once the trial was sent to it |
stage.changed | Any decision or request for changes | NACOSTI; the ISERC; PPB once the trial was sent to it |
package.sent_to_ppb | Ethics approves a clinical trial | PPB and NACOSTI (the package); the ISERC (ID and stage only) |
package.sent_to_nacosti | Ethics approves (non-clinical) or PPB authorises | NACOSTI and PPB for a trial (the package); the ISERC (ID and stage only) |
authorisation.expiring | A PPB authorisation ends within 30 days (when it is recorded, or found by the watcher) | NACOSTI; the ISERC; PPB |
stage.overdue | An application has been 30 days or more in one stage (the watcher, every 5 minutes; once per stage) | NACOSTI; the ISERC; PPB once the trial was sent to it |
licence.decided | NACOSTI issues or rejects the licence | NACOSTI; the ISERC; PPB for a trial |
information.requested | A request is opened (POST …/requests, or a *.changes_requested event) | Only the source ISERC and the requester, with the note |
information.responded | A request is answered | Only the source ISERC and the requester, with the answer's note |
Each notice is a POST of {"delivery_id", "event", "application_id", "occurred_at", "data"} with the headers X-Trace-Event, X-Trace-Delivery and X-Trace-Signature: sha256=<hex>, the HMAC-SHA256 of the exact raw body with your secret. Check it over the raw bytes, in constant time, before you parse; then answer 2xx. Any other answer, or none within 3 seconds, is a failure: the delivery stays failed and TRACE tries again every 30 seconds, at most 5 attempts. GET /v2/webhooks/deliveries lists your last 50 with their state.
import hashlib, hmac
def from_trace(raw_body: bytes, signature_header: str, secret: str) -> bool:
expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, signature_header or "")import crypto from "node:crypto";
export function fromTrace(rawBody, signatureHeader, secret) { // rawBody: the Buffer as received
const expected = Buffer.from("sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex"));
const given = Buffer.from(signatureHeader || "");
return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}A notice as received · application.created to NACOSTI
Content-Type: application/json
User-Agent: TRACE webhooks
X-Trace-Event: application.created
X-Trace-Delivery: 22919fbc-ee06-4a71-be6b-c0e8f38d5cbf
X-Trace-Signature: sha256=<64 hex: HMAC-SHA256 of the raw body with your webhook secret>
{
"delivery_id": "22919fbc-ee06-4a71-be6b-c0e8f38d5cbf",
"event": "application.created",
"application_id": "KE-MTRH-2026-000061-5",
"occurred_at": "2026-12-02T12:20:57.892605+00:00",
"data": {
"application_id": "KE-MTRH-2026-000061-5",
"source": "MTRH",
"source_ref": "MTRH/IREC/2026/DEVD4FCAD",
"route": "clinical_trial",
"stage": "ethics_review",
"study": {
"title": "Phase III trial of a single-dose sickle cell gene therapy in adolescents",
"type": "clinical_trial",
"sites": [
"Eldoret",
"Kakamega"
],
"starts_on": "2027-03-01",
"ends_on": "2029-02-28"
},
"investigator": {
"name": "Prof. Kiprono Chelimo",
"institution": "Moi University"
},
"documents": [
{
"kind": "affiliation_letter",
"version": 1,
"document_id": "e4b87d16-db67-422b-8264-3ed09d8e1048",
"sha256": "41eba867c9f8691f343bd033a54a3eabe4683d83ff70730a2942e4fcebf23c24",
"file": "manifest_only"
},
{
"kind": "informed_consent_form",
"version": 1,
"document_id": "362bc6dc-dcf9-4568-bb16-6d2edccc36e3",
"sha256": "a04aa0a557c054c2e72c5a1657e0212ecd46c8d6fe21dca9ab6e1a687e5653a1",
"file": "manifest_only"
},
{
"kind": "investigators_brochure",
"version": 1,
"document_id": "f41c5686-4760-46d3-9a03-5ac31433c987",
"sha256": "a6d0ab662a3720d139371550dc9b97322169744bc14e13c0caab392c4c3b45b9",
"file": "manifest_only"
},
{
"kind": "protocol",
"version": 1,
"document_id": "05602b20-2241-4bf0-8d62-ef7847c2a522",
"sha256": "78f43bd46120077afc2348e0f3bb11f0136ae80a711ce46cb2593a51696e67cc",
"file": "manifest_only"
}
],
"decisions": {}
}
}A notice as received · authorisation.expiring to NACOSTI
Content-Type: application/json
User-Agent: TRACE webhooks
X-Trace-Event: authorisation.expiring
X-Trace-Delivery: cefc32f3-5ed1-414f-bd8c-42a5f4f4f2b8
X-Trace-Signature: sha256=<64 hex: HMAC-SHA256 of the raw body with your webhook secret>
{
"delivery_id": "cefc32f3-5ed1-414f-bd8c-42a5f4f4f2b8",
"event": "authorisation.expiring",
"application_id": "KE-MTRH-2026-000060-7",
"occurred_at": "2026-12-02T12:20:36.857557+00:00",
"data": {
"application_id": "KE-MTRH-2026-000060-7",
"ppb_reference": "PPB/CTA/2026/1123",
"valid_until": "2026-12-27",
"days_left": 25
}
}A notice as received · licence.decided to PPB
Content-Type: application/json
User-Agent: TRACE webhooks
X-Trace-Event: licence.decided
X-Trace-Delivery: 2d113e82-4a24-4baf-88f0-93acde832f5a
X-Trace-Signature: sha256=<64 hex: HMAC-SHA256 of the raw body with your webhook secret>
{
"delivery_id": "2d113e82-4a24-4baf-88f0-93acde832f5a",
"event": "licence.decided",
"application_id": "KE-MTRH-2026-000060-7",
"occurred_at": "2026-12-02T12:21:15.175232+00:00",
"data": {
"application_id": "KE-MTRH-2026-000060-7",
"outcome": "issued",
"reference": "NACOSTI/P/27/41377"
}
}A notice as received · information.requested to NACOSTI
Content-Type: application/json
User-Agent: TRACE webhooks
X-Trace-Event: information.requested
X-Trace-Delivery: 0c2cd40c-1773-4d69-9246-d070321bb500
X-Trace-Signature: sha256=<64 hex: HMAC-SHA256 of the raw body with your webhook secret>
{
"delivery_id": "0c2cd40c-1773-4d69-9246-d070321bb500",
"event": "information.requested",
"application_id": "KE-KEMRI-2026-000046-6",
"occurred_at": "2026-12-02T12:21:49.261234+00:00",
"data": {
"request_id": "f60a0914-0c9e-4360-a30d-e71f4bbf6c7b",
"requested_by": "NACOSTI",
"requested_from": "applicant",
"audience": "applicant",
"note": "Please upload the licence fee receipt.",
"stage": "nacosti_review",
"state": "open",
"requested_at": "2026-12-02T12:21:49.232132+00:00",
"response_due_at": null,
"application_id": "KE-KEMRI-2026-000046-6",
"waiting_on": "applicant"
}
}A notice as received · information.responded to NACOSTI
Content-Type: application/json
User-Agent: TRACE webhooks
X-Trace-Event: information.responded
X-Trace-Delivery: c603ef5e-fb29-46b5-b08c-db9f2ca091cb
X-Trace-Signature: sha256=<64 hex: HMAC-SHA256 of the raw body with your webhook secret>
{
"delivery_id": "c603ef5e-fb29-46b5-b08c-db9f2ca091cb",
"event": "information.responded",
"application_id": "KE-KEMRI-2026-000045-8",
"occurred_at": "2026-12-02T12:22:00.398727+00:00",
"data": {
"request_id": "608ba3ca-56fb-4de1-abda-54a419c7deec",
"requested_by": "NACOSTI",
"requested_from": "source_iserc",
"audience": "iserc_internal",
"note": "Please confirm whether the revised protocol covers the additional site in Siaya.",
"stage": "nacosti_review",
"state": "responded",
"requested_at": "2026-12-02T12:21:42.849052+00:00",
"response_due_at": null,
"response": {
"note": "Yes: Siaya is covered; the site confirmation letter is attached.",
"responded_by": "KEMRI",
"responded_at": "2026-12-02T12:22:00.355546+00:00",
"document_id": "d1d6d1f4-2c18-4d03-9b17-5f45ff3136ca"
},
"application_id": "KE-KEMRI-2026-000045-8",
"waiting_on": "reviewer"
}
}Your deliveries (three shown) · 200
The last 50 notices to this organisation. Shortened here to three. Called with NACOSTI's key.
GET /v2/webhooks/deliveries
Authorization: Bearer <token from POST /v1/token>200
{
"deliveries": [
{
"delivery_id": "c603ef5e-fb29-46b5-b08c-db9f2ca091cb",
"event": "information.responded",
"application_id": "KE-KEMRI-2026-000045-8",
"state": "delivered",
"attempts": 1,
"last_status": 200,
"at": "2026-12-02T12:22:00.398747+00:00",
"delivered_at": "2026-12-02T12:22:03.318598+00:00"
},
{
"delivery_id": "fe43a2b5-9078-409d-bb2c-3f84451fbdfe",
"event": "document.version_added",
"application_id": "KE-KEMRI-2026-000045-8",
"state": "delivered",
"attempts": 1,
"last_status": 200,
"at": "2026-12-02T12:22:00.346196+00:00",
"delivered_at": "2026-12-02T12:22:03.318524+00:00"
},
{
"delivery_id": "449faee5-b6d3-4525-ac15-71a77f9b2f5a",
"event": "document.version_added",
"application_id": "KE-KEMRI-2026-000046-6",
"state": "delivered",
"attempts": 1,
"last_status": 200,
"at": "2026-12-02T12:21:57.556276+00:00",
"delivered_at": "2026-12-02T12:21:59.866850+00:00"
}
]
}Answers, retries and correlation
| Status | result or error | Meaning |
|---|---|---|
| 200, 201 | accepted | Done. |
| 200 | duplicate | You sent this event_id before; this is the first answer again. Nothing new happened. |
| 401 | invalid_client, invalid_token | The key or the token. |
| 403 | not_allowed | This kind of organisation never makes this call. |
| 403 | not_owner | Not now: the stage belongs to another organisation. |
| 409 | not_open | The request was already answered or closed. |
| 404 | no_file | The document's source sent only the manifest. |
| 502 | unavailable, checksum_mismatch, too_large | Opening a document: the source system did not give the right file. |
| 404 | not_found | Unknown, or not yours to see. |
| 422 | incomplete | Documents missing (missing) or unfit (wrong); nothing was created or sent on. |
| 422 | rejected | Fields to fix (fields). |
Idempotency: send every write with your own event_id. If a call times out, send it again with the same event_id: you get the first answer back (an accepted one as duplicate, a refused one as the same 422), never a second application or a second decision.
Correlation: the POST /v2 answers carry X-Correlation-ID; quote it when you report a problem. The history in GET /v2/applications/{id} shows the same id for each call.
Data protection
| Travels to NACOSTI | Stays at the ISERC, never stored by TRACE |
|---|---|
| Application ID, study title, type, sites, start and end dates | National ID or passport |
| The principal investigator's name and institution | Date of birth, phone, home address |
| The documents' names, sizes and fingerprints, and which version counts | The ISERC's reviewer notes |
| Each organisation's decision with its reference | Anything else sent in study or investigator: it is dropped on arrival |