Skip to content

Get actors schema

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
}

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.

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.

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.

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.