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

# Stream canonical run events

> Stream canonical run events and resume after a durable cursor.

`streamCanonicalRunEventsV1(command: CanonicalRunStreamCommandV1!, lastEventId: RunEventCursorV1): RunStreamMemberV1!`

## Arguments

| Argument | Type | Required |
| - | - | - |
| `command` | [`CanonicalRunStreamCommandV1!`](https://veryfront.com/docs/cloud/graphql/types/canonicalrunstreamcommandv1) | Yes |
| `lastEventId` | [`RunEventCursorV1`](https://veryfront.com/docs/cloud/graphql/types/runeventcursorv1) | No |

## Input fields

### command

[`CanonicalRunStreamCommandV1`](https://veryfront.com/docs/cloud/graphql/types/canonicalrunstreamcommandv1)

| Field | Type | Required |
| - | - | - |
| `runId` | [`ID!`](https://veryfront.com/docs/cloud/graphql/types/id) | Yes |

## Response

Returns [`RunStreamMemberV1!`](https://veryfront.com/docs/cloud/graphql/types/runstreammemberv1). Open the type for its fields and nested types.

* [`CanonicalRunEventMemberV1`](https://veryfront.com/docs/cloud/graphql/types/canonicalruneventmemberv1)
* [`LegacyRunEventMemberV1`](https://veryfront.com/docs/cloud/graphql/types/legacyruneventmemberv1)
* [`TransientRunEventMemberV1`](https://veryfront.com/docs/cloud/graphql/types/transientruneventmemberv1)

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
subscription StreamCanonicalRunEventsV1($command: CanonicalRunStreamCommandV1!, $lastEventId: RunEventCursorV1) {
  streamCanonicalRunEventsV1(command: $command, lastEventId: $lastEventId) {
    __typename
    ... on CanonicalRunEventMemberV1 {
    value
    }
    ... on LegacyRunEventMemberV1 {
    value
    }
  }
}
```

```json title="variables.json" theme={null}
{
  "command": {
    "runId": "00000000-0000-4000-8000-000000000001"
  }
}
```

<details>
  <summary>Try this subscription</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


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