List and retrieve diffs with detailed revision information

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

{
    "id": 1048462,
    "revision": {
        "id": 457241,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "ac2b765f864daa388e22f822db75dbdd153249ad",
        "head_changeset": "bf2ddd014ddb055791dd5d269e12535f59171294",
        "phabricator_id": 238874,
        "phabricator_phid": "PHID-DREV-22rgrmv3pdtxfdd33ftr",
        "title": "WIP: Bug 1927886: Call this stats function on main.",
        "bugzilla_id": 1927886,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/457241/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/457241/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D238874"
    },
    "phid": "PHID-DIFF-q7x6xwyezgkltamhm6pv",
    "review_task_id": "RVX3FGApRB6ywNeWghALwg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "4539db33416d86d4733b97bf6c1c309d20ccb948",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1048462/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-28T16:45:17.142479Z"
}