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

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# JSON API AsyncAPI Reference

> JSON Ledger API WebSocket AsyncAPI reference and version history.

AsyncAPI Reference

# JSON API AsyncAPI Reference

Operation-first WebSocket reference pages built from AsyncAPI channel snapshots and lifecycle deltas.

AsyncAPI

3.7

Publish version
3.7

AsyncAPI version
2.6.0

Source
Canton release bundle JSON Ledger API AsyncAPI fixtures

Version filter
configured docs major versions from Canton release bundles

## Channels

Use the channel page to choose a specific `publish` or `subscribe` action. Action pages are the primary reference surface.

[/v2/commands/command-completions](https://docs.canton.network/reference/json-api-asyncapi-reference/channels/v2-commands-command-completions.md)

WebSocket

Added 3.5

Subscribe to command completion events. This streaming endpoint provides more flexibility in filtering than the predecessor `CompletionStream`.

Actions
publish, subscribe

Last seen
3.7

[/v2/commands/completions](https://docs.canton.network/reference/json-api-asyncapi-reference/channels/v2-commands-completions.md)

WebSocket

Updated 3.5

Deprecated: please use `GetCompletions` instead. Subscribe to command completion events.

Actions
publish, subscribe

Last seen
3.7

[/v2/state/active-contracts](https://docs.canton.network/reference/json-api-asyncapi-reference/channels/v2-state-active-contracts.md)

WebSocket

Updated 3.7

Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset. Once the stream of GetActiveContractsResponses completes, the client...

Actions
publish, subscribe

Last seen
3.7

[/v2/updates](https://docs.canton.network/reference/json-api-asyncapi-reference/channels/v2-updates.md)

WebSocket

Updated 3.7

Read the ledger's filtered update stream for the specified contents and filters. It returns the event types in accordance with the stream contents selected. Also the selection c...

Actions
publish, subscribe

Last seen
3.7

[/v2/updates/flats](https://docs.canton.network/reference/json-api-asyncapi-reference/channels/v2-updates-flats.md)

WebSocket

Updated 3.6

Actions removed in 3.7

Get flat transactions update stream. Deprecated since Canton 3.4: disabled by default since Canton 3.6 (re-enable temporarily with \`canton.participants.\<participant>.features.de...

Actions
publish, subscribe

Last seen
3.6

[/v2/updates/trees](https://docs.canton.network/reference/json-api-asyncapi-reference/channels/v2-updates-trees.md)

WebSocket

Updated 3.6

Actions removed in 3.7

Get update transactions tree stream. Deprecated since Canton 3.4: disabled by default since Canton 3.6 (re-enable temporarily with \`canton.participants.\<participant>.features.de...

Actions
publish, subscribe

Last seen
3.6
