List and retrieve diffs with detailed revision information

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

{
    "id": 1066237,
    "revision": {
        "id": 482602,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "66bdc2293bcedb5216ebc6faad57c4d8dbcd35ba",
        "head_changeset": "2acb40d22ab8541c71e5806241386b89aa8c64f4",
        "phabricator_id": 254430,
        "phabricator_phid": "PHID-DREV-43lbdb6wpwd4nbjljcrj",
        "title": "Bug 1972711 — add ip protection metrics.yaml and enable/disable pings. r=#ip-protection-reviewers!",
        "bugzilla_id": 1972711,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/482602/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/482602/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D254430"
    },
    "phid": "PHID-DIFF-ullgg7mzon64ql2rb3dg",
    "review_task_id": "D62QRX5AQCmTlCGIZ7hfVA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "2acb40d22ab8541c71e5806241386b89aa8c64f4",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1066237/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-19T18:21:07.473331Z"
}