List and retrieve diffs with detailed revision information

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

{
    "id": 1039525,
    "revision": {
        "id": 475690,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "6f682f69506162b95dea83b305f708d8f4e94318",
        "head_changeset": "5a4fedcfd710525ef7e1800cc29cf4fa660d4748",
        "phabricator_id": 250249,
        "phabricator_phid": "PHID-DREV-f7k23pstjffy3dihw7vi",
        "title": "WIP: Bug 1899507 - P1 Preference to control WorkerScriptLoader uses PFetch for script loading. r=dom-worker-reviewers",
        "bugzilla_id": 1899507,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475690/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475690/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250249"
    },
    "phid": "PHID-DIFF-2qr6xcnn2nwsyvuohwr2",
    "review_task_id": "XkuD4fnRSlmrb7SEXMTXzw",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "1547bff1e1645a8076510fccbd414d262572bc2c",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1039525/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-21T08:59:11.376028Z"
}