---
title: "B2B Insights"
method: GET
path: "/api/v1/b2b/insights"
tags: ["b2b"]
---

# B2B Insights

`GET /api/v1/b2b/insights`

## Request

- Base URL: `https://yondry.app` (the document declares no server; this is the origin it was published from)
- URL: `https://yondry.app/api/v1/b2b/insights`
- Auth: API key in header `X-API-Key`

Usage analytics for this tenant: top moods, place types, and companions.

## Query parameters

- `days` integer

## Response `200`

Successful Response

- B2BInsightsResponse: Response for GET /b2b/insights.
  - `tenant` string, required
  - `period_days` integer, required
  - `total_plans` integer, required
  - `top_moods` InsightBucket[], required
    - `label` string, required
    - `count` integer, required
    - `pct` number, required
  - `top_place_types` InsightBucket[], required
    - `label` string, required
    - `count` integer, required
    - `pct` number, required
  - `companion_breakdown` InsightBucket[], required
    - `label` string, required
    - `count` integer, required
    - `pct` number, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/yondry/apis/yondry-api.md) · [All operations](https://skmtc.dev/yondry/apis/yondry-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yondry/apis/yondry-api/revisions/d2c213cea95b?raw)
