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
  }
]

Authorizations

X-Prismeai-API-Key
string
header
required
connect.sid
string
cookie
required

Path Parameters

workspaceId
string
required

ID of workspace to listen to

Body

application/json
events
object[]
required

Response

200
application/json
Success Response
type
string
required
Example:

"apps.someApp.someCustomEvent"

source
object
required
createdAt
string
required

Creation date (ISO8601)

id
string
required
size
number
required
payload
any
target
object
options
object
error
object