Skip to content

Create events schema

Design your events schema

You can create events schema using the endpoint POST /events/schema.

Authentication

The following header is required for all API calls:

  • X-Manufactory-Auth - Manufactory access token

Required keys

  • org_id (required) string - Manufactory org ID.
  • project_id (required) number - The project ID associated with this schema.
  • attributes (required) object - Pairs containing attribute name and the corresponding data type. A complete list of valid data types.

Request example

{
"org_id": "xyz",
"project_id": 12345,
"attributes":{
"Event name": "TEXT",
"Event type": "TEXT",
"Made purchase": "BOOLEAN"
}
}

Response example

{
"message": "Events schema created successfully"
}

Events > Get events schema

The GET endpoint retrieves event schema attributes with their names display names and data types for a specified organization and project using a Manufactory access token for authentication.

Actors > Create actors schema

The POST /actors/schema endpoint enables creation of user profiles by specifying organization details project ID unique identifiers and data attributes requiring authentication through a Manufactory access token.

Actors > Get actors schema

The GET endpoint retrieves actor schema details by organization and project IDs returning attribute definitions with data types and unique identifiers through an authenticated request.

Events > Delete events schema

Event schemas can be removed by making a DELETE request to the endpoint with organization and project IDs while including the required Manufactory authentication token header.