List and retrieve diffs with detailed revision information

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

{
    "id": 1039042,
    "revision": {
        "id": 475637,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "93a2ac7984344f6e31434880898291f8034c35d1",
        "head_changeset": "385bf2bc6a6ee9ef3f34cec28dc98452773599d8",
        "phabricator_id": 250103,
        "phabricator_phid": "PHID-DREV-3nrjz6gjbv4pgqdmf3ne",
        "title": "Bug 1964496 - Migrate normandy heartbeat storage to use ProfileDatastoreService r?#nimbus-reviewers!,#profiles-reviewers!",
        "bugzilla_id": 1964496,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475637/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475637/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D250103"
    },
    "phid": "PHID-DIFF-5uhtk522ulsxvwuj4lfh",
    "review_task_id": "MQ97ujdjTPag9Ylq0O2pGg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "40b20f1887efb95f6e8de44a328b1981c4346d71",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1039042/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-20T21:05:02.451563Z"
}