Publishable Keys API
Publishable keys are client-safe keys used by SDK/browser ingestion flows.Endpoints
GET /api/publishable-keysPOST /api/publishable-keysPATCH /api/publishable-keys/:keyIdDELETE /api/publishable-keys/:keyId
Feature and permissions
- Feature gate:
pixelSdk workspace:read: listworkspace:update: create/update/delete
List filtering
GET /api/publishable-keys?campaignId=<id>
When campaignId is supplied, response includes:
- campaign-scoped keys targeting that campaign
- workspace-wide keys (no campaign restrictions)
Create payload
key(full secret, one-time)keyPrefix
Update payload
Supports partial updates for:nameenabledcampaignIdsallowedOrigins
Delete behavior
Deletes key and invalidates key cache.Common errors
404: key not found in workspace scope403: permission or feature not available

