List and retrieve diffs with detailed revision information

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

{
    "id": 1040132,
    "revision": {
        "id": 475522,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "4a523505fb86d262d33a40e92ce80198f1301f71",
        "head_changeset": "954879b02bcd4d3f41e4f860b4cc54e6aaee0894",
        "phabricator_id": 249970,
        "phabricator_phid": "PHID-DREV-52reztukrm4lxu2n6vb2",
        "title": "Bug 1820252 - Misc. TranslationsDocument refactors r=#translations-reviewers!",
        "bugzilla_id": 1820252,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475522/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475522/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D249970"
    },
    "phid": "PHID-DIFF-jxst6h5qvzmdxfdgo3hn",
    "review_task_id": "YqgmPf5zRCa613K-d_NTPA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "c57c92d9821ca2b3ac198254331f216b6e95211d",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1040132/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-21T19:16:03.739072Z"
}