List and retrieve diffs with detailed revision information

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

{
    "id": 1051706,
    "revision": {
        "id": 477218,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "83282e03aeada23bfaffed73d63643c41fa21949",
        "head_changeset": "805b7451a2ac0e65e9d43ef67bf12d5c2aa096ee",
        "phabricator_id": 252307,
        "phabricator_phid": "PHID-DREV-tsw64z7ebajqgcjbsinv",
        "title": "Bug 1969870 - Extend the inc-origin-init test variant expiration for 6 months; r=jmaher",
        "bugzilla_id": 1969870,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477218/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477218/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D252307"
    },
    "phid": "PHID-DIFF-zhtdtuf7eacgwf64jzwu",
    "review_task_id": "Xg1ZbigrSiunRTwGBbnfPg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "805b7451a2ac0e65e9d43ef67bf12d5c2aa096ee",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1051706/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-03T11:07:22.794618Z"
}