How to hit the Honeycomb API

Honeycomb's API lives at https://api.honeycomb.io/1 (api.eu1.honeycomb.io for EU).

Authentication

Create an API key in your environment's settings and send it as the X-Honeycomb-Team header. In the examples it's written {{HONEYCOMB_API_KEY}}.

Full reference: https://api-docs.honeycomb.io/

Check a key

Which team and environment the key belongs to, and what it can do.

curl https://api.honeycomb.io/1/auth \
  -H "X-Honeycomb-Team: {{HONEYCOMB_API_KEY}}"
Run in PostTaco

List datasets

curl https://api.honeycomb.io/1/datasets \
  -H "X-Honeycomb-Team: {{HONEYCOMB_API_KEY}}"
Run in PostTaco

Send an event

curl -X POST https://api.honeycomb.io/1/events/{{DATASET}} \
  -H "X-Honeycomb-Team: {{HONEYCOMB_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{"endpoint": "/checkout", "duration_ms": 153}'
Run in PostTaco