Lexicon Schemas API
Use schemas to populate Mixpanel Lexicon and provide additional context for your data.Base URL
List Schemas
Get all schemas in a project.number
required
Your Mixpanel project ID
Example Request
Create/Replace Schema
Upload or update a schema for an event or profile.number
required
Your Mixpanel project ID
string
required
Type of entity:
event or profilestring
required
Name of the event or profile property
string
Description of the entity
object
Properties schema definition
Example Request
Batch Upload Schemas
Upload multiple schemas at once.array
required
Array of schema entries
boolean
Delete entire data dictionary before insertingDefault:
falseExample Request
Delete Schema
Remove a schema from the project.number
required
Your Mixpanel project ID
string
required
event or profilestring
required
Name of the event or profile
Example Request
Best Practices
Sync schemas from your tracking plan
Sync schemas from your tracking plan
Keep schemas in sync with your source code:
Use clear descriptions
Use clear descriptions
Provide context for analysts:
Leverage metadata for UI customization
Leverage metadata for UI customization
Control how properties appear in Mixpanel: