Skip to main content

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 profile
string
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: false

Example Request


Delete Schema

Remove a schema from the project.
number
required
Your Mixpanel project ID
string
required
event or profile
string
required
Name of the event or profile

Example Request

Best Practices

Keep schemas in sync with your source code:
Provide context for analysts:
Control how properties appear in Mixpanel: