---
title: "Get Tenant Agent Policy"
method: GET
path: "/tenants/{id}/agent-policy"
tags: ["agents"]
---

# Get Tenant Agent Policy

`GET /tenants/{id}/agent-policy`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/tenants/{id}/agent-policy`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

The tenant's effective agent policy, defaults applied (member_agents, max_agents_per_steward, max_credential_ttl_days, default_credential_ttl_days, allowed_role_ids, require_expiry). Needs tenant_read in that tenant.

## Path parameters

- `id` string, required

## Response `200`

OK

- InternalDeliveryHttpHandlerAgentPolicyResponse
  - `data` EnforcerV3InternalDomainAgentPolicy
    - `allowed_role_ids` string[]: AllowedRoleIDs are the role ids a non-admin may give an agent. Absent from storage, it defaults to the built-in "user" and "developer" roles (resolved by the usecase, which can see roles).
    - `default_credential_ttl_days` integer
    - `max_agents_per_steward` integer
    - `max_credential_ttl_days` integer
    - `member_agents` boolean
    - `require_expiry` boolean
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

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