List and retrieve diffs with detailed revision information

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

{
    "id": 1066148,
    "revision": {
        "id": 482459,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "066b50b0e84c1702c949f954497562c5a05aa73f",
        "head_changeset": "2556526b654b641eef5d7c49b1b3fcc4b3e3caec",
        "phabricator_id": 254415,
        "phabricator_phid": "PHID-DREV-lhtmnjo3p5omt37ufo7q",
        "title": "Bug 1968301 - ruff: fix repeated equality comparison r=sylvestre",
        "bugzilla_id": 1968301,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/482459/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/482459/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D254415"
    },
    "phid": "PHID-DIFF-3zit7dnggixn7dlugc7t",
    "review_task_id": "Geo-osPJRhGxu-KFFhpo0A",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "2556526b654b641eef5d7c49b1b3fcc4b3e3caec",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1066148/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-19T16:15:16.094980Z"
}