Honeycomb Resource Hierarchy
Honeycomb organizes resources hierarchically: Teams contain Environments, and Environments contain Datasets and other resources. API keys operate at different levels of this hierarchy, which determines what they can access.- Environment-level keys access a single Environment and its Datasets. These include Ingest and Configuration Keys.
- Team-level keys access all Environments and Team settings. These are Management Keys.
If you use Honeycomb Classic, your account doesn’t have Environments.
Classic API keys operate at the Team level and access all your Classic Datasets directly.
API Key Format
On creation, every API key is assigned a Key ID, which is a label used to identify the Key in the Honeycomb UI. Key IDs include a prefix that identifies the key type:hc[x]ik_: Ingest Keyhc[x]lk_: Configuration Keyhc[x]mk_: Management Key
The character shown as
[x] varies and is assigned at key creation.API Key Types
Honeycomb has three types of API keys, each designed for a specific purpose and scope.| Key Type | Scope | Use | Header | Via the UI | Via the API |
|---|---|---|---|---|---|
| Ingest | Environment | Send telemetry data | X-Honeycomb-Team | Ingest Key | data.id + data.attributes.secret |
| Configuration | Environment | Manage Environment resources | X-Honeycomb-Team | Token | data.attributes.secret |
| Management | Team | Manage keys and Environments | Authorization: Bearer | Key ID + : + Secret | N/A |
When creating an Ingest Key through the UI, Honeycomb returns the complete key value.
You only need to construct it from
data.id and data.attributes.secret when using the Create an API Key endpoint.Ingest Keys
Ingest Keys send data to Honeycomb. Pass an Ingest Key in theX-Honeycomb-Team header.
The key value is the Key ID and Secret concatenated with no separator.
If you created your key through the UI, Honeycomb provides the complete value as the Ingest Key.
If you created it via the API, concatenate data.id and data.attributes.secret with no separator.
Configuration Keys
Configuration Keys read and manage resources within a specific Environment, such as Datasets, queries, Boards, Triggers, and SLOs. Pass the Token in theX-Honeycomb-Team header.
If you created your Configuration Key via the API, use data.attributes.secret; this is the same value as the Token in the UI.
Management Keys
Management Keys handle Team-level operations, including managing Environments and API keys. Pass a Management Key as a Bearer token in theAuthorization header.
Construct the key value by joining the Key ID and Secret with a colon (:).
Management Keys can only be created through the UI.
Validating a Key
Use the Auth endpoint to confirm which key you are using, check its permissions, and identify the Team and Environment it belongs to.If you use Honeycomb Classic, the
environment.name and environment.slug fields in the Auth endpoint response will return empty strings.
This is expected behavior.