List and retrieve diffs with detailed revision information

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

{
    "id": 1057334,
    "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-sptrjlx5y6fe33r4jwz2",
    "review_task_id": "dYyOI6wcQ5yYe8HyIPXDkg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "12f2c2c278e4d6d5152a56ebfc2042eaeaee03ef",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1057334/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-12T06:42:06.374731Z"
}