List and retrieve diffs with detailed revision information

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

{
    "id": 1058371,
    "revision": {
        "id": 478514,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "25b3009308037fd103f64e4dc15ac2026aeab334",
        "head_changeset": "5dd9f78afd37711396ca902312827426e8f20392",
        "phabricator_id": 253659,
        "phabricator_phid": "PHID-DREV-zjofu6hl75jpadsfghcg",
        "title": "Bug 1971989 - Enable Add Search Engine feature for post forms with role=search. r?#search-reviewers",
        "bugzilla_id": 1971989,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/478514/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/478514/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D253659"
    },
    "phid": "PHID-DIFF-zhyulh2hau2jhqcpm5fs",
    "review_task_id": "M7KYkm7zT-O8O643GU7DsQ",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "5dd9f78afd37711396ca902312827426e8f20392",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1058371/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-13T13:51:15.160477Z"
}