# Preview the engine's effective policy for a principal (/docs/reference/management/getEffectivePolicy)

> For AI agents, the [documentation index](https://bitrouter-docs-staging.up.railway.app/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

`GET /v1/namespaces/{nsid}/policies/effective`

Returns the engine's combined view (budgets, rate\_limits, guardrail) without making a real inference request. The queried principal must belong to the caller's account.

*Requires the `policy:read` scope.*

## Authentication

header parameter `x-api-key` or `Authorization: Bearer <token>`.

Base URL: `https://api.bitrouter.ai`

## Parameters

* `nsid` (path, required): Id of the target namespace. Must be owned by the caller (or equal a namespace-baked credential's own namespace), else 404.
* `principal_type` (query): One of `namespace`, `api_key`, `oauth_token`, `oauth_client`.
* `principal_id` (query): Id of the principal. Must belong to the caller's account or 404.

## Responses

* `200` Successful response. (application/json)
* `401` Credential missing or did not verify. (application/json)
* `403` Credential is valid but lacks the required scope. (application/json)
* `404` Resource not found (or owned by a different account). (application/json)

[Full OpenAPI schema](https://bitrouter-docs-staging.up.railway.app/openapi.json)