List and retrieve diffs with detailed revision information

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

{
    "id": 1040440,
    "revision": {
        "id": 475948,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "3f0ea1adf7f36a31f830d998e1eb3fb756b3a71b",
        "head_changeset": "bc338eb0ca1c37d87a1deaf31ae5af31f15447f8",
        "phabricator_id": 250543,
        "phabricator_phid": "PHID-DREV-sar2t62ub4syqlfxjoku",
        "title": "Bug 1914852 - Ensure there's always a single private homepage tab when switching to private mode from the homepage private mode toggle button",
        "bugzilla_id": 1914852,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475948/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475948/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250543"
    },
    "phid": "PHID-DIFF-arwdzghy6p7p6shfgpkh",
    "review_task_id": "ZkJD-sGCQyKnda-A8lqzNA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "bc338eb0ca1c37d87a1deaf31ae5af31f15447f8",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1040440/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-22T00:04:41.163757Z"
}