---
title: "Get blueprint usage statistics for a geofence"
method: GET
path: "/geofence/v1/geofences/{geofence_id}/blueprints"
tags: ["geofence_Device State"]
---

# Get blueprint usage statistics for a geofence

`GET /geofence/v1/geofences/{geofence_id}/blueprints`

## Request

- Base URL: `https://develop-api.esper.cloud/api`
- URL: `https://develop-api.esper.cloud/api/geofence/v1/geofences/{geofence_id}/blueprints`
- Auth: HTTP bearer

Returns paginated statistics on blueprint usage within a specific geofence — which blueprints are applied to devices inside that geofence and how many devices use each. Use it to understand how blueprint-driven configuration correlates with a location-based boundary.

Scoped to a single geofence_id; each result identifies a blueprint and the count of devices in that geofence currently using it.

**About Geofences**

A geofence is a virtual geographic boundary that can be tied to blueprint-based device configuration, so devices entering or leaving the boundary can be managed differently depending on which blueprint they're running. This endpoint gives visibility into that blueprint-to-geofence relationship.

**Key Fields / Query Parameters**

- geofence_id — path parameter identifying the geofence to report on

**Common Use Cases**

- Auditing which blueprint versions are in use across devices within a specific geofence
- Verifying blueprint rollout coverage for a location-restricted device population

## Path parameters

- `geofence_id` string, uuid, required

## Query parameters

- `offset` integer
- `limit` integer

## Headers

- `X-Esper-Tenant-Id` string, uuid, required
- `X-Caller-Id` string, required

## Response `200`

Blueprint usage statistics retrieved successfully

- object
  - `content` object
    - `next` string, nullable
    - `previous` string, nullable
    - `results` GeofenceBlueprintUsageItem[]
      - `blueprint_id` string, uuid, required: UUID of the blueprint
      - `blueprint_version_number` integer, required: Blueprint version number
      - `device_count` integer, required: Number of devices using this blueprint revision

## Other responses

- `400`: Invalid geofence ID, missing tenant ID, or missing pagination parameters
- `401`: Unauthorized
- `500`: Server error

---

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