Skip to content

Send events via the web socket

After establishing a websocket connection with Tallyfy Manufactory, we can start sending user-generated events via the open channel.

Required keys

  • type (required) string - The message type, in this case we will be using event.
  • attributes (required) object - Pairs containing attribute name and the corresponding value while considering the correct attribute names and data types. Please refer to get events schema.

Websocket message example

{
"type": "event",
"attributes": {
"event_name": "login",
"event_type": "user-actions",
"made_purchase": false
}
}

Websocket reply example

{
"type": "event",
"status": "ok"
}

Websocket > Connect to our web socket server

Tallyfy Manufactory websocket connection requires authentication using client UUID and actor profile ID followed by pairing the connection with required keys including type org_id project_id actor_profile_id and client_uuid to enable real-time event transmission.

Events > Create events schema

Tallyfy Manufactory allows you to create events schemas by sending a POST request to /events/schema with organization ID project ID and attribute definitions using proper authentication headers.

Rest Api > Send events via the REST API

The POST /events endpoint enables sending actor profiles to Tallyfy Manufactory by providing organization ID project ID actor profile object and event attributes with proper schema validation.