List and retrieve diffs with detailed revision information

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

{
    "id": 1058471,
    "revision": {
        "id": 477960,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "f6a40b1e57eb7b0676551c7168db6dd97c0218fa",
        "head_changeset": "ed6ae800a80e71b6a7a21dec9849b125334b2bd4",
        "phabricator_id": 253128,
        "phabricator_phid": "PHID-DREV-kgam2m72lhr2zh3sla2j",
        "title": "Bug 1967707 - [devtools] Display error message when submitting invalid cookies. r=#devtools",
        "bugzilla_id": 1967707,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477960/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477960/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D253128"
    },
    "phid": "PHID-DIFF-xiep5r2ujbdbrxgaltz6",
    "review_task_id": "c2jz321pR_C9U4hDUi32tw",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "20227bdc3d656b0a27cf9be025c24a9af32f166a",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1058471/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-13T15:31:12.670963Z"
}