List and retrieve diffs with detailed revision information

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

{
    "id": 1087582,
    "revision": {
        "id": 492528,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "c6a821fb545550f39fd3cbadec3da867ead450b4",
        "head_changeset": "6c199a432f443477bad7ca597488672a07d331e7",
        "phabricator_id": 256540,
        "phabricator_phid": "PHID-DREV-tph2pwwomrdabde5vktz",
        "title": "Bug 1971552 - Add new targetting context and metric for hasPinnedTabs. r?beth",
        "bugzilla_id": 1971552,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/492528/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/492528/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D256540"
    },
    "phid": "PHID-DIFF-hx47vbflfrwn3oof7hs3",
    "review_task_id": "Ts1y7iuGQ2G9fhQDSjtZ2g",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "9b46b1491ce98b2ac34983599a22bbe18c59cc95",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1087582/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-07-16T21:24:40.472918Z"
}