List and retrieve diffs with detailed revision information

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

{
    "id": 1052512,
    "revision": {
        "id": 477370,
        "base_repository": "https://hg.mozilla.org/comm-unified",
        "head_repository": "https://hg.mozilla.org/try-comm-central",
        "base_changeset": "967b6209a671ab45f806b9c6a0f1ccd73bac977e",
        "head_changeset": "aa104135c3ac4f3a26cfa3349594d197aee9c05a",
        "phabricator_id": 252456,
        "phabricator_phid": "PHID-DREV-nld3lax26oivhvvkeciz",
        "title": "Bug 1970252 - Fix try syntax. r=#thunderbird-reviewers",
        "bugzilla_id": 1970252,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477370/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477370/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D252456"
    },
    "phid": "PHID-DIFF-dv2cl7k5tmkdushtb5vb",
    "review_task_id": "NHWAYCkPQhajs6HvTU0xiA",
    "repository": {
        "id": 1002,
        "slug": "try-comm-central",
        "url": "https://hg.mozilla.org/try-comm-central"
    },
    "mercurial_hash": "17766efd557e5b0cdfba6511f9cddcfc5d0cbf4c",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1052512/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-04T09:29:34.612722Z"
}