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 endpoint allows creation of events schema by specifying organization ID, project ID, and attribute definitions through an authenticated POST request to manage event data structures.

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.

Projects > Get a project

The GET endpoint retrieves project details including organization ID, project ID, name, description, timezone, creation timestamp, and project key when authenticated with a Manufactory access token.

Projects > Get all projects

The GET /projects/[org_id] endpoint retrieves a list of Manufactory projects with their details including project ID, name, description, timezone, and creation timestamp when authenticated with a valid access token.