List and retrieve diffs with detailed revision information

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

{
    "id": 1087474,
    "revision": {
        "id": 494226,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "966b9416e432ad7386be6343fbb0faab528e5f83",
        "head_changeset": "ad8121c7a249dfaa27d40a851ec594a9a8c1ee34",
        "phabricator_id": 257055,
        "phabricator_phid": "PHID-DREV-oh4hdogvxfzhsen7uywg",
        "title": "Bug 1976656 - Enable Integrity-Policy by default for scripts. r?freddyb",
        "bugzilla_id": 1976656,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/494226/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/494226/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D257055"
    },
    "phid": "PHID-DIFF-7u7iggehebsyosznxfak",
    "review_task_id": "CQDOivlcQ3G9_vYfphzhtg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "7c7e906ea28889280faab8fb5a99b2faf3b16942",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1087474/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-07-16T18:42:16.582210Z"
}