List and retrieve diffs with detailed revision information

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

{
    "id": 1097381,
    "revision": {
        "id": 497098,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "c532163bc3da0e38ceb6074587335c4b91f7077b",
        "head_changeset": "0b8e7f9cf7ab32d3280250f3821f5292d473662f",
        "phabricator_id": 257701,
        "phabricator_phid": "PHID-DREV-ufj4hvkk6nzhwrqs2zwh",
        "title": "Bug 1951751 - Use the opposite baseline for a fallback when calculating grid baselines r=#layout-grid-reviewers",
        "bugzilla_id": 1951751,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/497098/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/497098/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D257701"
    },
    "phid": "PHID-DIFF-cfh75utx2trmqaxehhwg",
    "review_task_id": "YHUgbIPQTV6Z3xx4-EtdNg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "ccab50555932c18aa9778eabf5ee49e4754253e5",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1097381/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-07-29T13:19:12.439143Z"
}