List and retrieve diffs with detailed revision information

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

{
    "id": 1041847,
    "revision": {
        "id": 475842,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "cb60201f7b03f218326e7ceb3fbf177e7bb2c066",
        "head_changeset": "9c8b31ba9b170ae887549aab0edebd8532077292",
        "phabricator_id": 250415,
        "phabricator_phid": "PHID-DREV-jmml4e7kfaii5d7hekui",
        "title": "Bug 1967618 - Add new nsresult error code to TypeScript definitions to avoid errors when building the definitions. r?zombie!",
        "bugzilla_id": 1967618,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475842/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475842/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250415"
    },
    "phid": "PHID-DIFF-i7bwxgzvrbfc7xthkbhl",
    "review_task_id": "FYQtY8HaRSCMxvZHsB-09A",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "6712ce4f65fb1ac529125ed4b1f1a88ec05d533a",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1041847/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-23T10:06:32.608419Z"
}