Prisme.ai Events
Post v2workspaces events
AI Builder Endpoints
- API Gateway
- permissions
- Prisme.ai Events
- Prisme.ai Runtime
- Prisme.ai Workspaces
- Secrets
- ApiKeys
Prisme.ai Events
Post v2workspaces events
Emit a new event in this workspace
POST
/
v2
/
workspaces
/
{workspaceId}
/
events
curl --request POST \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/events \
--header 'Content-Type: application/json' \
--header 'X-Prismeai-API-Key: <api-key>' \
--data '{
"events": [
{
"type": "error",
"payload": {
"type": "<string>",
"message": "<string>",
"details": {}
}
}
]
}'
[
{
"type": "apps.someApp.someCustomEvent",
"source": {
"appSlug": "<string>",
"appInstanceFullSlug": "<string>",
"appInstanceDepth": 123,
"automationSlug": "<string>",
"automationDepth": 123,
"userId": "<string>",
"ip": "<string>",
"sessionId": "<string>",
"workspaceId": "<string>",
"socketId": "<string>",
"host": {
"service": "<string>"
},
"correlationId": "<string>",
"serviceTopic": "<string>"
},
"payload": "<any>",
"target": {
"userTopic": "<string>",
"userId": "<string>",
"sessionId": "<string>",
"currentSocket": true
},
"options": {
"persist": true,
"aggPayload": true
},
"error": {
"error": "<string>",
"message": "<string>",
"details": "<any>",
"level": "warning"
},
"createdAt": "<string>",
"id": "<string>",
"size": 123
}
]
Path Parameters
ID of workspace to listen to
Body
application/json
Response
200
application/json
Success Response
Example:
"apps.someApp.someCustomEvent"
Creation date (ISO8601)
Was this page helpful?
curl --request POST \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/events \
--header 'Content-Type: application/json' \
--header 'X-Prismeai-API-Key: <api-key>' \
--data '{
"events": [
{
"type": "error",
"payload": {
"type": "<string>",
"message": "<string>",
"details": {}
}
}
]
}'
[
{
"type": "apps.someApp.someCustomEvent",
"source": {
"appSlug": "<string>",
"appInstanceFullSlug": "<string>",
"appInstanceDepth": 123,
"automationSlug": "<string>",
"automationDepth": 123,
"userId": "<string>",
"ip": "<string>",
"sessionId": "<string>",
"workspaceId": "<string>",
"socketId": "<string>",
"host": {
"service": "<string>"
},
"correlationId": "<string>",
"serviceTopic": "<string>"
},
"payload": "<any>",
"target": {
"userTopic": "<string>",
"userId": "<string>",
"sessionId": "<string>",
"currentSocket": true
},
"options": {
"persist": true,
"aggPayload": true
},
"error": {
"error": "<string>",
"message": "<string>",
"details": "<any>",
"level": "warning"
},
"createdAt": "<string>",
"id": "<string>",
"size": 123
}
]