List and retrieve diffs with detailed revision information

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

{
    "id": 1052306,
    "revision": {
        "id": 477324,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "b59fefc9b1a9437cde4d9b53aa7f02c4c7a26db7",
        "head_changeset": "30f77472b048264f01d75809bdb52ccf269b75d3",
        "phabricator_id": 252265,
        "phabricator_phid": "PHID-DREV-4ugrnj77eamojomuxowg",
        "title": "Bug 1969591 - Create trending search var b r=#home-newtab-reviewers",
        "bugzilla_id": 1969591,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477324/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477324/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D252265"
    },
    "phid": "PHID-DIFF-z3fizfc4nyj5vjj5uml2",
    "review_task_id": "ddVU9gIDTXqLGJcPFXh8jQ",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "faeb4f8399b8b9736d026c18c0827a20a4a4b070",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1052306/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-03T22:00:32.029710Z"
}