# streamCanonicalRunEventsV1

```graphql
subscription StreamCanonicalRunEventsV1($command: CanonicalRunStreamCommandV1!) {
  streamCanonicalRunEventsV1(command: $command) {
    __typename
  }
}
```

Stream canonical run events and resume after a durable cursor.

## Arguments

| Name            | Type                         | Required | Description |
| --------------- | ---------------------------- | -------- | ----------- |
| `command`       | CanonicalRunStreamCommandV1! | Yes      |             |
| `command.runId` | ID!                          | Yes      |             |
| `lastEventId`   | RunEventCursorV1             |          |             |

## Variables

```json
{
  "command": {
    "runId": "string"
  }
}
```

## Responses

| Status | Description                                                                            |
| ------ | -------------------------------------------------------------------------------------- |
| 200    | A stream of events, each with a RunStreamMemberV1! in data.streamCanonicalRunEventsV1. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "subscription StreamCanonicalRunEventsV1($command: CanonicalRunStreamCommandV1!) {\n  streamCanonicalRunEventsV1(command: $command) {\n    __typename\n  }\n}",
  "variables": {
    "command": {
      "runId": "string"
    }
  }
}'
```

## Example response

```text
event: next
data: {"data":{"streamCanonicalRunEventsV1":{"__typename":"CanonicalRunEventMemberV1"}}}

event: complete
```
