Mixpanel Schemas API

Manage Lexicon schema definitions

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Telemetry Quality & Governance BC-4280.20

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /projects/{projectId}/schemas List event, profile and group schemas · Mixpanel List schemas #
Ask an LLM
“What event and property schemas exist in my project?”
“Can I list only group schemas?”
Tell an agent
List all schemas in project {projectId}.
Show {entityType} schemas for project {projectId}.
PUT /projects/{projectId}/schemas Replace all schemas in a project · Mixpanel Replace schemas #
Ask an LLM
“How do I overwrite every schema in a project at once?”
“Can I delete schemas not in the new list?”
Tell an agent
Replace all schemas in project {projectId} with {entries}.
Replace project {projectId} schemas {entries} and truncate {truncate}.
POST /projects/{projectId}/schemas Create or update schemas · Mixpanel Create schemas #
Ask an LLM
“How do I add new event or property schemas?”
“Will existing schemas be removed when I create new ones?”
Tell an agent
Create or update schemas {entries} in project {projectId}.
Add {entries} to project {projectId} without touching other schemas.
DELETE /projects/{projectId}/schemas Delete specific schemas · Mixpanel Delete schemas #
Ask an LLM
“How do I remove a schema from my project?”
“Can I delete several schemas in one request?”
Tell an agent destructive · confirm first
Delete schemas {entries} from project {projectId}.
Remove {entries} from project {projectId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mixpanel:mixpanel-schemas-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mixpanel-schemas-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mixpanel Lexicon Schemas API
  description: API for syncing your internal data dictionary or tracking plan with Mixpanel using schemas, allowing you to create, replace, retrieve, and delete schema definitions that describe the data you send to Mixpanel.
  version: '1.0'
  contact:
    name: Mixpanel Support
    email: support@mixpanel.com
    url: https://mixpanel.com/get-support
  termsOfService: https://mixpanel.com/legal/terms-of-use
servers:
- url: https://mixpanel.com/api/app
  description: Mixpanel US Data Residency
- url: https://eu.mixpanel.com/api/app
  description: Mixpanel EU Data Residency
security:
- basicAuth: []
tags:
- name: Schemas
  description: Manage Lexicon schema definitions
paths:
  /projects/{projectId}/schemas:
    get:
      operationId: listSchemas
      summary: Mixpanel List schemas
      description: Retrieve all schema definitions for the project including event schemas, profile property schemas, and group schemas.
      tags:
      - Schemas
      parameters:
      - $ref: '#/components/parameters/projectId'
      - name: entityType
        in: query
        schema:
          type: string
          enum:
          - event
          - profile
          - group
          - lookup_table
        description: Filter schemas by entity type
      responses:
        '200':
          description: List of schemas
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/SchemaDefinition'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
    put:
      operationId: replaceSchemas
      summary: Mixpanel Replace schemas
      description: Replace all schema definitions for the specified entity type. This completely replaces existing schemas with the provided ones.
      tags:
      - Schemas
      parameters:
      - $ref: '#/components/parameters/projectId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - entries
              properties:
                entries:
                  type: array
                  items:
                    $ref: '#/components/schemas/SchemaEntry'
                truncate:
                  type: boolean
                  description: When true, deletes schemas not included in the request. When false, only adds or updates schemas.
      responses:
        '200':
          description: Schemas replaced successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
        '400':
          description: Invalid schema definitions
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
    post:
      operationId: createSchemas
      summary: Mixpanel Create schemas
      description: Create new schema definitions or update existing ones without removing schemas not included in the request.
      tags:
      - Schemas
      parameters:
      - $ref: '#/components/parameters/projectId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - entries
              properties:
                entries:
                  type: array
                  items:
                    $ref: '#/components/schemas/SchemaEntry'
      responses:
        '200':
          description: Schemas created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
        '400':
          description: Invalid schema definitions
        '401':
          description: Unauthorized
    delete:
      operationId: deleteSchemas
      summary: Mixpanel Delete schemas
      description: Delete specific schema definitions from the project.
      tags:
      - Schemas
      parameters:
      - $ref: '#/components/parameters/projectId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - entries
              properties:
                entries:
                  type: array
                  items:
                    type: object
                    required:
                    - entityType
                    - name
                    properties:
                      entityType:
                        type: string
                        enum:
                        - event
                        - profile
                        - group
                        - lookup_table
                      name:
                        type: string
                        description: Name of the schema to delete
      responses:
        '200':
          description: Schemas deleted successfully
        '401':
          description: Unauthorized
        '404':
          description: Schema not found
components:
  schemas:
    SchemaEntry:
      type: object
      required:
      - entityType
      - name
      properties:
        entityType:
          type: string
          enum:
          - event
          - profile
          - group
          - lookup_table
          description: The entity type
        name:
          type: string
          description: Event or property name
        description:
          type: string
          description: Human-readable description
        isHidden:
          type: boolean
          description: Whether to hide in the UI
        isDropped:
          type: boolean
          description: Whether to drop matching events
        properties:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/PropertySchema'
          description: Property definitions
    SchemaDefinition:
      type: object
      properties:
        entityType:
          type: string
          enum:
          - event
          - profile
          - group
          - lookup_table
          description: The type of entity this schema describes
        name:
          type: string
          description: Name of the event or property
        description:
          type: string
          description: Human-readable description
        isHidden:
          type: boolean
          description: Whether this schema is hidden in the UI
        isDropped:
          type: boolean
          description: Whether events matching this schema should be dropped
        properties:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/PropertySchema'
          description: Property definitions for this schema
    PropertySchema:
      type: object
      properties:
        type:
          type: string
          enum:
          - string
          - number
          - boolean
          - datetime
          - list
          - object
          description: Data type of the property
        description:
          type: string
          description: Description of the property
        required:
          type: boolean
          description: Whether the property is required
        isHidden:
          type: boolean
          description: Whether to hide this property in the UI
  parameters:
    projectId:
      name: projectId
      in: path
      required: true
      schema:
        type: integer
      description: The Mixpanel project ID
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Service account credentials for API authentication.
externalDocs:
  description: Mixpanel Lexicon Schemas API Documentation
  url: https://developer.mixpanel.com/reference/lexicon-schemas-api