Skip to content

Get events schema

You can fetch an events schema belonging to a specific project using the endpoint GET /events/schema/{org_id}/{project_id}.

Authentication

The following header is required for all API calls:

  • X-Manufactory-Auth - Manufactory access token

Required values

  • org_id (required) string - Manufactory org ID.
  • project_id (required) number - Manufactory project ID.

Response example

{
"attributes": [
{
"name": "event_name",
"display_name": "Event Name",
"data_type": "text"
},
{
"name": "event_type",
"display_name": "Event Type",
"data_type": "text"
},
{
"name": "made_purchase",
"display_name": "Made Purchase",
"data_type": "boolean"
}
],
"org_id": "xyz",
"project_id": 12345
}

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.

Events > Delete events schema

Event schemas can be deleted through a DELETE request to the endpoint by providing organization ID project ID and authentication via a Manufactory access token.

Actors > Get actors schema

The GET /actors/schema endpoint retrieves actor attributes like city country email and username for a specified organization and project using Manufactory access token authentication.

Manufactory > Events

Event schema design is essential for project implementation requiring single schema per project along with unique API keys to track data across different platforms and applications.