> ## 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.

# Publish completions

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

[JSON API AsyncAPI](https://docs.canton.network/reference/json-api-asyncapi-reference/index.md)

›

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

›

publish

/v2/commands/completions

# Publish completions

WebSocket

[Updated 3.5](#history-updated-3-5)

PUBLISH

`/v2/commands/completions`

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

## Protocol Details

Protocol
WebSocket

Channel
/v2/commands/completions

Action
publish

Operation ID
sendV2CommandsCompletions

Content type
application/json

Payload
object

## Inputs

### CompletionStreamRequest

Direction
Client -> Server

Message
CompletionStreamRequest

`parties`
array\[string]

required

## Outputs

## Related Schemas

> [accordion] CompletionStreamRequest
>
> `parties`
> array\[string]
>
> required

## History

Updated
`3.5`

channel description updated; publish description updated

wscat

```bash wscat theme={"theme":{"light":"github-light","dark":"github-dark"}}
npx wscat \
  -c <WEBSOCKET_URL> \
  -x '{"parties": ["<string>"]}' \
  -w -1
```

message

application/json

```json message theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "parties": [
    "<string>"
  ]
}
```
