List and retrieve diffs with detailed revision information

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

{
    "id": 1051777,
    "revision": {
        "id": 476663,
        "base_repository": "https://hg.mozilla.org/mozilla-unified",
        "head_repository": "https://hg.mozilla.org/try",
        "base_changeset": "4a9c5f5ab34a62573efb658bc8696fadb6949942",
        "head_changeset": "a337bf8381b8c9dfa527fc48f3f15c5114409528",
        "phabricator_id": 251606,
        "phabricator_phid": "PHID-DREV-6oe34s6nrfbumkoa2mz7",
        "title": "WIP: Bug 1950545 - Vendor InMemorySpanExporter for testing of gecko-trace API r=jari",
        "bugzilla_id": 1950545,
        "diffs_url": "https://api.code-review.moz.tools/v1/revision/476663/diffs/?format=api",
        "issues_bulk_url": "https://api.code-review.moz.tools/v1/revision/476663/issues/?format=api",
        "phabricator_url": "https://phabricator.services.mozilla.com/D251606"
    },
    "phid": "PHID-DIFF-56bmcwvnmt4hu27djh7k",
    "review_task_id": "UTEO5JF1Tw-ca-UTO7KD7w",
    "repository": {
        "id": 100,
        "slug": "try",
        "url": "https://hg.mozilla.org/try"
    },
    "mercurial_hash": "5dc18406d0bebd680b3859ae04fb4118435ab293",
    "issues_url": "https://api.code-review.moz.tools/v1/diff/1051777/issues/?format=api",
    "nb_issues": 0,
    "nb_issues_publishable": 0,
    "nb_warnings": 0,
    "nb_errors": 0,
    "created": "2025-06-03T12:55:50.924647Z"
}