List and retrieve diffs with detailed revision information

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

{
    "id": 1055942,
    "revision": {
        "id": 477958,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "cf7773597fc96b474ed3a12fdf4bebc2a855d8b6",
        "head_changeset": "602d5cd3aa7994a9e8294e9400b6465fbd768d02",
        "phabricator_id": 253125,
        "phabricator_phid": "PHID-DREV-wbs35gx3s7lalnbjajrp",
        "title": "Bug 1971198 - Document through a gtest that GetCurrentSerialEventTarget() is not expected to work during an XPCOMThreadWrapper direct task. r?#xpcom-reviewers",
        "bugzilla_id": 1971198,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477958/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477958/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D253125"
    },
    "phid": "PHID-DIFF-77xt5plygr4kwdyr2igb",
    "review_task_id": "R2-wYXx9RwyY4R1slGxuww",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "01de6d384fd434f5267d39356cf511e0a40dace4",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1055942/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-10T15:08:49.468433Z"
}