List and retrieve diffs with detailed revision information

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

{
    "id": 1059218,
    "revision": {
        "id": 476185,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "78312a0182a9b5004d8356457704d86915ee7c76",
        "head_changeset": "9bd48464f62676808bb7a5fe8256f462583a5da3",
        "phabricator_id": 250921,
        "phabricator_phid": "PHID-DREV-hd4qhyae2j2rfshs3aot",
        "title": "WIP: Bug 1968220 - Test security of system modules in regards to eval and inline event handlers",
        "bugzilla_id": 1968220,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/476185/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/476185/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250921"
    },
    "phid": "PHID-DIFF-ijx2zutcbgwjnmwa2omv",
    "review_task_id": "cAhDViK4SP6vjTrLVckZ0Q",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "8e33274b79f1c01ae096fe1a90ee8fb3e250c3ea",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1059218/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-16T12:07:52.015519Z"
}