API reference
Read a discussion, paginate with cursors and inspect the OpenAPI 3.1 contract from this checkout.
Read a discussion
This is a read-only request. Substitute your gateway, site key and page key. For cross-origin access from a browser, register the host origin in the site settings.
Shellcurl --get 'https://blua.example/v1/sites/garden/bootstrap' \ --data-urlencode 'pageKey=spring-swallows' \ --data-urlencode 'sort=newest'
site and page describe the site and article. threads.roots contains the current root comments, with reply previews keyed by root ID in threads.repliesByRoot. Revalidate a response using its ETag to receive a 304 when unchanged.
Pagination
Use GET /v1/sites/{siteKey}/comments for more root comments. Supply the same pageKey and sort, and pass the continuation value from the previous response as cursor. For more replies use GET /v1/sites/{siteKey}/comments/{commentId}/replies. Treat cursor values as opaque.
API contract
Download the OpenAPI JSON (/openapi.json) at the top of this page for paths, HTTP methods, fields and response codes. It serves the repository’s apps/api-worker/openapi/openapi.json. For a custom reader, use createBluaApiClient from @blua/embed. See Frameworks and SSR.