Skip to main content
POST
/
workspaces
/
{ws_id}
/
events
Create an event
curl --request POST \
  --url http://localhost:8080/workspaces/{ws_id}/events \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "event_type": "<string>",
  "data": {},
  "ingested_at": 123,
  "unique_id": "<string>"
}'
{
  "id": "<string>",
  "event_type": "<string>",
  "data": {},
  "ingested_at": 123,
  "unique_id": "<string>",
  "created_at": 123,
  "updated_at": 123
}

Path Parameters

ws_id
string
required

The workspace id

Example:

"default"

Body

application/json
event_type
string
required
data
object
required
id
string
ingested_at
integer

The time the event was ingested

unique_id
string | null

The unique id used to de-duplication

Maximum length: 50

Response

201 - application/json

OK

event_type
string
required
data
object
required
id
string
ingested_at
integer

The time the event was ingested

unique_id
string | null

The unique id used to de-duplication

Maximum length: 50
created_at
integer
updated_at
integer