List and retrieve diffs with detailed revision information

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

{
    "id": 1059012,
    "revision": {
        "id": 477680,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "f9cffa4f7518b5d72dca3cf80559e4d09d92a9b4",
        "head_changeset": "eca7eef69652ac51cf804a14082aaf841ee3a7cb",
        "phabricator_id": 250600,
        "phabricator_phid": "PHID-DREV-5vpan3bzqehcgwbep5cu",
        "title": "Bug 1967689 - pt 5. Use MOZ_REQUIRES lock annotations in PHC r=glandium",
        "bugzilla_id": 1967689,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477680/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477680/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250600"
    },
    "phid": "PHID-DIFF-s2vuxz7dthcnh3oca54b",
    "review_task_id": "Kr1QGI1MTYeOkVYg8AM6Jw",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "8bb422de637a793eead592f049d053691d6d694b",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1059012/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-16T05:17:03.800485Z"
}