List and retrieve diffs with detailed revision information

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

{
    "id": 1051747,
    "revision": {
        "id": 477227,
        "base_repository": "https://hg.mozilla.org/comm-unified",
        "head_repository": "https://hg.mozilla.org/try-comm-central",
        "base_changeset": "605deddad76418c81983691828bd0ba2fc0f231d",
        "head_changeset": "be97a54b050df2a7a0e01522f59e89a5a38d2783",
        "phabricator_id": 252316,
        "phabricator_phid": "PHID-DREV-3ma4ice77rxjcpmcp5n6",
        "title": "Bug 1970080 - EnigmailKeyRing.importKeyDataWithConfirmation must be awaited. r=edicharry",
        "bugzilla_id": 1970080,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/477227/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/477227/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D252316"
    },
    "phid": "PHID-DIFF-2lvjegmmkhaavczm37gu",
    "review_task_id": "WGJRhhoZTTKYVpYiqROeXQ",
    "repository": {
        "id": 1002,
        "slug": "try-comm-central",
        "url": "https://hg.mozilla.org/try-comm-central"
    },
    "mercurial_hash": "be97a54b050df2a7a0e01522f59e89a5a38d2783",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1051747/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-03T12:15:17.543802Z"
}