List and retrieve diffs with detailed revision information

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

{
    "id": 1099921,
    "revision": {
        "id": 505595,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "17f1408760b5ff7e37a0f7b85f97038162e3b9ae",
        "head_changeset": "8120ad4e450b0ab03464bb4c459b8fc8ae3514a9",
        "phabricator_id": 259669,
        "phabricator_phid": "PHID-DREV-ftstlvztw56tarivyp4e",
        "title": "Bug 1980748 - Only add site protections pref observers when needed.",
        "bugzilla_id": 1980748,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/505595/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/505595/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D259669"
    },
    "phid": "PHID-DIFF-5ru4nyh5h75qpt7wsjkb",
    "review_task_id": "aPfstkwTSXekTNf1Cz6S-A",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "8120ad4e450b0ab03464bb4c459b8fc8ae3514a9",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1099921/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-08-02T00:24:26.917091Z"
}