List and retrieve diffs with detailed revision information

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

{
    "id": 1051254,
    "revision": {
        "id": 477140,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "0d93e18fc73f214f3bd6b3ebd6ef0e8209839c1c",
        "head_changeset": "c75451f5457fa004aa7bc0e9a09cf9f6f632a785",
        "phabricator_id": 249620,
        "phabricator_phid": "PHID-DREV-acnkw3nnfqrfrajxndaf",
        "title": "Bug 1962423 - Add write buffer to BTP storage to reduce disk IO. r=#anti-tracking!",
        "bugzilla_id": 1962423,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477140/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477140/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D249620"
    },
    "phid": "PHID-DIFF-qued4o2ctbbjxwifelin",
    "review_task_id": "cIihjTBTSbGy-H1HMmOjEg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "c75451f5457fa004aa7bc0e9a09cf9f6f632a785",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1051254/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-02T18:21:54.828388Z"
}