List and retrieve diffs with detailed revision information

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

{
    "id": 1058021,
    "revision": {
        "id": 478175,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "92bf770c26f031ef3fe51f63d31b3b16ab47c30d",
        "head_changeset": "7d20bc1f9832d4c617bbb4d8affe7ea73ad06757",
        "phabricator_id": 253375,
        "phabricator_phid": "PHID-DREV-xt2y7fiesyp3rt5lnhob",
        "title": "Bug 1966763 - Fix `UP035` `ruff` deprecation warnings caused by Python `3.9` version bump r?#build,#linter-reviewers,ahal",
        "bugzilla_id": 1966763,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/478175/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/478175/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D253375"
    },
    "phid": "PHID-DIFF-3jxt7iupqjcnfdcgr5vu",
    "review_task_id": "L4wvetBxSBOfSAP-3emqZg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "63b287dfc8d904a86ca5ac8d7e3a12da086a22bb",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1058021/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-12T23:03:19.146027Z"
}