List and retrieve diffs with detailed revision information

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

{
    "id": 1085876,
    "revision": {
        "id": 492894,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "54a511874305807c6646d441a61554600ee79c3e",
        "head_changeset": "b6613e65b80e54862845944f4ff8482fb35776d2",
        "phabricator_id": 256667,
        "phabricator_phid": "PHID-DREV-fhoilylde53oqksmnx4g",
        "title": "Bug 1976518 - Move loading custom elements into IPProtectionPanel constructor. r=#ip-protection-reviewers!",
        "bugzilla_id": 1976518,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/492894/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/492894/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D256667"
    },
    "phid": "PHID-DIFF-qllqflactd2myjpxc7v7",
    "review_task_id": "MiU3DxzlRaSP_HDoIGM0XQ",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "f5b4d0298e5fe5bb0b10fa9b5955ff9fe277a02f",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1085876/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-07-14T16:50:04.694259Z"
}