Get actors schema
You can get actors schema belonging to a specific project using the endpoint GET /actors/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": "city",
"display_name": "City",
"data_type": "text"
},
{
"name": "country",
"display_name": "Country",
"data_type": "text"
},
{
"name": "email",
"display_name": "Email",
"data_type": "text"
},
{
"name": "username",
"display_name": "Username",
"data_type": "text"
}
],
"org_id": "xyz",
"unique_id": "email",
"project_id": 12345
}
Related articles
Actors > Create actors schema
This endpoint allows you to create an actors schema by specifying the required attributes and their data types.
Events > Get events schema
The events schema of a specific project can be fetched using the provided API endpoint, which requires authentication and returns the schema attributes in JSON format.
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.
Projects > Get a project
The API endpoint retrieves a specific Manufactory project using the provided org ID and project ID, requiring authentication.