# getRunEvent

```graphql
query GetRunEvent($command: RunsGetRunEventCommand!) {
  getRunEvent(command: $command) {
    eventId
    eventType
    payload
    isError
    createdAt
    runId
    eventClass
    spanId
    parentSpanId
    turnId
    originEventType
    originCustomName
    unrecoverableFields
  }
}
```

Read one recorded event by canonical run UUID and numeric event\_id.

## Arguments

| Name              | Type                    | Required | Description |
| ----------------- | ----------------------- | -------- | ----------- |
| `command`         | RunsGetRunEventCommand! | Yes      |             |
| `command.runId`   | ID!                     | Yes      |             |
| `command.eventId` | Float!                  | Yes      |             |

## Variables

```json
{
  "command": {
    "runId": "string",
    "eventId": 0
  }
}
```

## Responses

| Status | Description                         |
| ------ | ----------------------------------- |
| 200    | The RunsEvent! in data.getRunEvent. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query GetRunEvent($command: RunsGetRunEventCommand!) {\n  getRunEvent(command: $command) {\n    eventId\n    eventType\n    payload\n    isError\n    createdAt\n    runId\n    eventClass\n    spanId\n    parentSpanId\n    turnId\n    originEventType\n    originCustomName\n    unrecoverableFields\n  }\n}",
  "variables": {
    "command": {
      "runId": "string",
      "eventId": 0
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "getRunEvent": {
      "eventId": 0,
      "eventType": "string",
      "payload": {},
      "isError": false,
      "createdAt": "string",
      "runId": "string",
      "eventClass": "string",
      "spanId": "string",
      "parentSpanId": "string",
      "turnId": "string",
      "originEventType": "string",
      "originCustomName": "string",
      "unrecoverableFields": [
        "string"
      ]
    }
  }
}
```
