> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beaconrevenue.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Entity scope

> Narrow a read to one entity inside your grant with the entity_scope parameter.

Every Data API response is scoped to your grant. `entity_scope` narrows a read to one entity inside that grant, and can never widen it.

## The `entity_scope` parameter

| Parameter | In | Type | Required | Meaning |
| - | - | - | - | - |
| `entity_scope` | query | string | No | The one entity within your grant to read |

All forty-seven collections accept `entity_scope`. The contract doesn't fix the format of its value. Today it is the ID that names one row or one customer on each collection:

| Collection | `entity_scope` is |
| - | - |
| Customers, Invoices, Invoice lines, Subscriptions, Contracts, Contract lines, Product usage, Signals, Subscription months, Customer months | A customer's `account_id` |
| Deals | A `deal_id` |
| Chart of accounts | A `coa_category_id` |
| Segments | A `segment_id` |
| Cohorts | A `cohort_id` |
| Months and quarters | A `period_key` |
| Products | A `product_id` |
| Prices | A `price_id` |
| Signal rules | A `signal_type` |
| People | A `member_id` |
| Teams | A `team_id` |
| Cash by month | A `cash_flow_id` |
| Revenue by group | A `dimension`: one of the cuts |
| Customer score history, Data problems | A customer's `account_id` |
| Deal fit | A `deal_id` |
| Customer scores by segment | A `group_type`: one of the cuts |
| Segment revenue paths | A `segment_id` |
| Leads | A `lead_key` |
| Customer revenue forecast, Lifecycle economics, Acquisition cost, Win rates | A `group_key` |
| The other module tables: Pipeline velocity, Sales forecast, Sales capacity, Marketing forecast, Price realisation, Contract coverage, Revenue forecast, Revenue variance, GTM efficiency, Data checks, Data sources, Lifecycle steps, Customer fit scorecard, Forecast confidence | A `row_key` |

## How it's checked

Your [app key](https://docs.beaconrevenue.io/app-keys.md) acts for one person, and reads what that person can see in Beacon today. Beacon checks that before it reads any row.

| You send | Result |
| - | - |
| No `entity_scope` | Rows from everything your grant reaches |
| An entity inside your grant | Rows for that entity only |
| A customer outside your grant | `403` with reason `outside_grant` |
| On Deals, a deal outside your grant | `403` with reason `outside_grant` |

A person who sees only their own or their team's customers never receives the tables that describe the whole company: Months and quarters, Segments, Cohorts, Chart of accounts, Ledger entries, Products, Prices, Signal rules, People, Teams, Cash by month, Revenue by group, and every [module table](https://docs.beaconrevenue.io/build/module-tables.md) except Customer score history, Deal fit and Data problems. Each answers `403` with `outside_grant` and `denied_at` set to `entity_scope`.

Deals, Customer score history, Deal fit and Data problems aren't among them. A person who sees only their own or their team's deals still reads Deals and Deal fit, and gets only those deals. On Customer score history and Data problems they get only their own or their team's customers; a data problem about no single customer doesn't reach them.

Beacon never widens or reduces the scope you send without telling you.

A refusal for scope carries `denied_at`, which names the part of your grant the read failed: `role_authority`, `entity_scope` or `data_class`. It doesn't say what lies beyond your access, so `what_would_make_it_available` is absent. The other refusals are listed on the [API reference](https://docs.beaconrevenue.io/api-reference.md#refusals).

What a grant states is on [Access and grants](https://docs.beaconrevenue.io/access-and-grants.md).

## Example

A request whose scope is wider than the grant, and its response. Example data: the `entity_scope` value is a placeholder.

```http theme={null}
GET /accounts?entity_scope=example-entity
```

```json theme={null}
{
  "reason": "outside_grant",
  "denied_at": "entity_scope",
  "schema_version": "PUB-2026.11.23-v0.40"
}
```

## Related

> [card] [API reference](https://docs.beaconrevenue.io/api-reference.md)
>
> The forty-seven collections and their shared rules.

> [card] [Paging](https://docs.beaconrevenue.io/api/paging.md)
>
> Read a collection page by page.

> [card] [Access and grants](https://docs.beaconrevenue.io/access-and-grants.md)
>
> What a reader grant states.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.