List and retrieve diffs with detailed revision information

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

{
    "id": 1054891,
    "revision": {
        "id": 476996,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "3a156007182a11892aee7b01a75409cf35d59be6",
        "head_changeset": "237afe1d27e05bf0d690f67c35e92588dea38e54",
        "phabricator_id": 251978,
        "phabricator_phid": "PHID-DREV-ggcpvbovweweka25fogb",
        "title": "WIP: Bug 1967708 - Part 1: Make PBM lock verification logic reusable and available outside of tabstray",
        "bugzilla_id": 1967708,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/476996/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/476996/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D251978"
    },
    "phid": "PHID-DIFF-djff6v67hwc4r7nrr5d5",
    "review_task_id": "dd0HAQCqSA6iyvPb5m4LJQ",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "d0e9b6f8a2f9500c975d4330f83d1abf3fcda9fe",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1054891/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-09T00:20:59.025961Z"
}