List and retrieve diffs with detailed revision information

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

{
    "id": 1066312,
    "revision": {
        "id": 477978,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "4855e0f9defe9884576f8ac1caa8eee65ce4d8ba",
        "head_changeset": "e6f65bc4163f6535e8c47176cdfe3138a505d0e4",
        "phabricator_id": 253147,
        "phabricator_phid": "PHID-DREV-id4rli2zafknlssvqb4t",
        "title": "Bug 1971273 - Don't use a full LightweightThemeConsumer for sidebar pages. r=#sidebar-reviewers!",
        "bugzilla_id": 1971273,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477978/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477978/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D253147"
    },
    "phid": "PHID-DIFF-hqrfgsvkcurgangy2vog",
    "review_task_id": "UftaG0hgS_qLq5YET4OFvA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "15dadd2f6f26474d5133fdfedf1eae9e723b4e8f",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1066312/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-19T20:07:36.832819Z"
}