List and retrieve diffs with detailed revision information

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

{
    "id": 1071145,
    "revision": {
        "id": 477936,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "5148654fa8c79d9982d1ccdf4d84f5734c10f85f",
        "head_changeset": "9ec653dd51affd6b90de935fb760cee99f417926",
        "phabricator_id": 253104,
        "phabricator_phid": "PHID-DREV-hpefwrovchsohm5iqz3x",
        "title": "Bug 1971178 - add new label next to perplexity on searchmode switcher popup. r=#urlbar-reviewers",
        "bugzilla_id": 1971178,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477936/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477936/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D253104"
    },
    "phid": "PHID-DIFF-yzukl6pxiju62wzpqkxu",
    "review_task_id": "cLJvrOtiS_CTEJQpSZ-RhA",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "f7e467513d1141a0511383d75c7d40807b77da0d",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1071145/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-24T04:41:35.745934Z"
}