List and retrieve diffs with detailed revision information

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

{
    "id": 1066507,
    "revision": {
        "id": 478274,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "cb923ec34515f231c599a61641c14095e38779d4",
        "head_changeset": "6f011f88a6614d02f1e931f1964d0d47b0d34bdc",
        "phabricator_id": 253505,
        "phabricator_phid": "PHID-DREV-s5arqvqrn3g66oauzvhp",
        "title": "Bug 1970388 - Part 2: Reflect the enclosing environment to MissingEnvironmentMap. r?bthrall!",
        "bugzilla_id": 1970388,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/478274/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/478274/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D253505"
    },
    "phid": "PHID-DIFF-e4pysa5273jo72ow4i6i",
    "review_task_id": "J1J_4QxdS1aw97lM_bJ_WA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "ae393e27defa349e79c788e9265f66eb65bf2bf3",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1066507/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-20T06:42:57.825550Z"
}