List and retrieve diffs with detailed revision information

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

{
    "id": 1052662,
    "revision": {
        "id": 476297,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "76b1266c7b07ab9421df8bfeee66e35095082344",
        "head_changeset": "2ca68111f95ef2ab28d6a080a4b712e265d85af8",
        "phabricator_id": 251135,
        "phabricator_phid": "PHID-DREV-dvm3rknftc42xmvfzygr",
        "title": "Bug 1950162: Return undefined for weekOfYear and yearOfWeek for Gregorian. r=#spidermonkey-reviewers!",
        "bugzilla_id": 1950162,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/476297/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/476297/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D251135"
    },
    "phid": "PHID-DIFF-uln52zsaqfummhl67whl",
    "review_task_id": "U7Spy-VbTVGtQPuMTf44tw",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "2607b31073df6c11c89d0bcf59ef3649937a0221",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1052662/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-04T12:48:29.700009Z"
}