Submit via API
Create a submission, upload documents, submit, and get a reference number back.
Sandbox only for now. Live submissions open once virus scanning is on. Sandbox submissions never reach the committee.
Get an API key
- Sign in with your work email, or request access if your organisation has no account yet.
- Create a key. Name it after the system that will use it.
- Copy it. It is shown once.
Loading…
Up to 5 active sandbox keys per organisation. Need a live key? Email [email protected].
How it works
Get a key. Sign in, or request access, then create a sandbox key in a minute. Live keys come from the coordinator.
Start a submission. Send the study details. You get a draft and a checklist.
Upload documents. Register each file, send it to the upload link, then confirm.
Submit. Confirm the declarations. You get a reference number.
Track it. Poll for status and events. No webhooks yet.
Answer queries. Reply to queries, upload new versions, then send your response.
Basics
Requests
REST over HTTPS at /api/v1 on the same host as this site. JSON in and out, UTC timestamps in ISO 8601. Send Content-Type: application/json on requests with a body.
Authentication
Send your key as Authorization: Bearer hrec_live_…, or hrec_test_… for the sandbox. A key belongs to one organisation and sees that organisation's submissions. The secret is shown once and only a hash is stored, so a lost key is replaced, not recovered. Revoke a key at any time from the key list above. Sandbox keys expire after 30, 90 (default) or 365 days.
Sandbox and live
A key works in one environment only. Sandbox submissions get a TEST- reference, are kept apart and never reach the committee or the automated checks. They wait at each checkpoint until you play the committee's side with simulate (see Testing the query flow). Live submissions get an HREC- reference and go through the automated checks and the committee. Sandbox submissions are kept, and GET /submissions with a sandbox key lists them; a live key never sees them.
Scopes
submissions:read covers every GET. submissions:write covers creating, editing, uploading, submitting and replying. Keys currently carry both. A missing scope returns 403.
Idempotency
Send an Idempotency-Key (up to 255 characters) with POSTs so a retry never creates a duplicate. Within 24 hours the same key with the same request replays the original response and adds Idempotent-Replayed: true. The same key with a different request returns 422.
Rate limit
60 requests a minute per key. Over the limit you get 429 with a Retry-After header (seconds). Wait that long and retry; a retry with the same Idempotency-Key is safe.
Files
Up to 500 MB each and 3 GB per submission. Accepted types are PDF, Word (.doc and .docx), Excel (.xlsx), plain text, PNG and JPEG; GET /checklist lists them. You declare each file's SHA-256 up front. The upload link accepts the bytes without checking them; we check size and SHA-256 when you confirm the upload, and reject a file that does not match, so the committee reviews exactly what you sent.
Quick start
Try it against the sandbox with curl. Replace the key with yours.
# Check your key works and see the submission package
curl https://vialhrec.pages.dev/api/v1/checklist \
-H "Authorization: Bearer hrec_test_…"
# Start a submission
curl -X POST https://vialhrec.pages.dev/api/v1/submissions \
-H "Authorization: Bearer hrec_test_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{ "type": "new_application",
"study": { "title": "Phase 1 study of ABC 123", "protocol_number": "ABC123-001",
"sponsor": "Example Sponsor Pty Ltd",
"principal_investigator": { "name": "Dr A Investigator", "email": "[email protected]" } } }'
Endpoints
| Endpoint | What it does |
|---|---|
GET /checklist | The submission types, every checklist item and which are required, file limits and accepted content types |
POST /submissions | Start a draft from type and study. Returns 201 with the submission and its checklist |
GET /submissions | List your organisation's submissions, newest first. Query: status, limit (1 to 100, default 25), cursor (use next_cursor from the last page) |
GET /submissions/:id | Status, checklist, documents, open query count, decision |
PATCH /submissions/:id | While draft only: edit study fields, or mark optional items not applicable with a reason (null clears it) |
POST /submissions/:id/documents | Register a document (item, filename, content_type, size_bytes, sha256, optional version_label and replaces). Returns the upload instructions |
PUT /submissions/:id/documents/:doc/content | Upload the bytes through the API when the upload link points here (up to 100 MB; send Content-Length and your key) |
POST /submissions/:id/documents/:doc/complete | Confirm the upload. We check size and SHA-256, then scan the file |
DELETE /submissions/:id/documents/:doc | Remove a document that has not gone to the committee. After that, register a replacement with replaces |
POST /submissions/:id/submit | Confirm declarations, lock and submit. Returns the reference, or 422 listing what is blocking. Repeating it on a submitted submission returns it unchanged |
GET /submissions/:id/queries | Automated check items and committee queries, by round, with your replies |
POST /submissions/:id/queries/:q/replies | Answer a query. Nothing is sent until you call respond (or proceed after automated checks) |
POST /submissions/:id/proceed | After automated checks (prescreen_feedback): { "action": "proceed" } sends it to the committee as it is, { "action": "recheck" } runs the checks again after you upload fixes |
POST /submissions/:id/respond | When a response is needed: send every reply and revised document back to the committee. Returns 422 while any query is unanswered |
POST /submissions/:id/simulate | Sandbox keys only: play the committee's side at one checkpoint (automated checks, validation, decision) to test every status and query round. See Testing the query flow. Returns 404 with a live key |
GET /submissions/:id/events | The events you can see: your own API actions and the main committee milestones. Internal committee activity is never included |
All paths are under /api/v1. Reads need submissions:read; everything else needs submissions:write.
Submission status
The status field of a submission is one of these values. status_label gives the plain-language text.
| status | Meaning | What you can do |
|---|---|---|
draft | In preparation | Edit, upload and delete documents, submit |
prescreen | Automated checks running | Wait, then poll (sandbox: simulate the result) |
prescreen_feedback | Check items for you to review | Reply, upload fixes, then proceed or recheck |
validation | Submitted; the coordinator is checking it | Wait |
in_review, voting, chair_review | Under committee review | Wait |
awaiting_response | The committee has queries for you | Read queries, reply, upload new versions, then respond. response_due_at gives the date |
approved, not_approved, withdrawn | Final | Read decision; no further changes |
When there is an outcome, decision is one of approved, approved_conditions, provisional, deferred or not_approved. Documents can be added only while the status is draft, prescreen_feedback or awaiting_response; any other status returns 409.
Uploading a file
Every upload is three calls: register, send the bytes, confirm.
- Register.
POST /submissions/:id/documentswith the lowercase hex SHA-256 and the exact size in bytes. The response includes anuploadobject. - Send the bytes. Make a
PUTtoupload.urlwith exactly the headers inupload.headers. Most uploads go straight to secure storage and the link lasts an hour (expires_at). Ifupload.viaisapi, the URL is this API's/contentendpoint: send yourAuthorizationheader too, and keep files under 100 MB. Do not send your API key to a storage URL. - Confirm.
POST …/documents/:doc/complete. This is where size and SHA-256 are checked, not at upload, so a successfulPUTdoes not mean the file is accepted. A file whose size or SHA-256 does not match is discarded with a 422; upload it again. The response showsupload_stateandscan_status. A document counts only once it isuploadedand the scan isclean.
To send a new version of a document, register it with replaces set to the earlier document's id.
Errors
Errors use application/problem+json: type, title, status and detail. Validation errors add an errors array naming each field at fault.
400 { "title": "Invalid request", "status": 400,
"detail": "Some study fields are missing or invalid",
"errors": [ { "field": "study.sponsor", "problem": "Required" } ] }
| Status | When |
|---|---|
400 | Invalid JSON, a missing or invalid field, a checksum that does not match the declared bytes, or a bad cursor |
401 | No key, a malformed key, or a key that is wrong or revoked |
403 | The key lacks the scope this call needs |
404 | The submission, document or query does not exist for your organisation and environment |
409 | The submission is in a status that does not allow this call, or the file has not arrived yet |
429 | More than 60 requests in a minute on one key. See Retry-After |
411 | Upload through the API without a Content-Length header |
422 | Submission incomplete (lists the blocking items), unanswered queries, upload does not match, or an Idempotency-Key reused with a different request |
500 | Something went wrong on our side. It has been logged |
Testing the query flow in the sandbox
Nobody at the committee sees sandbox submissions, so with a sandbox key you play the committee's side yourself. POST /submissions/:id/simulate applies one checkpoint's result. A negative result opens a real round of sample queries, so you can test replies, new versions, proceed and respond exactly as they will work live.
| Body | Needs status | Result |
|---|---|---|
{ "step": "prescreen", "result": "pass" } | prescreen | validation |
{ "step": "prescreen", "result": "feedback", "items": 2 } | prescreen | prescreen_feedback with automated check items. Then proceed or recheck (which returns to prescreen) |
{ "step": "validation", "result": "valid" } | validation | in_review |
{ "step": "validation", "result": "invalid", "queries": 2 } | validation | awaiting_response, due in 60 days. After respond: back to validation |
{ "step": "decision", "outcome": "approved" } or "approved_conditions" | in_review, voting, chair_review | approved |
{ "step": "decision", "outcome": "provisional", "queries": 2 } | same | awaiting_response. After respond: chair_review |
{ "step": "decision", "outcome": "deferred", "queries": 2 } | same | awaiting_response. After respond: in_review, a new review cycle |
{ "step": "decision", "outcome": "not_approved" } | same | not_approved |
items and queries are 1 to 5 (default 2). A step that does not fit the current status returns 409 naming the statuses it needs. Simulated steps show in events as committee actions and send no email. For more rounds, call decision again after you respond.
# A submission that is invalid at validation, then approved after one round of queries
POST /api/v1/submissions/sub_…/simulate { "step": "prescreen", "result": "pass" }
POST /api/v1/submissions/sub_…/simulate { "step": "validation", "result": "invalid", "queries": 2 }
GET /api/v1/submissions/sub_…/queries
POST /api/v1/submissions/sub_…/queries/c_…/replies { "body": "Clarified in protocol v2.1" } # for each query
POST /api/v1/submissions/sub_…/respond { "note": "All queries answered" }
POST /api/v1/submissions/sub_…/simulate { "step": "validation", "result": "valid" }
POST /api/v1/submissions/sub_…/simulate { "step": "decision", "outcome": "approved" }
Full example
Start a submission, upload the protocol, submit. Repeat the upload for every required item first.
# 1. Start a submission
POST /api/v1/submissions
{ "type": "new_application",
"study": { "title": "Phase 1 study of ABC 123", "protocol_number": "ABC123-001",
"sponsor": "Example Sponsor Pty Ltd",
"principal_investigator": { "name": "Dr A Investigator", "email": "[email protected]" } } }
201 { "id": "sub_…", "status": "draft", "reference": null,
"checklist": [ { "item": "protocol", "number": 3, "required": true, "state": "missing", … }, … ] }
# 2. Register the document, send the bytes, confirm
POST /api/v1/submissions/sub_…/documents
{ "item": "protocol", "filename": "ABC123-001_Protocol_v2.0.pdf", "content_type": "application/pdf",
"size_bytes": 4182233, "sha256": "9f86d0…", "version_label": "v2.0" }
201 { "id": "sdoc_…", "upload": { "method": "PUT", "url": "https://…", "headers": { … }, "via": "storage" } }
PUT <upload.url> (send the file with the headers given)
POST /api/v1/submissions/sub_…/documents/sdoc_…/complete
200 { "upload_state": "uploaded", "scan_status": "clean", … }
# 3. Mark optional items not applicable, then submit
PATCH /api/v1/submissions/sub_…
{ "not_applicable": { "cta": "No Clinical Trial Approval form is needed for this study" } }
POST /api/v1/submissions/sub_…/submit
{ "declarations": { "accurate": true, "authorised": true,
"no_identifiable_participant_data": true } }
200 { "reference": "HREC-2026-0042", "status": "prescreen", … } # sandbox: "TEST-2026-0001"