List and retrieve diffs with detailed revision information

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

{
    "id": 1031983,
    "revision": {
        "id": 474653,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "9d4d9591934fc9f12bdb43b2e239c135e5ce677e",
        "head_changeset": "28b2a8279e59fe8dafdbfe6938bf8f5d197784bc",
        "phabricator_id": 248481,
        "phabricator_phid": "PHID-DREV-iy7jwducz5yvb66hgqgh",
        "title": "Bug 1964826 - Set `MOZ_SOURCE_*` for most tasks. r?jcristau!",
        "bugzilla_id": 1964826,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/474653/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/474653/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D248481"
    },
    "phid": "PHID-DIFF-fxzwoilqhoellw7e3nfb",
    "review_task_id": "UalUG5ziTaqaTn7NzPDzyA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "cb1186a5c8a263a61ebf299c2652551238f592c9",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1031983/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-12T20:39:41.944511Z"
}