List and retrieve diffs with detailed revision information

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

{
    "id": 1052352,
    "revision": {
        "id": 477342,
        "base_repository": "https://hg.mozilla.org/comm-unified",
        "head_repository": "https://hg.mozilla.org/try-comm-central",
        "base_changeset": "09f2980ecf07294ee82ee02191f1cdf2e0f9f7d1",
        "head_changeset": "23aeef6ebbd11d1b4d8d6656c67b2d49799cff66",
        "phabricator_id": 252420,
        "phabricator_phid": "PHID-DREV-ijguve2ee4vlovvthdbf",
        "title": "Bug 1970252 - Port bug 1648719: Copy TryOptionSyntax into comm-central. r=aleca",
        "bugzilla_id": 1970252,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477342/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477342/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D252420"
    },
    "phid": "PHID-DIFF-hkigzavuaka7l4k2ra2l",
    "review_task_id": "XzZXhwWWTUCZy3FUiHqqtg",
    "repository": {
        "id": 1002,
        "slug": "try-comm-central",
        "url": "https://hg.mozilla.org/try-comm-central"
    },
    "mercurial_hash": "23aeef6ebbd11d1b4d8d6656c67b2d49799cff66",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1052352/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-04T00:28:56.048089Z"
}