Get event subscriptions
GET/assistants/{assistantId}/eventSubscriptions
Base URL: https://api.tinkermode.com
Get a list of event subscriptions for the AI Assistant instance. This endpoint is available only for Project-level Assistants.
Authentication
Send an Authorization header of the form ModeCloud <AUTH_CODE>.
Must contain the key of a user or service account with permissions to read assistant instances, or a project API key.
Path parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
assistantId | integer | Yes | The unique ID for a specific Assistant instance. |
Query parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
eventType | string | No | Filter by event type. | |
limit | integer | No | default: 100; min: 1 | Maximum number of items to return. |
skip | integer | No | default: 0; min: 0 | Number of items to skip over. |
Responses
200 Successfully retrieved the event subscriptions.
Content type: application/json
Represents an event subscription for an AI Assistant instance.
An array of objects with the following shape:
| Property | Type | Required | Constraints | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
actions | array<object> | Yes | The actions to take when the event is triggered. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
assistantId | integer | Yes | The unique identifier for the AI Assistant instance this event subscription belongs to. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt | string | No | read-only (server-generated); format: date-time | Timestamp when the event subscription was created. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description | string | No | A description of the event subscription. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
disabled | boolean | No | Whether the event subscription is disabled. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
eventType | string | Yes | The type of event to subscribe to. The pair of (assistantId, eventType) must be unique. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id | integer | No | read-only (server-generated) | The unique identifier for the event subscription. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | string | Yes | Display name of the event subscription. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
projectId | integer | Yes | The unique identifier for the project the event subscription belongs to. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updatedAt | string | No | read-only (server-generated); format: date-time | Timestamp when the event subscription was last updated. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
401 Authorization is required to access this resource.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
403 Request failed because of denied permission.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
429 Request failed because of rate limit.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
500 An unexpected error has occurred.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
503 The service is temporarily unavailable.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |