List and retrieve diffs with detailed revision information

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

{
    "id": 1051491,
    "revision": {
        "id": 477177,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "702169dea57fc7ca0cad8244e7cf7577072e85aa",
        "head_changeset": "9268dbe033b54b251b21ae17f5af1344b77203b9",
        "phabricator_id": 252254,
        "phabricator_phid": "PHID-DREV-ahblr3rscnx3ousltyyb",
        "title": "Bug 1968858 - Check array index is in bounds before dereferencing. r=mpohle,cdupuis",
        "bugzilla_id": 1968858,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477177/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477177/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D252254"
    },
    "phid": "PHID-DIFF-5deq4yu3bozbyjaajxvx",
    "review_task_id": "J2EvGjwEReO-Ez_Hsl5MNw",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "9268dbe033b54b251b21ae17f5af1344b77203b9",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1051491/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-02T22:53:54.478647Z"
}