Zumik
v2 · Native state

Regional policy

Set and read the project's data-residency policy. Requests that would route to a forbidden region are denied before any provider call.

A regional policy constrains where a project's requests may execute. When a resolved region is not on the allow-list, inference is denied with region_not_allowed (403) before any provider call. A policy with no concrete allow-list (e.g. global) imposes no restriction. Policy ids are prefixed rgn_. See the regional policy guide and GDPR and CCPA.

All requests require a bearer API key. See authentication.

Set the policy

POST /v2/regional-policy

Installs (or replaces) the project's regional policy.

region_policystringrequired

The policy shorthand, e.g. us_only, eu_only, or global. Combined with allowed_regions to form the effective allow-list.

allowed_regionsarray

Explicit regions to allow, e.g. ["us", "eu"]. Defaults to an empty list.

data_boundarystringdefault: project

The data-boundary scope the policy enforces.

curl https://api.zumik.ai/v2/regional-policy \
  -H "Authorization: Bearer $ZUMIK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "region_policy": "eu_only",
    "allowed_regions": ["eu"],
    "data_boundary": "project"
  }'
{
  "id": "rgn_01jy7npq89s1t2u3v4w5x6y7z0",
  "object": "regional_policy",
  "project_id": "prj_01jy7n0a4c8m2t6v9q3wrxk7bd",
  "region_policy": "eu_only",
  "allowed_regions": ["eu"],
  "data_boundary": "project",
  "updated_at": "2026-06-15T16:36:02Z"
}
idstring

Opaque policy id, prefixed rgn_.

objectstring

Always regional_policy.

project_idstring

The owning project.

region_policystring

The policy shorthand.

allowed_regionsarray

The explicit allow-list.

data_boundarystring

The enforced data boundary.

updated_atstring

RFC 3339 update timestamp.

Read the policy

GET /v2/regional-policy

curl https://api.zumik.ai/v2/regional-policy \
  -H "Authorization: Bearer $ZUMIK_API_KEY"

Returns the policy object, or 404 when no policy is configured.

Errors

StatusCodeWhen
401invalid_api_keyMissing or invalid API key.
404invalid_request_errorNo regional policy is configured for this project.

A denied generation returns 403 region_not_allowed. See the full table on errors.

On this page