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

# Subscribe flats

> Get flat transactions update stream.
Deprecated since Canton 3.4: disabled by default since Canton 3.6 (re-enable temporarily with `canton.participants.&lt;participant>.features.deprecated.enable-deprecated-endpoints-34 = true`) and will be removed in Canton 3.7. Use /v2/updates instead.

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

›

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

›

subscribe

/v2/updates/flats

# Subscribe flats

WebSocket

[Updated 3.6](#history-updated-3-6)

[Removed in 3.7](#history-removed-3-7)

SUBSCRIBE

`/v2/updates/flats`

Get flat transactions update stream.

Deprecated since Canton 3.4: disabled by default since Canton 3.6 (re-enable temporarily with `canton.participants.&lt;participant>.features.deprecated.enable-deprecated-endpoints-34 = true`) and will be removed in Canton 3.7. Use /v2/updates instead.

## Protocol Details

Protocol
WebSocket

Channel
/v2/updates/flats

Action
subscribe

Operation ID
onV2UpdatesFlats

Content type
application/json

Payload
oneOf

## Inputs

## Outputs

### Either\_JsCantonError\_JsGetUpdatesResponse

Direction
Server -> Client

Message
Either\_JsCantonError\_JsGetUpdatesResponse

Variants

#### JsCantonError

object

`code`
string

required

`cause`
string

required

`context`
object

required

`errorCategory`
string

required

#### JsGetUpdatesResponse

object

`update`
object

Variants

#### update

oneOf

`OffsetCheckpoint`
object

Variants

#### OffsetCheckpoint

object

`OffsetCheckpoint`
object

required

#### Reassignment

object

`Reassignment`
object

required

#### TopologyTransaction

object

`TopologyTransaction`
object

required

#### Transaction

object

`Transaction`
object

required

## Related Schemas

> [accordion] Either\_JsCantonError\_JsGetUpdatesResponse
>
> Variants
>
> #### JsCantonError
>
> object
>
> `code`
> string
>
> required
>
> `cause`
> string
>
> required
>
> `context`
> object
>
> required
>
> `errorCategory`
> string
>
> required
>
> #### JsGetUpdatesResponse
>
> object
>
> `update`
> object
>
> Variants
>
> #### update
>
> oneOf
>
> `OffsetCheckpoint`
> object
>
> Variants
>
> #### OffsetCheckpoint
>
> object
>
> `OffsetCheckpoint`
> object
>
> required
>
> #### Reassignment
>
> object
>
> `Reassignment`
> object
>
> required
>
> #### TopologyTransaction
>
> object
>
> `TopologyTransaction`
> object
>
> required
>
> #### Transaction
>
> object
>
> `Transaction`
> object
>
> required

## History

Removed in
`3.7`

Last available in 3.6. Retained for historical reference.

Updated
`3.6`

channel description updated

Updated
`3.5`

subscribe description updated

wscat

```bash wscat theme={"theme":{"light":"github-light","dark":"github-dark"}}
npx wscat -c <WEBSOCKET_URL>
```

message

application/json

```json message theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "code": "<string>",
  "cause": "<string>",
  "context": {},
  "errorCategory": "<integer>"
}
```
