List and retrieve diffs with detailed revision information

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

{
    "id": 1058386,
    "revision": {
        "id": 478523,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "c02a77e32526ae1bb855e9388da5330bab897f5f",
        "head_changeset": "eaa7fdd2eb50736558dcbccff8bc5727cf7cc7ff",
        "phabricator_id": 253662,
        "phabricator_phid": "PHID-DREV-krcneipxykomvzsx7ihr",
        "title": "Bug 1971751 - update tests that misuse Assert.ok after no-comparison-or-assignment-inside-ok update, r?#eslint",
        "bugzilla_id": 1971751,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/478523/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/478523/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D253662"
    },
    "phid": "PHID-DIFF-dwo5ynluwnabegno2o7m",
    "review_task_id": "SrhydwTZRWe3v1zm5Yys5A",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "eaa7fdd2eb50736558dcbccff8bc5727cf7cc7ff",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1058386/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-13T14:10:58.126016Z"
}