List and retrieve diffs with detailed revision information

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

{
    "id": 1087882,
    "revision": {
        "id": 496862,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "a9d3edafe1c8125fe36e3dbd64d3e015a783f274",
        "head_changeset": "7f9d9f52a219704d76f5cf9057bc999f7a23a258",
        "phabricator_id": 257665,
        "phabricator_phid": "PHID-DREV-7ercscwsobk6uc6xhhpw",
        "title": "Bug 1977784 - Update WorkerScriptLoader::GetContentPolicyType to return TYPE_JSON for JSON modules r=#dom-worker-reviewers",
        "bugzilla_id": 1977784,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/496862/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/496862/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D257665"
    },
    "phid": "PHID-DIFF-34iqjzmx6av7c5gdjrzd",
    "review_task_id": "AyPynunNRBmKjoR7r9wrzg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "7f9d9f52a219704d76f5cf9057bc999f7a23a258",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1087882/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-07-17T10:03:38.331780Z"
}