Skip to content

Create actors schema

Create an actor schema via API

You can create users schema using the endpoint POST /actors/schema.

Authentication

The following header is required for all API calls:

  • X-Manufactory-Auth - Manufactory access token

Required keys

  • org_id (required) string - Manufactory org ID.
  • project_id (required) number - The project ID associated with this schema.
  • attributes (required) object - Pairs containing attribute name and the corresponding data type. A complete list of valid data types.
  • unique_id (required) string - The attribute that will be used as a unique ID for a actors profile to differentiate user profiles.

Request example

{
"org_id": "xyz",
"unique_id": "email",
"project_id": 12345,
"attributes":{
"City": "TEXT",
"Country": "TEXT",
"Email": "TEXT",
"Username": "TEXT"
}
}

Response example

{
"message": "Actors schema created successfully"
}

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.

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.

Actors > Delete actors schema

Actor schemas can be deleted through a DELETE endpoint by providing organization and project IDs along with Manufactory authentication token in the request header.

Rest Api > Send events via the REST API

Actor profiles can be sent through a POST request to /events endpoint requiring organization ID project ID actor profile and attributes with specific data types and names.