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 events schema endpoint allows retrieval of project-specific event attribute definitions through a GET request using organization ID and project ID, returning details like event names, types, and data formats.

Actors > Create actors schema

The POST /actors/schema endpoint allows creation of actor schemas by specifying organization ID, project ID, attributes with data types, and a unique identifier field while requiring authentication via a Manufactory access token.

Actors > Get actors schema

The actors schema endpoint returns attribute details like city, country, email, and username for a specified organization and project when authenticated with a Manufactory access token.

Events > Delete events schema

Event schemas can be removed by sending a DELETE request with authentication via a Manufactory access token while specifying the organization and project IDs in the endpoint path.