# Policy Simulator API API

> Policy Simulator API API on Apizie: 6 endpoints (Lists operations that match the specified filter in the request. If the server doesn't support this method,…, Creates and starts a Replay using the given ReplayConfig., Lists the results of running a Replay., ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each…, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/analytics:googleapis-policysimulator/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `analytics:googleapis-policysimulator`
- Category: Analytics
- Status: byok
- Source: https://cloud.google.com/iam/docs/simulating-access
- Page: https://apizie.tech/api/analytics/googleapis-policysimulator
- OpenAPI: https://apizie.tech/api/analytics/googleapis-policysimulator/openapi.json

Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A `Replay` is a type of simulation that lets you see how your members' access to resources might change if you changed your IAM…

## Endpoints

### Lists operations that match the specified filter in the request. If the server doesn't support this method,…
`GET https://apizie.tech/v1/analytics:googleapis-policysimulator/policysimulator-projects-locations-replays-operations-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| filter | string | no | The standard list filter. |
| name | string | yes | The name of the operation's parent resource. |
| pageSize | integer | no | The standard list page size. |
| pageToken | string | no | The standard list page token. |
| returnPartialSuccess | boolean | no | When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the… |

### Creates and starts a Replay using the given ReplayConfig.
`POST https://apizie.tech/v1/analytics:googleapis-policysimulator/policysimulator-projects-locations-replays-create` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| parent | string | yes | Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location.… |
| body | object | yes | JSON request body |

### Lists the results of running a Replay.
`GET https://apizie.tech/v1/analytics:googleapis-policysimulator/policysimulator-projects-locations-replays-results-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| pageSize | integer | no | The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; values above 5000 are rounded down to… |
| pageToken | string | no | A page token, received from a previous Simulator.ListReplayResults call. Provide this token to retrieve the next page of results. When… |
| parent | string | yes | Required. The Replay whose results are listed, in the following format:… |

### ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each…
`GET https://apizie.tech/v1/analytics:googleapis-policysimulator/policysimulator-organizations-locations-org-policy-violation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| pageSize | integer | no | Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 5 items will be… |
| pageToken | string | no | Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters… |
| parent | string | yes | Required. The parent the violations are scoped to. Format: `organizations/{organization}/locations/{location}` Example:… |

### CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the proposed changes in the…
`POST https://apizie.tech/v1/analytics:googleapis-policysimulator/policysimulator-organizations-locations-org-policy-violation-2` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| orgPolicyViolationsPreviewId | string | no | Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If not provided, a random ID will be generated. |
| parent | string | yes | Required. The organization under which this OrgPolicyViolationsPreview will be created. Example:… |
| body | object | yes | JSON request body |

### ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview.
`GET https://apizie.tech/v1/analytics:googleapis-policysimulator/policysimulator-organizations-locations-org-policy-violation-3` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| pageSize | integer | no | Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 1000 items will be… |
| pageToken | string | no | Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters… |
| parent | string | yes | Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from. Format:… |

## Example
```
curl "https://apizie.tech/v1/analytics:googleapis-policysimulator/policysimulator-projects-locations-replays-operations-list" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Policy Simulator API API?
Create a free Apizie key, then send GET https://apizie.tech/v1/analytics:googleapis-policysimulator/policysimulator-projects-locations-replays-operations-list with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Policy Simulator API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Policy Simulator API itself also needs your own key from googleapis.com.

### Can AI agents use the Policy Simulator API API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key analytics:googleapis-policysimulator.

### What is the status of the Policy Simulator API API?
Needs your own provider key (bring your own key)
