Skip to content

Send events via the REST API

You can send actor profiles along by using the endpoint POST /events.

Required keys

  • org_id (required) string - Manufactory org ID.
  • project_id (required) number - The project ID associated with this schema.
  • actor_profile (required) object - Pairs containing attribute name and the corresponding value while considering the correct attribute names and data types. Please refer to Get Actors schema.
  • 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.

Request example

{
"org_id": "demo",
"project_id": 12345,
"actor_profile": {
"microservice": "accounts-ms"
},
"attributes": {
"request_method": "POST",
"request_url": "/login",
"request_body": {
"username": "john",
"password": "123"
},
"request_ip": "1.1.1.1"
}
}

Response example

{
"message": "success"
}

Events > Create events schema

The POST /events/schema endpoint allows creation of custom event schemas by specifying organization details project ID and attribute definitions using a Manufactory access token for authentication.

Actors > Create actors schema

The POST /actors/schema endpoint allows creation of actor schemas by specifying organization ID project ID attributes and a unique identifier with proper authentication through a Manufactory access token.

Collector > Collecting events via the REST API

A comprehensive data collection system enables sending events and actor information through multiple integration methods including REST API websocket and CLI agent while providing real-time monitoring capabilities for manufacturing processes.

Agent > Send events via the CLI agent

The Manufactory agent enables sending actor-generated events by encoding actor and event objects in base64 format and passing them as required parameters through the command line interface.