List and retrieve diffs with detailed revision information

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

{
    "id": 1053931,
    "revision": {
        "id": 477643,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "cea1f4a1355721d69d42d3d33d5c80b85ca90452",
        "head_changeset": "775cc9f833005bfd72be432816564884c629adfc",
        "phabricator_id": 252765,
        "phabricator_phid": "PHID-DREV-hhfkqhtb3i7bh3mx2glg",
        "title": "WIP: Bug 1969049 - Add samply toolchain to simpleperf tasks. r=#perftest-reviewers,kshampur",
        "bugzilla_id": 1969049,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477643/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477643/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D252765"
    },
    "phid": "PHID-DIFF-abbvex6uuk7l5rp7bdt5",
    "review_task_id": "YU32IrtNSRydUbEokVugWw",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "775cc9f833005bfd72be432816564884c629adfc",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1053931/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-05T21:57:26.347058Z"
}