List and retrieve diffs with detailed revision information

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

{
    "id": 1051231,
    "revision": {
        "id": 475198,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "f3211add8bea25ccc5ae4f6dc428e5e8b2d4a66f",
        "head_changeset": "b1e829803348eaa94059eedcae51dbea31ae91f7",
        "phabricator_id": 249520,
        "phabricator_phid": "PHID-DREV-6gdd6xrb6w45p5snd25a",
        "title": "WIP: Bug 1924204: Introduce helpers to find the first acceptable anchor.",
        "bugzilla_id": 1924204,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475198/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475198/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D249520"
    },
    "phid": "PHID-DIFF-s7wwydmtpveqfsmhboyd",
    "review_task_id": "C8Auhtb2R0q37_mG3duKug",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "52fbdb2a311a49d4a2b19d40592f45d151c4f13c",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1051231/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-02T17:47:25.420409Z"
}