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

# Set up governance via the Stigg app

This page covers the catalog setup you make as the vendor in the Stigg app. To automate the same setup, use the [SDK](https://docs.stigg.io/documentation/governance/setting-up/sdk.md) or the [REST API](https://docs.stigg.io/documentation/governance/setting-up/rest-api.md).

**Prerequisites:** a metered feature in a plan the customer is subscribed to, or a credit currency the customer has credits in. A feature check for a customer with no active subscription is denied with `NoActiveSubscription`.

## Define entity types

**1. Open entity types**

In the Stigg app, go to **Catalog → Entities**. The list shows every entity type in the environment, with its description, attribution keys, and when it was last updated.

![Catalog → Entities: entity types list](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-entity-types-list.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=2515e8a40a1ca6b059595d07a3dd80c4)

Catalog → Entities

**2. Start a new entity type**

Click **+ New entity type** to open the creation drawer.

![New entity type, empty](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-entity-type-new-empty.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=2ec9196a49e264fd0d2858a4fe964b17)

New entity type drawer

**3. Fill in the details**

* **Display name**: a readable label, such as `Department`. Stigg generates the entity type ID from it, and you can edit the ID.
* **Attribution keys**: the dimension keys your usage events carry to identify instances of this type, such as `departmentId`. Type a key and press Enter to add it. You can add several.

![New entity type, filling in](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-entity-type-new-fill.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=7b8c3535b300cead78963cc8e45044d9)

Filling in name and attribution key

![New entity type, ready to create](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-entity-type-new-ready.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=1e61bf0ee0a76672c00add5d81268d4c)

Attribution key added and ready to create

**4. Create the entity type**

Create the entity type, and it appears in the list.

![Entity type created](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-entity-type-created.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=1f1916bda62d5dba30d8cf1061e8dfc5)

Newly created entity type with edit option

To change an entity type later, hover its row, click the **⋮** menu, and choose **Edit**.

![Edit entity type](https://mintcdn.com/stigg/COE_sVSzpgjVvKNz/images/docs/governance-entity-type-edit.png?fit=max\&auto=format\&n=COE_sVSzpgjVvKNz\&q=85\&s=de10fa3c1700231af42947333504b666)

Edit entity type drawer

## Add an entity to a customer

Entity types are only templates. A customer's Governance tab stays empty until you add entities to that customer.

**1. Open the customer**

Go to **Management → Customers** and open the customer record.

![Management → Customers: customers list](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-customer-accounts-list.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=3a4fe19e8eb111680bffcac893e0d790)

Management → Customers

**2. Open the Add entity drawer**

Click the **Governance** tab, then click **+ Add entity**.

![Add entity, empty](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-customer-add-entity-empty.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=f4ad4a396b45512e815b70e2982e40ef)

Add entity drawer, empty

**3. Set the name and type**

* **Display name** *(optional)*: a readable label, such as `Engineering`. Stigg generates the entity ID used in API calls from it.
* **Entity type**: one of the entity types defined for this environment.

![Add entity, entity type dropdown](https://mintcdn.com/stigg/COE_sVSzpgjVvKNz/images/docs/governance-customer-add-entity-type.png?fit=max\&auto=format\&n=COE_sVSzpgjVvKNz\&q=85\&s=32dccfefd4802b88421452ae7ac000cd)

Selecting an entity type

**4. Choose a parent (optional)**

Select a **Parent entity** to place this entity in the hierarchy, such as nesting a user under a team.

![Add entity, parent selected](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-customer-add-entity-parent.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=68aad00c5404f238fd436c0ed880505d)

Selecting a parent entity

An entity's place in the [hierarchy](https://docs.stigg.io/documentation/governance/core-concepts.md#hierarchy) is set through its entity entitlements. If the entity has none yet, choosing a parent creates an unlimited one (`usageLimit: null`, cadence `P1M`) to place it. Set its limit afterwards by [editing the entitlement inline](#edit-an-entitlement-value-inline).

New entities appear in the hierarchy, with all entitlement columns.

![Full governance hierarchy](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-customer-hierarchy-full.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=978ea1428b2dd1ece59bb7d411ea574d)

Full governance hierarchy with all entities and entitlement columns

## View and manage entities for a customer

Go to **Management → Customers**, open the customer, and click the **Governance** tab. The entity hierarchy appears on the left, with each entity's type in the **Type** column. Each entitlement column shows current usage against the limit, broken out by scope: node-wide, and per model or other dimension.

![Customer Governance tab overview](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-customer-tab-overview.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=040ea476057a04e25dc689f1512aac34)

Customer Governance tab, entity hierarchy with usage

## Sort and prioritize entities

Use the **Order by** control, the sliders icon next to the type filter, to rank entities by consumption.

* **Usage** ranks by absolute consumption, so the heaviest consumers appear first.
* **Utilization** ranks by percentage of limit used, so entities closest to being blocked appear first.

![Sort order panel](https://mintcdn.com/stigg/COE_sVSzpgjVvKNz/images/docs/governance-customer-sort-order.png?fit=max\&auto=format\&n=COE_sVSzpgjVvKNz\&q=85\&s=061adac9f1420b390f3c26a23034fb9a)

Order by, Usage vs. Utilization

Sort by **Utilization** to spot entities about to hit their limit, while there's still time to raise the budget.

## Edit an entitlement value inline

**1. Click the cell**

In the Governance tab, click the entitlement cell you want to change.

**2. Enter the new limit**

Type the new limit value, then click the checkmark to save it. If the entitlement is unlimited, click the **∞** toggle first to switch to a numeric limit.

![Inline edit entitlement](https://mintcdn.com/stigg/wGyPBCEd3PrOqb_3/images/docs/governance-customer-inline-edit.png?fit=max\&auto=format\&n=wGyPBCEd3PrOqb_3\&q=85\&s=24b9e4e532c80f4ce43f553829c17e9d)

Inline editing an entitlement value

## What's next

> [card] [Check and ingest](https://docs.stigg.io/documentation/governance/check-and-ingest.md)
>
> Gate access before consumption and record usage after

> [card] [Query the governance tree](https://docs.stigg.io/documentation/governance/query.md)
>
> Fetch usage and budget data for dashboards and admin UIs


## Related topics

- [Set up governance via the SDK](https://docs.stigg.io/documentation/governance/setting-up/sdk.md)
- [Set up governance via the REST API](https://docs.stigg.io/documentation/governance/setting-up/rest-api.md)
- [Set up the integration](https://docs.stigg.io/documentation/native-integrations/crm/salesforce/salesforce-setup.md)
- [Set budgets for AI agents](https://docs.stigg.io/guides/ai-agents/set-budgets-for-ai-agents.md)
- [How and why Stigg's approach works](https://docs.stigg.io/documentation/introduction/how-stigg-solves-it.md)


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