Skip to content
Docs: Partner API for journals

Partner API for journals

Send every round from your editorial system; receive a level, issues and a report link. Conferences and preprint servers connect the same way.

Applies to: RepoReady Platform

Last updated

On this page

Your system sends a submission’s code, optionally with the manuscript, as round 0 and each revision as a new round. Authors read results without an account; revising needs a free account.

Coming soonJournal desk for editors. Rounds against your target level, authors’ answers for you to accept, confidential both ways.

Access and signing

RepoReady sets up access per journal: a partner name and an encrypted signing secret. Request it at [email protected].

There is no separate test environment yet. Write to [email protected] before you go live and we will agree how to test your integration.

All endpoints live under https://api.repoready.ai/api/partner-runs. Every request carries three headers:

  • x-partner-name: your partner name.
  • x-partner-timestamp: the current Unix time in seconds.
  • x-partner-signature: the hex-encoded HMAC-SHA256 of the string below, keyed with your secret.
signature string
<x-partner-timestamp>.<METHOD>.<path>.<body>

1790850000.GET./api/partner-runs/v2/submissions/5f0c…/rounds/1.{}

path includes /api and any query string; body is the compact JSON sent, or {} for GET and DELETE. A wrong signature or a timestamp over five minutes off returns 401; a replayed write returns 409. Sign every request anew, retries included.

A minimal client in Python:

client.py
import hashlib, hmac, json, time
import requests

API = "https://api.repoready.ai"
PARTNER = "your-journal"          # your partner name
SECRET = b"your-signing-secret"   # never commit it

def call(method, path, body=None):
    ts = str(int(time.time()))
    raw = json.dumps(body or {}, separators=(",", ":"), ensure_ascii=False)
    signed = f"{ts}.{method}.{path}.{raw}"
    digest = hmac.new(SECRET, signed.encode(), hashlib.sha256).hexdigest()
    headers = {
        "x-partner-name": PARTNER,
        "x-partner-timestamp": ts,
        "x-partner-signature": digest,
        "Content-Type": "application/json",
    }
    data = raw.encode() if method in ("POST", "PUT", "PATCH") else None
    r = requests.request(method, API + path, headers=headers, data=data)
    return r.json()

Submissions and rounds

A submission is one manuscript; each version is a round. Upload the code, then create the submission with round 0:

POST /jobs/uploads, PUT, POST /v2/submissions
# 1. Upload the code
up = call("POST", "/api/partner-runs/jobs/uploads",
          {"kind": "code", "filename": "JRNL-2026-0412.zip"})
with open("JRNL-2026-0412.zip", "rb") as f:
    requests.put(up["uploadUrl"], data=f,
                 headers={"Content-Type": "application/zip"})

# 2. Create the submission with round 0
sub = call("POST", "/api/partner-runs/v2/submissions", {
    "partnerSubmissionId": "JRNL-2026-0412",
    "journalRef": "JRNL-2026-0412",
    "source": {"type": "upload", "uploadKey": up["uploadKey"]},
})["submission"]
sub_id = sub["id"]

Upload a manuscript the same way ("kind": "manuscript"). source can also name a public GitHub repository: "type": "github", repoFullName and a tag or commit as ref.

Fields

  • partnerSubmissionId (required): your manuscript ID; resending it returns the existing submission.
  • journalRef, title (optional): echoed in the results.
  • scope (optional): the review scope of the round’s check, materials (default, the L1 check) or workflow (the L2 check, a full review). The older effortLevel still works: low and medium run as materials, high as workflow.
  • reportLinkDays (optional): the report link’s lifetime, 1 to 365 days (default 90).

Create each revision as the next round once the previous one finished, up to rounds 0, 1 and 2; resending a round number returns it.

POST /api/partner-runs/v2/submissions/:id/rounds
{
  "round": 1,
  "source": {
    "type": "github",
    "repoFullName": "example-lab/cell-atlas",
    "ref": "v1.3.0"
  },
  "scope": "materials"
}

Round results

GET /v2/submissions/:id lists the rounds; GET /v2/submissions/:id/rounds/:n returns one in full, with status creating, queued, running, completed or failed. Check ok in every response; refusals also carry an HTTP status and a code.

GET /api/partner-runs/v2/submissions/:id/rounds/1
{
  "ok": true,
  "round": {
    "round": 1,
    "status": "completed",
    "ladder": {
      "status": "ready",
      "level": 1, "levelName": "Available",
      "gates": [
        { "gate": "A", "status": "met" },
        { "gate": "B", "status": "not_met" },
        { "gate": "C", "status": "unknown" }
      ],
      "issues": [{ "gate": "B", "title": "...",
                   "editorText": "...", "authorText": "..." }],
      "resultUnits": []
    },
    "reportLink": { "status": "active",
                    "url": "https://app.repoready.ai/shared/...",
                    "expiresAt": "2026-12-30T09:30:00.000Z",
                    "revokedAt": null },
    "disclaimer": "Automated analysis may contain errors and ..."
  }
}
  • ladder.level with its name: the round’s reproducibility level. Materials, workflow, integrity and automation are reported separately.
  • ladder.gates: requirement groups A (what L1 needs), B (what L2 needs) and C (automation), each met, not_met, unknown or not_assessed.
  • ladder.issues: what holds the level back, with editorText for the editor and authorText, the fix for the author.
  • ladder.resultUnits: linked figures and tables with panel groups, often none.
  • ladder.status: ready, pending, not_requested, or unavailable or failed with a reason.
  • runs, credits and sizeClass: the round’s runs, the credits it used, and standard or large (a large paper counts double).

Automation is reported beside the level and does not establish reproduced results. Requirements and guides explain the assessments.

Refusal codes: SUBMISSION_NOT_FOUND, ROUND_NOT_FOUND (404); LINK_REFUSED (403); MAX_ROUNDS_REACHED, ROUND_OUT_OF_ORDER, PREVIOUS_ROUND_OPEN, SUBMISSION_INCOMPLETE, REQUEST_REPLAYED, LINK_PENDING, LINK_REVOKED (409).

Webhooks

Instead of polling, set an endpoint with PUT /v2/webhook and {"url": "https://…"} (default port, public host); an optional events list limits what is sent. The answer contains the signing secret once. POST /v2/webhook/test sends a test event.

  • run.completed: an analysis or check finished (data.status).
  • round.completed: a round finished, with its level and report link; again, with fresh: true, after …/fresh-verification.
  • round.sent (once the handover ships): the authors sent a revision with their answers (round, answers); your check of it follows.
  • receipt.redeemed (once the handover ships): a receipt that waited for your confirmation was confirmed.
  • sponsorship.limit_reached: the authors’ allowance is used up (allowanceCredits, moreRequested).
  • sponsorship.more_requested: the authors ask for more; note is their own text, so treat it as untrusted.

Each delivery POSTs {id, type, createdAt, data} with x-repoready-event, x-repoready-delivery (the event ID, also on retries), x-repoready-timestamp and x-repoready-signature. Answer 2xx; anything else is retried seven times over about two days.

round.completed
{
  "id": "6f1c0e9a-...",
  "type": "round.completed",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "data": {
    "partnerSubmissionId": "JRNL-2026-0412",
    "round": 1,
    "status": "completed",
    "ladder": { "status": "ready", "level": 1, "levelName": "Available" },
    "reportUrl": "https://app.repoready.ai/shared/..."
  }
}

Check the signature first:

webhook.py
import hashlib, hmac, json, time

WEBHOOK_SECRET = b"whsec_..."   # from PUT /v2/webhook

def verify(headers, body: bytes) -> dict:
    ts = int(headers["x-repoready-timestamp"])
    if abs(time.time() - ts) > 300:
        raise ValueError("delivery too old")
    signed = f"{ts}.".encode() + body
    expected = "v1=" + hmac.new(WEBHOOK_SECRET, signed,
                                hashlib.sha256).hexdigest()
    if not hmac.compare_digest(expected, headers["x-repoready-signature"]):
        raise ValueError("bad signature")
    return json.loads(body)   # deduplicate on its "id"

Report links

  • A round’s report link appears once its check has finished (reportLink.status is pending until then): a read-only page of that round’s level, requirement groups and findings, behind a long random token, unlisted, and marked for search engines not to index. A round that ended without a result has none (none).
  • Anyone with the link can read the report without an account until it expires (90 days, or reportLinkDays).
  • PATCH /v2/submissions/:id/rounds/:n/report-link with {"expiresInDays": 30} changes the expiry; an expired link works again at the same URL.
  • POST …/report-link/revoke withdraws it at once, for good; POST …/report-link replaces a revoked or expired one.

Working with your authors

These routes are your side: ask the authors for a revision, release rounds to them, decide on their answers, compare rounds and redeem their receipt codes. The authors’ side:

Coming soonJournal handover for authors. Take the journal’s findings into your project; send the checked revision with your answers.

Revision requests

Once a round has completed, ask the corresponding author for a revision:

POST /api/partner-runs/v2/submissions/:id/revision-request
# Once round 0 has completed: ask the authors for a revision
path = f"/api/partner-runs/v2/submissions/{sub_id}/revision-request"
r = call("POST", path, {
    "message": "Please address the open issues.",
    "authorDeadline": "2026-12-15T00:00:00.000Z",
    "sponsorship": {"allowanceCredits": 2},
    "author": {"email": "[email protected]", "deliver": "journal"},
})
letter_link = r["invitationUrl"]   # shown once: for your decision letter
  • message, authorDeadline: your message and the authors’ deadline.
  • profileId, highlightItems: the policy profile with your target level (default: your journal’s) and requirement IDs to point out.
  • sponsorship: the authors’ allowance for their re-checks, {"allowanceCredits": n}, or false for none. Unless you send false, a plan without the allowance answers 403.
  • author: email, lang and deliver: journal (default) returns invitationUrl once, for your decision letter; repoready has RepoReady email the invitation.

Releases, decisions and the allowance

  • POST …/rounds/:n/release releases a completed round to the authors, with an optional message.
  • GET …/rounds/:n/units lists every unit with the authors’ answer and your decision. POST …/rounds/:n/decisions with requirementId, unitKey and status (met, not_met, unknown or na) decides one; "source": "author_statement" accepts the authors’ answer. A reason stays internal unless reasonVisibility is author.
  • GET …/comparison?round=n compares round n with the one before (newly met, still open, regressed, added, removed), with the authors’ answers beside your verdict.
  • PATCH …/sponsorship changes the allowance: action topup (with credits), update, pause, resume or end.
  • POST …/decision with accepted or rejected closes the submission; open invitations stop working.

Once the handover ships, a revision the authors send from RepoReady becomes your next round (origin authors, with answers). Every round is your own check: later rounds reuse only your own earlier results for what did not change, never the authors’. POST …/rounds/:n/fresh-verification checks a round again without that reuse, for the credits of a first check.

GET /v2/submissions/:id also carries decision, revisionRequest, author (invited or claimed), sponsorship (allowanceCredits, creditsUsed, creditsLeft) and credits (rounds, authors); each round origin (partner, authors or receipt), journal (the level after your decisions, targetMet), released, sentAt and answers.

Receipt codes

Authors cannot make out receipt codes until the journal handover ships; the routes are live.

A receipt code (RR- and 16 letters or digits) stands for an author’s RepoReady check made out to your journal; it works once, for 30 days. POST /v2/receipts with code, partnerSubmissionId, authorEmail and the other new-submission fields except source redeems it:

  • Round 0 is the author’s version with their own check, read-only and labelled as theirs (ladder.status authors_check), never your verdict.
  • Round 1 is your own first check of that version, without their answers.
  • It binds at once when your manuscript ID (journalRef, else partnerSubmissionId) matches the author’s and authorEmail is the address they verified; otherwise it answers needs_confirmation. GET /v2/receipts lists those; POST /v2/receipts/:id/confirm or …/decline settles one.
  • An invalid code, or one for another journal, is refused with a code; repeated failures answer 429.

Usage and limits

  • GET /v2/usage returns runs by status and kind, the credits used, submissions and rounds, in total or ?since=2026-09-01; authors is the part your authors’ allowances paid.
  • Your access can have a limit on new rounds per 24 hours (429 beyond it); resending a round does not count.

Data handling

  • Code, manuscripts and reports are stored with our hosting provider in Germany; the analysis uses the model providers listed in our privacy policy.
  • Submissions are kept until deleted on request (the API has no delete endpoint); retention is agreed in your journal’s contract.
  • For personal data RepoReady processes on a journal’s behalf, both parties conclude a data processing agreement under Art. 28 GDPR (Terms § 13); template from [email protected].
  • Do not send submissions with special categories of personal data under Art. 9 GDPR, such as non-pseudonymized patient data.

Services involved: data handling.

Displaying results

Always show the level with its name, and this note (disclaimer in each round result) wherever you display the level or issues:

Automated analysis may contain errors and is not a substitute for peer review.

Back to top