List and retrieve diffs with detailed revision information

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

{
    "id": 1041946,
    "revision": {
        "id": 475564,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "5e2411ffd6d09f75c9a714ee9239247a2a5813cb",
        "head_changeset": "81a4c2f4c83b538f018241e01cc227f8e84a595c",
        "phabricator_id": 250033,
        "phabricator_phid": "PHID-DREV-pcrlmox4vdihcdw235qe",
        "title": "Bug 1967249 - Update globals package used in TypeScript, to avoid issues with ESLint. r?zombie!,#home-newtab-reviewers!",
        "bugzilla_id": 1967249,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475564/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475564/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250033"
    },
    "phid": "PHID-DIFF-ydgphanj6cdfv2n3yx2a",
    "review_task_id": "fTzwPlVMSHqmHZv4rG6sng",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "e146a5f9a7d91981094e6b436bb3aa7f22d167be",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1041946/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-23T13:44:56.970534Z"
}