List and retrieve diffs with detailed revision information

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

{
    "id": 1039580,
    "revision": {
        "id": 475514,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "eb4983d54abd883010eb9799045c5acf848bf3e7",
        "head_changeset": "a485bee97ad57c79cbe770b559a9023e5c27295b",
        "phabricator_id": 249958,
        "phabricator_phid": "PHID-DREV-o6t7ejlsyxrw2b3dlzpp",
        "title": "Bug 1881701 - Fix python tests related to the ESLint linter. r?#linter-reviewers!",
        "bugzilla_id": 1881701,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/475514/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/475514/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D249958"
    },
    "phid": "PHID-DIFF-y3txqdhqdfynfvmdzeee",
    "review_task_id": "YefxAtb4R8ywK2CG8lI1jw",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "fa0807fd46c87ec7b5845775466298f624344324",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1039580/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-21T10:43:22.612663Z"
}