---
search:
  tags:
    - Agent Behavior Insights
    - GET
seo:
  description: >-
    The headline output: for each capability agents' negotiation requests
    actually… Reference for the GET /insights/capability_gaps endpoint in the
    Sarvex V1 API.
sidebar:
  label: Capabilities agents requested that the merchant doesn't declare
  badge: GET
title: Capabilities agents requested that the merchant doesn't declare
type: openapi-operation
---
The headline output: for each capability agents' negotiation
requests actually named, minus the capabilities the merchant
declares in their UCP profile. Sorted by estimated_impact_minor
descending, request_count descending as tiebreak, unconditionally
— there is no sort query parameter, the same money-first
invariant the Lost Revenue Ledger enforces on its own default
sort. estimated_impact_minor is 0 with impact_confidence=unmeasurable
unless a specific failed/abandoned checkout's cart snapshot could
be demonstrably attributed to the missing capability — never a
modeled or extrapolated figure. Rows with request_count below the
small-count suppression threshold (default 5) are omitted.

`GET /insights/capability_gaps`

**Responses**

- `200` — Capability gaps for the month, impact-sorted.
- `403` — Authenticated but not permitted (e.g. non-operator on an operator route).
- `422` — Request body failed validation.

Response example, 200:

```json
{
  "data": [
    {
      "capability_id": "string",
      "request_count": 0,
      "distinct_agent_count": 0,
      "surface_breakdown": {
        "property1": 0,
        "property2": 0
      },
      "first_seen_at": "2019-08-24T14:15:22Z",
      "last_seen_at": "2019-08-24T14:15:22Z",
      "estimated_impact_minor": 0,
      "impact_confidence": "measured",
      "merchant_supported": true,
      "remediation_available": true,
      "recommended_action": "string"
    }
  ],
  "page": {
    "cursor": "string",
    "has_more": true
  }
}
```

Response example, 403:

```json
{
  "error": {
    "code": "forbidden",
    "message": "Operator role required.",
    "details": null
  }
}
```

Response example, 422:

```json
{
  "error": {
    "code": "validation_error",
    "message": "One or more fields are invalid.",
    "details": {
      "fields": {
        "email": "must be a valid email address"
      }
    }
  }
}
```
