List and retrieve diffs with detailed revision information

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

{
    "id": 1072556,
    "revision": {
        "id": 485360,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "81a2242c6fc2b16833197335da270809c5c7ce1b",
        "head_changeset": "c86d54c6876d288a71198cff19c41ad67dcf939f",
        "phabricator_id": 254997,
        "phabricator_phid": "PHID-DREV-6gar5ydvxuwqnlwnwgsx",
        "title": "Bug 1974036 - Add a shutdown barrier for the ProfilesDatastoreService r?#profiles-reviewers",
        "bugzilla_id": 1974036,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/485360/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/485360/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D254997"
    },
    "phid": "PHID-DIFF-3sw4j4e4lnjtlqa6zsas",
    "review_task_id": "QvRCig_cTsyPZh6dlamJPQ",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "0b3e3f5ac3c8104bbb0a49634f2602bc37919d86",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1072556/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-25T18:10:45.977267Z"
}