> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Couchbase Capella collection observations

> Observe SQL++ documents through Capella's HTTPS Data API.

Mount the [REST app](https://docs.bijection.com/integrations/native-rest.md) at the same installer
`data` label as the receiver and credential. Enable the Capella
Data API and allow the deployment's egress addresses. Use a cluster access
credential with query-select access to the collection and seal the Base64
encoding of `username:password` for HTTP Basic authentication.

Use `providerEndpoint` with provider `capella.collection.observations`,
origin `https://CLUSTER_ID.data.cloud.couchbase.com`, path
`/_p/query/query/service` and auth
`{ kind: "header", name: "Authorization", prefix: "Basic ", secret: credential }`.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "capella.collection.observations", limit: 10, selection: "store.inventory.orders" } }
```

Capella's Data API forwards SQL++ to the Query Service. This profile
shares the self-managed Couchbase decoder and uses the Data API gateway
on port 443. The selected collection needs an index that can serve the
ordered document-ID scan. Each query uses `readonly`, `request_plus`
and bound page size and cursor parameters. The profile stores the
document and CAS text by immutable document ID, up to 100 records and
36 KiB per answer. An empty page restarts the sweep. Pages can see
concurrent changes, and missing or expired documents stay published.
The REST app needs the bundled parser artifact.

[Capella Data API setup](https://docs.couchbase.com/cloud/data-api-guide/data-api-start.html) ·
[Data API Query Service](https://docs.couchbase.com/cloud/data-api-reference/index.html#tag/Query-with-SQL)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.