List and retrieve diffs with detailed revision information

GET /v1/diff/1077851/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1077851,
    "revision": {
        "id": 490517,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "79fb45ef6b0662ad43d68e6137d4daf496206ff4",
        "head_changeset": "e4bc53cc40e807bc6fb29e762d3f37bf707c2c0a",
        "phabricator_id": 256066,
        "phabricator_phid": "PHID-DREV-5g7xoajzk5alkrfi2y3y",
        "title": "Bug 1975643 - [riscv64] Part 3: Implement WASM JSPI stack switching for native riscv64. r=rhunt",
        "bugzilla_id": 1975643,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/490517/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/490517/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D256066"
    },
    "phid": "PHID-DIFF-rez3ar3ig67v2gkrblnm",
    "review_task_id": "CwAFNc31SWSoGAxGLKVGpA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "e4bc53cc40e807bc6fb29e762d3f37bf707c2c0a",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1077851/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-07-04T04:10:24.749282Z"
}