List and retrieve diffs with detailed revision information

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

{
    "id": 1052939,
    "revision": {
        "id": 473832,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "be2f03bd11058c0820d902db5ee56fcf573ed779",
        "head_changeset": "71c1409e6a8304fd34f7503e2ff0799af690699b",
        "phabricator_id": 247215,
        "phabricator_phid": "PHID-DREV-ngek2evnkjnc5fg2ouwt",
        "title": "Bug 1963448 - Add lengthHint option to IOUtils.writeJSON r?#xpcom-reviewers!",
        "bugzilla_id": 1963448,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/473832/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/473832/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D247215"
    },
    "phid": "PHID-DIFF-acz74gqnslhpxfpi5nzv",
    "review_task_id": "YIhS2Lo2Ss2hT376cd5PjA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "6af2e8bbbe7c44afebc6f0bae3f8e773aa77b3ad",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1052939/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-04T17:50:50.816335Z"
}