Get an event subscription

GET/projects/{projectId}/entities/{entityId}/assistants/{assistantId}/eventSubscriptions/{eventSubscriptionId}

Base URL: https://api.tinkermode.com

Return the event subscription with the specified ID.

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 assistants of the entity, or a project API key.

Path parameters

NameTypeRequiredConstraintsDescription
projectIdintegerYesThe unique ID for a specified project.
entityIdstringYesEntity ID (unique within project)
assistantIdintegerYesThe unique ID for a specific assistant.
eventSubscriptionIdintegerYesThe unique ID for a specific event subscription.

Responses

200 Successfully retrieved the specified event subscription.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
actionsarray<object>YesThe actions to take when the event is triggered.
Properties of actions
PropertyTypeRequiredConstraintsDescription
configobjectNoConfiguration for the action. The structure depends on the action type. This structure can vary based on the action type, but so far, we only have 'send_message' action type.
Properties of config
PropertyTypeRequiredConstraintsDescription
notificationTargetobjectNoThe target to send notifications to.
Properties of notificationTarget
PropertyTypeRequiredConstraintsDescription
directTargetsarray<object>NoDirect rooms to send notifications to.

Nested structure continues below this depth.

msTeamsTargetsarray<object>NoMS Teams channels to send notifications to.

Nested structure continues below this depth.

slackTargetsarray<object>NoSlack channels to send notifications to.

Nested structure continues below this depth.

typeunknownNoone of: send_messageThe type of action to perform.
assistantIdintegerYesThe unique identifier for the AI Assistant instance this event subscription belongs to.
createdAtstringNoread-only (server-generated); format: date-timeTimestamp when the event subscription was created.
descriptionstringNoA description of the event subscription.
disabledbooleanNoWhether the event subscription is disabled.
eventTypestringYesThe type of event to subscribe to. The pair of (assistantId, eventType) must be unique.
idintegerNoread-only (server-generated)The unique identifier for the event subscription.
namestringYesDisplay name of the event subscription.
projectIdintegerYesThe unique identifier for the project the event subscription belongs to.
updatedAtstringNoread-only (server-generated); format: date-timeTimestamp when the event subscription was last updated.

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

404 The requested eventSubscription does not exist or is not accessible.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.