List and retrieve diffs with detailed revision information

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

{
    "id": 1040914,
    "revision": {
        "id": 475890,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "df8878c531a7085bace4bde21c232cb59f5fde59",
        "head_changeset": "c6f4b0c4fb8ab0a6e0a2da2e5afd20510a511b4b",
        "phabricator_id": 250453,
        "phabricator_phid": "PHID-DREV-hoeg5t4xnuhfmmyfenpu",
        "title": "Bug 1961440 - Defer ModelHubAddonWrapper initialization to first AddonManager.getAddonsByTypes including mlmodel type. r?robwu!,tarek",
        "bugzilla_id": 1961440,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475890/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475890/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250453"
    },
    "phid": "PHID-DIFF-jdwyp6dankpn5tbublhc",
    "review_task_id": "e1xiHNR4TYOB3nUq_XOpnw",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "90023baed7c429edbba8c1a8b70924c3646127e0",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1040914/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-22T10:26:44.838450Z"
}