List and retrieve diffs with detailed revision information

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

{
    "id": 1051821,
    "revision": {
        "id": 477157,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "82d4d13390867d3a0fff165e645da46d9d0c1838",
        "head_changeset": "a7fe55f52aa399a89f372a3a0f8504dbf673c60e",
        "phabricator_id": 252229,
        "phabricator_phid": "PHID-DREV-f4ewdxlo3belncaaetjt",
        "title": "Bug 1963006 - Use input value instead of userTypedValue when entering search mode via unified search button. r?#urlbar-reviewers",
        "bugzilla_id": 1963006,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477157/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477157/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D252229"
    },
    "phid": "PHID-DIFF-474mmh2hogtwxss2ujpw",
    "review_task_id": "UyMOqN2GTrGU70rqPToyXQ",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "90af4719dfaff2123fc79033083fff379f00bec9",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1051821/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-03T13:50:01.582239Z"
}