{"openapi":"3.1.0","info":{"title":"Mixpanel Lexicon (BYOK) API","version":"0.1.0","description":"Mixpanel Lexicon (BYOK) lets an AI assistant read your own Mixpanel Lexicon data through the Mixpanel Lexicon API with a key you supply (service account username). Read-only: 8 tools (list_schemas, list_schemas_for_entity, get_schema, list_annotations, get_annotation, list_annotation_tags, list_warehouse_imports, get_warehouse_import). The BYOK key travels with each request, is used for that one...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-mixpanel-lexicon.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-mixpanel-lexicon/docs"},"termsOfService":"https://connectorbay.com/byok-mixpanel-lexicon/terms"},"servers":[{"url":"https://byok-mixpanel-lexicon.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-mixpanel-lexicon/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_schemas":{"post":{"operationId":"list_schemas","summary":"List every Lexicon schema in the project: entity type (event or profile), name and description. Only entities that have ","description":"List every Lexicon schema in the project: entity type (event or profile), name and description. Only entities that have a schema are included. Use for \"Which events have a documented schema in my Mixpanel Lexicon\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"description":"Numeric Mixpanel project id (shown in project settings and in the project URL).","maximum":999999999999,"minimum":1,"title":"Project Id","type":"integer"}},"required":["project_id"],"title":"list_schemasArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_schemas_for_entity":{"post":{"operationId":"list_schemas_for_entity","summary":"List the Lexicon schemas of one entity type, optionally narrowed to one entity name. Use for \"Show the Lexicon schema fo","description":"List the Lexicon schemas of one entity type, optionally narrowed to one entity name. Use for \"Show the Lexicon schema for the Added To Cart event in Mixpanel\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"description":"Numeric Mixpanel project id (shown in project settings and in the project URL).","maximum":999999999999,"minimum":1,"title":"Project Id","type":"integer"},"entity_type":{"description":"Kind of entity: event or profile.","enum":["event","profile"],"title":"Entity Type","type":"string"},"entity_name":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"default":null,"description":"Exact entity name to return, for example Added To Cart.","title":"Entity Name"}},"required":["project_id","entity_type"],"title":"list_schemas_for_entityArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_schema":{"post":{"operationId":"get_schema","summary":"Get the schema of one entity: description and the property definitions (type and description of each property). Use for ","description":"Get the schema of one entity: description and the property definitions (type and description of each property). Use for \"What properties does the Added To Cart event have in Mixpanel Lexicon\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"description":"Numeric Mixpanel project id (shown in project settings and in the project URL).","maximum":999999999999,"minimum":1,"title":"Project Id","type":"integer"},"entity_type":{"description":"Kind of entity: event or profile.","enum":["event","profile"],"title":"Entity Type","type":"string"},"name":{"description":"Exact entity name, for example Added To Cart (URL-encoded for you).","maxLength":255,"title":"Name","type":"string"}},"required":["project_id","entity_type","name"],"title":"get_schemaArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_annotations":{"post":{"operationId":"list_annotations","summary":"List chart annotations of the project (date, text, tags and creator name), optionally between two dates. Use for \"What a","description":"List chart annotations of the project (date, text, tags and creator name), optionally between two dates. Use for \"What annotations are on my Mixpanel charts this quarter\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"description":"Numeric Mixpanel project id (shown in project settings and in the project URL).","maximum":999999999999,"minimum":1,"title":"Project Id","type":"integer"},"from_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"First date to include, as yyyy-mm-dd.","title":"From Date"},"to_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Last date to include, as yyyy-mm-dd.","title":"To Date"}},"required":["project_id"],"title":"list_annotationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_annotation":{"post":{"operationId":"get_annotation","summary":"Get one chart annotation by id: date, text, tags and creator name. Use for \"Show Mixpanel annotation 11\".","description":"Get one chart annotation by id: date, text, tags and creator name. Use for \"Show Mixpanel annotation 11\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"description":"Numeric Mixpanel project id (shown in project settings and in the project URL).","maximum":999999999999,"minimum":1,"title":"Project Id","type":"integer"},"annotation_id":{"description":"Annotation id from list_annotations.","maximum":9999999999,"minimum":1,"title":"Annotation Id","type":"integer"}},"required":["project_id","annotation_id"],"title":"get_annotationArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_annotation_tags":{"post":{"operationId":"list_annotation_tags","summary":"List the annotation tags that are attached to at least one annotation, with a flag whether each is in use. Use for \"Whic","description":"List the annotation tags that are attached to at least one annotation, with a flag whether each is in use. Use for \"Which annotation tags exist in Mixpanel\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"description":"Numeric Mixpanel project id (shown in project settings and in the project URL).","maximum":999999999999,"minimum":1,"title":"Project Id","type":"integer"}},"required":["project_id"],"title":"list_annotation_tagsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_warehouse_imports":{"post":{"operationId":"list_warehouse_imports","summary":"List warehouse imports configured for the project: import type, sync mode, schedule, paused flag and last dispatch time ","description":"List warehouse imports configured for the project: import type, sync mode, schedule, paused flag and last dispatch time (no creator details). Use for \"Which warehouse imports does my Mixpanel project have and are they paused\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"description":"Numeric Mixpanel project id (shown in project settings and in the project URL).","maximum":999999999999,"minimum":1,"title":"Project Id","type":"integer"}},"required":["project_id"],"title":"list_warehouse_importsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_warehouse_import":{"post":{"operationId":"get_warehouse_import","summary":"Get one warehouse import with its table, column and property mappings and sync settings. Use for \"Show the configuration","description":"Get one warehouse import with its table, column and property mappings and sync settings. Use for \"Show the configuration of Mixpanel warehouse import 3\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"description":"Numeric Mixpanel project id (shown in project settings and in the project URL).","maximum":999999999999,"minimum":1,"title":"Project Id","type":"integer"},"import_id":{"description":"Warehouse import id from list_warehouse_imports.","maximum":9999999999,"minimum":1,"title":"Import Id","type":"integer"}},"required":["project_id","import_id"],"title":"get_warehouse_importArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}