List and retrieve diffs with detailed revision information

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

{
    "id": 1076227,
    "revision": {
        "id": 478353,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "6259888230507ba1d9ba97357762e8258f9985aa",
        "head_changeset": "4ccf839da9e9d49378aed90aa157c5f14e10378e",
        "phabricator_id": 253612,
        "phabricator_phid": "PHID-DREV-q5dutix2c5eourhalrzy",
        "title": "Bug 1971903 - refactor(webgpu): delegate WGPU error classification to `MissingBufferUsageError` r=#webgpu-reviewers",
        "bugzilla_id": 1971903,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/478353/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/478353/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D253612"
    },
    "phid": "PHID-DIFF-ssjly5jjronzzychoytp",
    "review_task_id": "d5WlZIJyQOS_jgjjjpbaXg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "19ec3741318947f52ec5da4d2c149d5482def249",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1076227/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-07-01T18:45:17.077752Z"
}