List and retrieve diffs with detailed revision information

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

{
    "id": 1039642,
    "revision": {
        "id": 475841,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "cb60201f7b03f218326e7ceb3fbf177e7bb2c066",
        "head_changeset": "2a9c8b8c883afd727004678652e21103b84d54c0",
        "phabricator_id": 250416,
        "phabricator_phid": "PHID-DREV-iggvpaxk4cslopqajecd",
        "title": "Bug 1967618 - General update of TypeScript definitions to the latest code. r?zombie!",
        "bugzilla_id": 1967618,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475841/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475841/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250416"
    },
    "phid": "PHID-DIFF-ftd3oweooi5qgqazhdip",
    "review_task_id": "WGGqRD8rS1OHwU9xpqje_g",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "2a9c8b8c883afd727004678652e21103b84d54c0",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1039642/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-21T11:44:52.706354Z"
}