Mitzu API
Mitzu API
The Mitzu API lets you manage a workspace's event tables, trigger indexing, update the event catalog and read event usage statistics, so Mitzu stays in sync when the tables in your data warehouse change.
It also configures workspaces end to end: create a workspace or clone one from a template, set its connection, event, dimension and metric tables, indexing and insight settings, data filter and branding. The API key acts as an Org Admin for these requests. See Onboard tenants over the API for a walkthrough.
It also manages who is in the organization and who can open each workspace: inviting, updating and removing members, deciding join requests, and opening or restricting workspaces. The API key acts as an Org Admin for these requests, but it is never the Org Owner and can't change ownership.
Every request needs one of the API key's permissions, named under API key permission on each request; a key without it gets 403. Org management covers the organization's members and join requests, and creating, cloning and deleting workspaces. Workspace management covers a workspace's settings, connection, data filter, branding and members. Catalog covers the event catalog and event usage statistics. Data covers event, dimension and metric tables and entities. Indexing accepts Catalog or Data. Keys created before permissions existed can call every request, and the member requests only if they were allowed to manage members, until an admin saves their permissions. See API keys.
The API calls a workspace a project: the paths start with /projects, and IDs and fields are
named project_id, project_ids, project_name and projects.
Every error response has a JSON body with a single message field describing the problem.
Authentication
- API Key: MitzuApiKey
API Key
Admins can create API keys on the API keys tab of the organization settings. API access has to be enabled for your organization first; contact support@mitzu.io to turn it on.
A key reaches every workspace in the organization, and its permissions (Org management, Workspace management, Catalog, Data) decide which requests it can make. Admins pick them when creating the key or later with Edit permissions. Store the key as a secret.
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | x-mitzu-api-key |