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

# Event

API operations for event. Browse the routes below for parameters, request examples, and responses.

API version: Selected per operation

## List events

List all events by project ID.

### Endpoint

```http
GET /v1/stable/event
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string",
  "description": "The alias of the environment to operate on (e.g. `main`)."
}
```

### Responses

#### 200

Schema:

```json
{
  "$ref": "#/components/schemas/StableEventListResponse"
}
```

Example:

```json
{
  "events": [
    {
      "id": "<string>",
      "name": "<string>",
      "requestName": "<string>",
      "description": "<string>",
      "goesTo": "<StableEventGoesTo>",
      "workflowID": "<string>",
      "isSystem": true,
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z"
    }
  ]
}
```

### Request examples

#### cURL

```bash
curl --request GET \
  --url 'https://realtime-api.voiceflow.com/v1/stable/event?projectID=<projectID>&environmentAlias=<environmentAlias>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/event?projectID=<projectID>&environmentAlias=<environmentAlias>', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.get(
    'https://realtime-api.voiceflow.com/v1/stable/event?projectID=<projectID>&environmentAlias=<environmentAlias>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf event list --project-id <projectID> --environment-alias <environmentAlias>
```


## Create event

Create a new event.

### Endpoint

```http
POST /v1/stable/event
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string",
  "description": "The alias of the environment to operate on (e.g. `main`)."
}
```

### Request body

Required

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StableEventCreateRequest"
      }
    }
  }
}
```

### Responses

#### 201

Schema:

```json
{
  "$ref": "#/components/schemas/StableEventResponse"
}
```

Example:

```json
{
  "event": {
    "id": "<string>",
    "name": "<string>",
    "requestName": "<string>",
    "description": "<string>",
    "goesTo": "flow",
    "workflowID": "<string>",
    "isSystem": true,
    "createdAt": "2026-09-10T00:00:00.000Z",
    "updatedAt": "2026-09-10T00:00:00.000Z"
  }
}
```

### Request examples

#### cURL

```bash
curl --request POST \
  --url 'https://realtime-api.voiceflow.com/v1/stable/event?projectID=<projectID>&environmentAlias=<environmentAlias>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "name": "<string>",
  "requestName": "<string>",
  "goesTo": "flow",
  "workflowID": "<string>"
}'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/event?projectID=<projectID>&environmentAlias=<environmentAlias>', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "description": "<string>",
    "name": "<string>",
    "requestName": "<string>",
    "goesTo": "flow",
    "workflowID": "<string>"
  }),
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.post(
    'https://realtime-api.voiceflow.com/v1/stable/event?projectID=<projectID>&environmentAlias=<environmentAlias>',
    headers={'Authorization': 'Bearer <token>'},
    json={
      "description": "<string>",
      "name": "<string>",
      "requestName": "<string>",
      "goesTo": "flow",
      "workflowID": "<string>"
    },
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf event create --project-id <projectID> --environment-alias <environmentAlias> <<'JSON'
{
  "description": "<string>",
  "name": "<string>",
  "requestName": "<string>",
  "goesTo": "flow",
  "workflowID": "<string>"
}
JSON
```


## Get event

Get an event by ID.

### Endpoint

```http
GET /v1/stable/event/{eventID}
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `eventID`

Required · string



```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string",
  "description": "The alias of the environment to operate on (e.g. `main`)."
}
```

### Responses

#### 200

Schema:

```json
{
  "$ref": "#/components/schemas/StableEventReadResponse"
}
```

Example:

```json
{
  "event": {
    "id": "<string>",
    "name": "<string>",
    "requestName": "<string>",
    "description": "<string>",
    "goesTo": "flow",
    "workflowID": "<string>",
    "isSystem": true,
    "createdAt": "2026-09-10T00:00:00.000Z",
    "updatedAt": "2026-09-10T00:00:00.000Z"
  }
}
```

### Request examples

#### cURL

```bash
curl --request GET \
  --url 'https://realtime-api.voiceflow.com/v1/stable/event/<eventID>?projectID=<projectID>&environmentAlias=<environmentAlias>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/event/<eventID>?projectID=<projectID>&environmentAlias=<environmentAlias>', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.get(
    'https://realtime-api.voiceflow.com/v1/stable/event/<eventID>?projectID=<projectID>&environmentAlias=<environmentAlias>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf event get --event-id <eventID> --project-id <projectID> --environment-alias <environmentAlias>
```


## Update event

Update an event by ID.

### Endpoint

```http
PATCH /v1/stable/event/{eventID}
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `eventID`

Required · string



```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string",
  "description": "The alias of the environment to operate on (e.g. `main`)."
}
```

### Request body

Required

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/StableEventUpdateRequest"
          }
        ]
      }
    }
  }
}
```

### Responses

#### 200

Schema:

```json
{
  "$ref": "#/components/schemas/StableUpdateResponse"
}
```

Example:

```json
{
  "message": "<string>"
}
```

### Request examples

#### cURL

```bash
curl --request PATCH \
  --url 'https://realtime-api.voiceflow.com/v1/stable/event/<eventID>?projectID=<projectID>&environmentAlias=<environmentAlias>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "name": "<string>",
  "requestName": "<string>",
  "goesTo": "flow",
  "workflowID": "<string>"
}'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/event/<eventID>?projectID=<projectID>&environmentAlias=<environmentAlias>', {
  method: 'PATCH',
  headers: {
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "description": "<string>",
    "name": "<string>",
    "requestName": "<string>",
    "goesTo": "flow",
    "workflowID": "<string>"
  }),
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.patch(
    'https://realtime-api.voiceflow.com/v1/stable/event/<eventID>?projectID=<projectID>&environmentAlias=<environmentAlias>',
    headers={'Authorization': 'Bearer <token>'},
    json={
      "description": "<string>",
      "name": "<string>",
      "requestName": "<string>",
      "goesTo": "flow",
      "workflowID": "<string>"
    },
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf event update --event-id <eventID> --project-id <projectID> --environment-alias <environmentAlias> <<'JSON'
{
  "description": "<string>",
  "name": "<string>",
  "requestName": "<string>",
  "goesTo": "flow",
  "workflowID": "<string>"
}
JSON
```


## Delete event

Delete an event by ID.

### Endpoint

```http
DELETE /v1/stable/event/{eventID}
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `eventID`

Required · string



```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string",
  "description": "The alias of the environment to operate on (e.g. `main`)."
}
```

### Responses

#### 200

Schema:

```json
{
  "$ref": "#/components/schemas/StableDeleteResponse"
}
```

Example:

```json
{
  "message": "<string>"
}
```

### Request examples

#### cURL

```bash
curl --request DELETE \
  --url 'https://realtime-api.voiceflow.com/v1/stable/event/<eventID>?projectID=<projectID>&environmentAlias=<environmentAlias>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/event/<eventID>?projectID=<projectID>&environmentAlias=<environmentAlias>', {
  method: 'DELETE',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.delete(
    'https://realtime-api.voiceflow.com/v1/stable/event/<eventID>?projectID=<projectID>&environmentAlias=<environmentAlias>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf event delete --event-id <eventID> --project-id <projectID> --environment-alias <environmentAlias>
```


## Schema definitions

### StableDeleteResponse

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "A human-readable message confirming the deletion."
    }
  },
  "required": [
    "message"
  ]
}
```

### StableEvent

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "The display name of the event, unique within the environment ignoring case."
    },
    "requestName": {
      "type": "string",
      "description": "The name a client sends to trigger the event, as payload.event.name of an `event` request. Unique within the environment."
    },
    "description": {
      "nullable": true,
      "description": "What the event is for. Null when none was written.",
      "type": "string"
    },
    "goesTo": {
      "nullable": true,
      "description": "What the agent does when the event arrives. Null on an event created before this setting existed.",
      "allOf": [
        {
          "$ref": "#/components/schemas/StableEventGoesTo"
        }
      ]
    },
    "workflowID": {
      "nullable": true,
      "description": "The workflow the event runs when goesTo is `flow`, as a workflow ID from voiceflow_workflow.list.",
      "type": "string"
    },
    "isSystem": {
      "type": "boolean",
      "description": "True for an event Voiceflow manages. A system event cannot be deleted."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    }
  },
  "required": [
    "id",
    "name",
    "requestName",
    "description",
    "goesTo",
    "workflowID",
    "isSystem",
    "createdAt",
    "updatedAt"
  ]
}
```

### StableEventCreateRequest

```json
{
  "type": "object",
  "properties": {
    "description": {
      "nullable": true,
      "description": "What the event is for. Null when none was written.",
      "type": "string"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "The display name of the event. Must not match another event in this environment, ignoring case."
    },
    "requestName": {
      "description": "The name a client sends to trigger the event, as payload.event.name of an `event` request. Letters, digits, underscores and $ only, at most 64 characters. Must not be used by another event in this environment. Defaults to the name with spaces turned into underscores and other characters dropped.",
      "type": "string",
      "pattern": "^[\\w$]{1,64}$"
    },
    "goesTo": {
      "$ref": "#/components/schemas/StableEventGoesTo"
    },
    "workflowID": {
      "nullable": true,
      "description": "The workflow to run, as a workflow ID from voiceflow_workflow.list. Required when goesTo is `flow`; leave it out for any other goesTo.",
      "type": "string"
    }
  },
  "required": [
    "name",
    "goesTo"
  ],
  "additionalProperties": false
}
```

### StableEventGoesTo

```json
{
  "type": "string",
  "enum": [
    "flow",
    "global_agent",
    "continue"
  ],
  "description": "What the agent does when the event arrives. `flow` runs the workflow named by workflowID. `global_agent` hands the conversation back to the agent to decide what to do next, and is only valid in an agent project. `continue` carries on the conversation where it was, for an event that only updates user info.",
  "x-enumNames": [
    "FLOW",
    "GLOBAL_AGENT",
    "CONTINUE"
  ]
}
```

### StableEventListResponse

```json
{
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableEvent"
      }
    }
  },
  "required": [
    "events"
  ]
}
```

### StableEventReadResponse

```json
{
  "type": "object",
  "properties": {
    "event": {
      "$ref": "#/components/schemas/StableEvent"
    }
  },
  "required": [
    "event"
  ]
}
```

### StableEventResponse

```json
{
  "type": "object",
  "properties": {
    "event": {
      "$ref": "#/components/schemas/StableEvent"
    }
  },
  "required": [
    "event"
  ]
}
```

### StableEventUpdateRequest

```json
{
  "type": "object",
  "properties": {
    "description": {
      "nullable": true,
      "description": "What the event is for. Null when none was written.",
      "type": "string"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "The display name of the event. Must not match another event in this environment, ignoring case. Renaming does not change requestName."
    },
    "requestName": {
      "type": "string",
      "pattern": "^[\\w$]{1,64}$",
      "description": "The name a client sends to trigger the event. Letters, digits, underscores and $ only, at most 64 characters. Must not be used by another event in this environment. Changing it breaks any client still sending the old name."
    },
    "goesTo": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StableEventGoesTo"
        }
      ]
    },
    "workflowID": {
      "nullable": true,
      "description": "The workflow to run, as a workflow ID from voiceflow_workflow.list. Only valid while goesTo is `flow`. Changing goesTo away from `flow` clears it.",
      "type": "string"
    }
  },
  "additionalProperties": false
}
```

### StableUpdateResponse

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "A human-readable message confirming the update."
    }
  },
  "required": [
    "message"
  ]
}
```
