List and retrieve diffs with detailed revision information

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

{
    "id": 1040002,
    "revision": {
        "id": 453618,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "508a834f0ff79106c6275478fd256464c39ef368",
        "head_changeset": "8b63fadb5a6ee1e8be640f8533fb8ae4471fe6f6",
        "phabricator_id": 238479,
        "phabricator_phid": "PHID-DREV-i2mt4wflsdmo62ftgtro",
        "title": "WIP: Bug 1944556 - Add PNA helper functions. r=#necko",
        "bugzilla_id": 1944556,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/453618/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/453618/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D238479"
    },
    "phid": "PHID-DIFF-ahtlteiulpktgkyzdef3",
    "review_task_id": "H-WQFKXfRAu7swMkaTcRHA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "111958a30cd03fb24e77d0b19b6ba3bdbdf30ed4",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1040002/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-21T17:33:30.705979Z"
}