List and retrieve diffs with detailed revision information

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

{
    "id": 1040458,
    "revision": {
        "id": 475819,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "7bc0cf7139b8b23291500d0daabedb6325aedb66",
        "head_changeset": "047137a47600c1910f45908b43acfd54958b2c6b",
        "phabricator_id": 250390,
        "phabricator_phid": "PHID-DREV-6trizut6tngbcez3ls3f",
        "title": "Bug 1967650 - prevent string testing functions from creating illegal situations, and fix an accounting issue r=jonco",
        "bugzilla_id": 1967650,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475819/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475819/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250390"
    },
    "phid": "PHID-DIFF-vu32bvpas75oiq5euehy",
    "review_task_id": "TEaP0w9HR7SiHNLZQmdriQ",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "038ed033481d5be697b53cc896d6ba33622e61d0",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1040458/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-21T23:32:27.119775Z"
}