List and retrieve diffs with detailed revision information

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

{
    "id": 1052995,
    "revision": {
        "id": 476817,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "cb8ee30c819d5f13ec7c7bc01d0866d6a9441992",
        "head_changeset": "214d8173e64beca76206823e4b7ae907d11a22c4",
        "phabricator_id": 251765,
        "phabricator_phid": "PHID-DREV-ekqo4k2rww2j6fklyebh",
        "title": "Bug 1956634 - Fix sidebar tests when clear search button is enabled. r=#sidebar-reviewers",
        "bugzilla_id": 1956634,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/476817/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/476817/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D251765"
    },
    "phid": "PHID-DIFF-y6wzvweyu7pop5fmuuae",
    "review_task_id": "T5wJ87nXRdGg2vUeWjx4ug",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "316ee5aa0575b6242c78e1a6da5c29c225aaa23c",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1052995/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-04T19:15:38.544200Z"
}