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
}
Related articles
Events > Create events schema
The API endpoint creates an events schema by specifying the required attributes and their corresponding data types for a given project in a Manufactory organization.
Actors > Get actors schema
The endpoint retrieves the actors schema for a specific project, including attributes like city, country, email, and username.
Projects > Get a project
The API endpoint retrieves a specific Manufactory project using the provided org ID and project ID, requiring authentication.
Projects > Get all projects
All Manufactory projects can be retrieved using the GET /projects/{org_id} endpoint with authentication and the required org_id parameter.