List and retrieve diffs with detailed revision information

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

{
    "id": 1066421,
    "revision": {
        "id": 481048,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "5fb84cb353d47eb6342b68c4fd91dab68333be02",
        "head_changeset": "59cd9a4b33a02ce95cb1471bc3c86c307ee1b5cc",
        "phabricator_id": 254126,
        "phabricator_phid": "PHID-DREV-sjfhyjvcd5zu24ik6ze4",
        "title": "Bug 1971446: Support GuardElementsArePacked in scalar replacement r=jandem",
        "bugzilla_id": 1971446,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/481048/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/481048/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D254126"
    },
    "phid": "PHID-DIFF-lsposk6klenoj55ou2rc",
    "review_task_id": "WWW6swyHSC-efxjfgusg9w",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "0427f71416577b520c1163fa1f94fa5d4a94755e",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1066421/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-19T21:50:01.043394Z"
}