# BigQuery Data Policy API API

> BigQuery Data Policy API API on Apizie: 10 endpoints (Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request…, List all of the data policies in the specified parent project., Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and…, Gets the data policy specified by its resource name., …) 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://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `analytics:googleapis-bigquerydatapolicy`
- Category: Analytics
- Status: byok
- Source: https://cloud.google.com/bigquery/docs/column-data-masking
- Page: https://zieapi.vercel.app/api/analytics/googleapis-bigquerydatapolicy
- OpenAPI: https://zieapi.vercel.app/api/analytics/googleapis-bigquerydatapolicy/openapi.json

Allows users to manage BigQuery data policies.

## Endpoints

### Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request…
`POST https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-add-gran` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| dataPolicy | string | yes | Required. Resource name of this data policy, in the format of… |
| body | object | yes | JSON request body |

### List all of the data policies in the specified parent project.
`GET https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| filter | string | no | Optional. Filters the data policies by policy tags that they are associated with. Currently filter only supports "policy_tag" based… |
| pageSize | integer | no | Optional. The maximum number of data policies to return. Must be a value between 1 and 1000. If not set, defaults to 50. |
| pageToken | string | no | Optional. The `nextPageToken` value returned from a previous list request, if any. If not set, defaults to an empty string. |
| parent | string | yes | Required. Resource name of the project for which to list data policies. Format is `projects/{project_number}/locations/{location_id}`. |

### Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and…
`POST https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-create` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| parent | string | yes | Required. Resource name of the project that the data policy will belong to. The format is… |
| body | object | yes | JSON request body |

### Gets the data policy specified by its resource name.
`GET https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Required. Resource name of the requested data policy. Format is `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. |

### Updates the metadata for an existing data policy. The target data policy can be specified by the resource…
`POST https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-patch` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| allowMissing | boolean | no | Optional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, update_mask is ignored. |
| name | string | yes | Identifier. Resource name of this data policy, in the format of… |
| updateMask | string | no | Optional. The update mask applies to the resource. For the `FieldMask` definition, see… |
| body | object | yes | JSON request body |

### Deletes the data policy specified by its resource name.
`POST https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-delete` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Required. Resource name of the data policy to delete. Format is `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. |

### Gets the IAM policy for the specified data policy.
`POST https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-get-iam` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| resource | string | yes | REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names)… |
| body | object | yes | JSON request body |

### Removes grantees from a data policy. The grantees will be removed from the existing grantees. If the request…
`POST https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-remove-g` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| dataPolicy | string | yes | Required. Resource name of this data policy, in the format of… |
| body | object | yes | JSON request body |

### Sets the IAM policy for the specified data policy.
`POST https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-set-iam` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| resource | string | yes | REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names)… |
| body | object | yes | JSON request body |

### Returns the caller's permission on the specified data policy resource.
`POST https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-test-iam` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| resource | string | yes | REQUIRED: The resource for which the policy detail is being requested. See [Resource… |
| body | object | yes | JSON request body |

## Example
```
curl "https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-add-gran" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the BigQuery Data Policy API API?
Create a free Apizie key, then send POST https://zieapi.vercel.app/v1/analytics:googleapis-bigquerydatapolicy/bigquerydatapolicy-projects-locations-data-policies-add-gran with the header x-api-key. Every endpoint returns { project, data, timestamp }.

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

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

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