Skip to main content
POST
Create Project Data Definition Tag

Permissions

The permissions required to access this endpoint. See Permissions Reference for what each role grants.

Required Permissions: write_data_definitions

Granted By Role: Owner Admin

Authorizations

Authorization
string
header
required

This endpoint uses Service Account authentication.

Headers

Mixpanel-Version
string
default:2026-08-13

Optional date-based API version pin.

If omitted, the request is served by the latest API version, and the caller accepts that a future release may introduce a breaking change to the response contract. If set to a supported version date, that version's contract is honored and will not receive a breaking change.

Idempotency-Key
string

Optional, client-provided key guaranteeing the operation is idempotent on success: if a request is replayed, the response includes Idempotent-Replayed: true.

Reusing a key with a different request body, or while a request with the same key is still in flight, returns a 409.

Use a unique, random value for each request (a UUID v4 works well).

Maximum string length: 255

Path Parameters

project_id
string
required

The unique identifier for the project.

Body

application/json
name
string
required

The tag's name. Unique within the project.

Required string length: 1 - 175

Response

Created

id
string
required
name
string
required
entity_count
integer
required

The number of definitions carrying the tag.