Overview
The taxonomy maps segment codes in your data files to human-readable names, descriptions, and optional metadata. You must configure your taxonomy before uploading data files—codes that don’t exist in the taxonomy will be ignored during processing.Prerequisites:
- An import already created in the Permutive Dashboard
- Segment codes from your data provider (the codes that will appear in data files)
- Optionally: CPM pricing and lifetime overrides for each segment
Understanding Taxonomy
Your taxonomy defines:- Segment Code: The unique identifier used in data files (e.g., “0001”, “demo_25_34”)
- Name: Human-readable name shown in the Dashboard (e.g., “Age 25-34”)
- Description: Optional explanation of the segment
- CPM: Optional cost-per-mille for third-party data pricing
- Lifetime: Optional per-segment TTL override (days)
Method 1: CSV Upload
The simplest way to configure taxonomy is through CSV upload in the Dashboard.Navigate to Your Import
In the Permutive Dashboard, go to Connectivity > Imports and select the import you want to configure.
Download the Template (Optional)
If available, download the CSV template to ensure your file matches the expected format.
Prepare Your CSV File
Create a CSV file with the following columns:Field requirements:
ID(required): Unique segment code, alphanumeric with no spacesName(required): Display name in DashboardDescription(optional): Segment descriptionCPM (USD)(optional): Cost per mille for third-party segmentsLifetime (days)(optional): Per-segment TTL override
Upload the CSV
Upload your CSV file through the Dashboard. The taxonomy will be validated and applied to your import.
Method 2: Taxonomy API
Use the Taxonomy API for programmatic management of segments. This is ideal for automated workflows, incremental updates, or integration with your internal systems.API Details
| Property | Value |
|---|---|
| Base URL | https://api.permutive.app/audience-api/v1 |
| Authentication | Private API key via x-api-key header |
| Max operations per request | 5,000 |
See the API Authentication documentation for details on obtaining and using your private API key.
Identifying Your Import
When making API calls, you can identify your import using either:- Import Code: A human-readable string identifier (e.g., “my-import”)
- Import Public ID: A UUID identifier (e.g., “f336d0bc-b841-465b-8045-024475c079dd”)
Bulk Operations Endpoint
The bulk endpoint allows you to create, update, and delete multiple segments in a single request. Endpoint:POST /imports/{import_id}/segments/bulk
Request body:
Operation Types
Create — Add a new segment to the taxonomy:Example: Full API Request
Handling Large Taxonomies
The API supports a maximum of 5,000 operations per request. For larger taxonomies:- Split your operations into batches of 5,000 or fewer
- Make multiple sequential API requests
- Consider using CSV upload for initial bulk creation, then API for incremental updates
Best Practices
- Set up taxonomy before uploading data: Segment codes not in the taxonomy are ignored
- Use descriptive names: Help your team understand what each segment represents
- Document segment codes: Maintain a mapping between provider codes and their meanings
- Use categories: Group related segments for easier organization
- Review CPM values: Ensure pricing is accurate for third-party data monetization