List and retrieve diffs with detailed revision information

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

{
    "id": 1040573,
    "revision": {
        "id": 470176,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "97d784aff636894cbb88f4bba23f08d5e1ca73dd",
        "head_changeset": "3568b446d7464daf037b9041edcfb4eb2b65b4dd",
        "phabricator_id": 242668,
        "phabricator_phid": "PHID-DREV-k75xh67j42lgydeaianf",
        "title": "Bug 1928254 - pt 6. Move PurgeResult to mozjemalloc_stats.h r=jstutte",
        "bugzilla_id": 1928254,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/470176/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/470176/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D242668"
    },
    "phid": "PHID-DIFF-qgjkrafs776awdhcaq57",
    "review_task_id": "PVx5oT_MR4mnDYKVa6t4Mw",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "005491c3d6e532a28c0d07477d6591a2ef63062c",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1040573/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-22T01:18:17.438351Z"
}