List and retrieve diffs with detailed revision information

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

{
    "id": 1052102,
    "revision": {
        "id": 477042,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "222e601e1ac3b4af40d6fdf12aad03b7b68744ed",
        "head_changeset": "a607022faa9985b0b0e468f51e5bf38b25f66724",
        "phabricator_id": 252034,
        "phabricator_phid": "PHID-DREV-iu4x4sgo4ymf5nmvaeho",
        "title": "WIP: Bug 1969588 - Add variant A for Trending Searches.",
        "bugzilla_id": 1969588,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477042/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477042/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D252034"
    },
    "phid": "PHID-DIFF-b42apj2ffqavla3xdy54",
    "review_task_id": "UZH2ECYvQT6RJMcEu4fGtQ",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "f15f55d03e3343e9575a3faf2809c5725bcf2f0d",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1052102/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-03T18:28:00.281005Z"
}