Skip to main content
Organization Templates let platform teams define a standard set of evaluators and monitoring charts that automatically populate across new projects. Instead of each team configuring observability from scratch, every new project starts with the resources your organization has standardized on.
Organization Templates are only available on the Enterprise plan. Managing the organization’s manifest requires org.templates.get and org.templates.set, which the default Org Admin role carries. Managing a workspace’s manifest requires workspace.templates.get and workspace.templates.set; Workspace Admins receive these by default on newly created organizations. On existing organizations, an org admin may need to add workspace.templates.* to the Workspace Admin role under Settings > Organization > Roles.

How templates work

Templates are configured via a YAML manifest in Settings > Organization > Templates. The manifest has two parts:
  1. Template definitions - Reusable blueprints for evaluators and charts
  2. Project templates - Which definitions to apply when a new project is created
When someone creates a new project, HoneyHive reads the manifest and creates the listed resources automatically.

Manifest structure

Evaluator definitions

Define evaluators under template_definitions.metric. HoneyHive supports three evaluator types:

Common fields

Every evaluator definition supports these fields:

Type-specific fields

The function has access to Python’s standard library and packages including pandas, scikit-learn, jsonschema, sqlglot, and requests.

Chart definitions

Define charts under template_definitions.chart. Each chart specifies what to measure, how to aggregate, and how to filter.

Project templates

The project_templates section lists which definitions are applied when a project is created. Reference definitions by name:

Organization and workspace manifests

The organization has a templates manifest, and so does each workspace. A workspace gets a copy of the organization’s manifest when it is created, and new projects in that workspace start from the workspace’s copy. The workspace manifest’s config.merge_strategy decides whether the organization’s manifest still contributes: A change to the organization’s manifest therefore reaches workspaces created afterward, and existing workspaces whose manifest merges. To change what new projects in an existing workspace start with, update that workspace’s manifest. Changing a manifest never changes existing projects.

Managing templates programmatically

You can read and replace a manifest with the control plane SDK or the CLI, for example to keep it in version control. Use a control plane API key with org.templates.get and org.templates.set for the organization’s manifest, or workspace.templates.get and workspace.templates.set for a workspace’s. This example reads the organization’s manifest, then replaces it with the contents of templates.yaml. Set ORG_ID to your organization ID, shown on the organization’s API Keys settings page.
For a workspace’s manifest, use client.workspaceTemplates or honeyhive workspace-templates with the workspace ID. Each update replaces the whole manifest. The content is validated first, and an invalid manifest returns 400. When an API key sends content identical to the current version, no new version is saved and the current version is returned, so applying the same file repeatedly is safe. The comparison is on the exact text. The CLI example’s $(cat templates.yaml) drops the file’s trailing newlines and the TypeScript example keeps them, so applying one file through both saves a new version. A key with a .set permission decides what future projects start with. See Template permissions reach future projects before issuing one.