List and retrieve diffs with detailed revision information

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

{
    "id": 1039942,
    "revision": {
        "id": 474985,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "47282323aab5f95c4cc4457b360787ee9785130a",
        "head_changeset": "de2ecdd88abab0f99f5b2e15102a215b4afcc03c",
        "phabricator_id": 249167,
        "phabricator_phid": "PHID-DREV-7bdtwqzzugghzxd75pmc",
        "title": "Bug 1606785 - Format aboutlogins and megalist CSS files with Prettier r=#credential-management-reviewers",
        "bugzilla_id": 1606785,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/474985/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/474985/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D249167"
    },
    "phid": "PHID-DIFF-e2ybdmxwqypue3b5khxx",
    "review_task_id": "WzDt_X-ST2iw8Xtkb9bmXQ",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "ef237c7bab33b64d8d23919bd232fd869a392529",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1039942/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-21T16:55:39.720525Z"
}