List and retrieve diffs with detailed revision information

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

{
    "id": 1051475,
    "revision": {
        "id": 477176,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "df509edb950c8ec6c14b505a5ac1d0ffd1b61f1b",
        "head_changeset": "4fd58223c7d08143f91e8cb960c7b85fc0b76b91",
        "phabricator_id": 251085,
        "phabricator_phid": "PHID-DREV-pcnskdrk4hxdbznpitez",
        "title": "Bug 1968365 - Test perplexity has been in search mode PREF is set correctly. r=jteow!",
        "bugzilla_id": 1968365,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477176/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477176/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D251085"
    },
    "phid": "PHID-DIFF-jiz3rkyp27pfvnyhin4v",
    "review_task_id": "D69w84UbTaSJCeDyLVxjrg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "4fd58223c7d08143f91e8cb960c7b85fc0b76b91",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1051475/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-02T22:31:34.261737Z"
}