List and retrieve diffs with detailed revision information

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

{
    "id": 1040401,
    "revision": {
        "id": 474890,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "3dc5ce7972289323fdaac7e921afb6248c0edeaf",
        "head_changeset": "706e7eda5abc9b0079d5f5bae5f795fce7f03ade",
        "phabricator_id": 249070,
        "phabricator_phid": "PHID-DREV-4h7t3a2xa7atakbxvjex",
        "title": "Bug 1966090 - Pass intermixed argument to _parse_known_args on python 3.13+. r?#perftest",
        "bugzilla_id": 1966090,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/474890/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/474890/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D249070"
    },
    "phid": "PHID-DIFF-ktd4yfso6hlqdvjwwzlo",
    "review_task_id": "Xcaa0EwURFmgeAFoTwg-qg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "387fbf6838b4a9dff7b5a4b310e1a7c8fc5a8c9a",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1040401/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-21T23:04:11.436678Z"
}