List and retrieve diffs with detailed revision information

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

{
    "id": 1112202,
    "revision": {
        "id": 521337,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "b7573b229c2d2e6a660decc4e3ed7183c761f8e1",
        "head_changeset": "65f9427933805df1958be69b95cc9ea0bf854de6",
        "phabricator_id": 262636,
        "phabricator_phid": "PHID-DREV-cl5ust22e6cnq7klcfwq",
        "title": "Bug 1970931 - Rerun mach gen-use-counter-metrics; r=mgaudet!",
        "bugzilla_id": 1970931,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/521337/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/521337/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D262636"
    },
    "phid": "PHID-DIFF-mde3pymcl4eonoo3iqyv",
    "review_task_id": "RSQLVQsNSjeTxmAM6MkyDg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "65f9427933805df1958be69b95cc9ea0bf854de6",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1112202/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-08-26T19:31:12.660769Z"
}