List and retrieve diffs with detailed revision information

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

{
    "id": 1041562,
    "revision": {
        "id": 456832,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "749544d5d463ad3bc864266996d264131ebc026e",
        "head_changeset": "e3d999458ae954527ff453e68e1404d06587ca22",
        "phabricator_id": 222432,
        "phabricator_phid": "PHID-DREV-zrpyirjlfuhtlawidjz6",
        "title": "WIP: Bug 1919231: Extend Cert Storage Interface to expose lookups by hash. r=keeler,jschanck",
        "bugzilla_id": 1919231,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/456832/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/456832/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D222432"
    },
    "phid": "PHID-DIFF-apggvhhgkntx7osbqam4",
    "review_task_id": "ER3yFWnyTfaFLmnV9EyiPg",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "d65ea9428bfe1977d1305eb1a7c60ed7e351e15e",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1041562/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-05-22T21:08:53.970031Z"
}