---
title: "Get zone"
method: GET
path: "/zones/{zoneId}"
tags: ["Zones"]
---

# Get zone

`GET /zones/{zoneId}`

Returns details of a specific zone by ID

## Path parameters

- `zoneId` string, required

## Query parameters

- `expand[]` union
  - 'permissions'
  - string[]

## Response `200`

A zone for organizing resources within an organization

- IamZone — A zone for organizing resources within an organization
  - `id` string, required — Unique identifier of the zone
  - `organization_id` string, required — Organization that owns this zone
  - `slug` string, required — URL-safe identifier, unique within the zone
  - `name` string, required — Human-readable name
  - `description` string, nullable — Human-readable description
  - `user_identity_provider_id` string — Provider ID configured for user login
  - `requires_invitation` boolean — Whether the zone requires an invitation for email/password registration, only applies when user_identity_provider_id is not set
  - `protocols` object, required — Protocol configuration for a zone
    - `oauth2` IamZoneOAuth2Protocol, required — OAuth 2.0 protocol configuration for a zone
      - `issuer` string, uri, required — OAuth 2.0 issuer identifier
      - `authorization_server_metadata` string, uri, required — OAuth 2.0 Authorization Server Metadata endpoint (.well-known/oauth-authorization-server)
      - `authorization_endpoint` string, uri, required — OAuth 2.0 authorization endpoint
      - `token_endpoint` string, uri, required — OAuth 2.0 token endpoint
      - `redirect_uri` string, uri, required — OAuth 2.0 redirect URI for this zone
      - `registration_endpoint` string, uri, required — OAuth 2.0 Dynamic Client Registration endpoint
      - `jwks_uri` string, uri, required — JSON Web Key Set endpoint
      - `pkce_required` boolean, required — Whether PKCE is required for authorization code flows
      - `dcr_enabled` boolean, required — Whether Dynamic Client Registration is enabled
      - `cimd` IamZoneCimd, required — Client ID Metadata Document auto-provisioning configuration
        - `enabled` boolean, required — Whether CIMD auto-provisioning is enabled for unregistered URL-based clients
        - `allowed_client_ids` string[], required — Allowlist for CIMD client_id URLs. Each entry is an exact URL, a wildcard origin with a single * replacing one subdomain label (e.g. https://*.example.com matches https://app.example.com but not https://a.b.example.com), or the literal * to allow any client. Only one * is permitted per entry.
    - `openid` IamZoneOpenIDProtocol, required — OpenID Connect protocol configuration for a zone
      - `provider_configuration` string, uri, required — OpenID Connect Provider Configuration endpoint (.well-known/openid-configuration)
      - `userinfo_endpoint` string, uri, required — OpenID Connect UserInfo endpoint
  - `encryption_key` IamEncryptionKeyAwsKmsConfig — AWS KMS configuration for zone encryption. When not specified, the default Keycard Cloud encryption key will be used.
    - `type` 'aws', required
    - `arn` string, required — AWS KMS Key ARN for encrypting the zone's data
  - `default_mcp_gateway_application_id` string — Application ID configured as the default MCP Gateway for the zone
  - `default_resource_id` string — Resource ID configured as the default resource for the zone
  - `permissions` IamPermissions — Permissions granted to the authenticated principal. Only populated when expand[]=permissions query parameter is provided. Keys are resource types, values are objects mapping action names to boolean values.
  - `owner_type` 'platform' | 'customer', required — Who owns this zone. Platform-owned zones cannot be modified via API.
  - `created_at` string, date-time, required — Entity creation timestamp
  - `updated_at` string, date-time, required — Entity update timestamp

## Other responses

- `default` — Error response

## Changes

- **2026-06-09** `7e0e4fa2e16f` — 1 info
  - added the required property `owner_type` to the response with the `200` status
- **2026-05-18** `2861899ae69e` — 1 warning, 1 info
  - removed the optional property `login_flow` from the response with the `200` status
  - added the required property `protocols/oauth2/cimd` to the response with the `200` status
- **2026-04-02** `aee6e66de0d3` — 1 info
  - added the optional property `default_resource_id` to the response with the `200` status
- **2026-03-16** `d3d69f45bfed` — 3 info
  - the endpoint scheme security `OAuth2` was added to the API
  - the endpoint scheme security `bearerAuth` was added to the API
  - the endpoint scheme security `iam_bearerAuth` was removed from the API
- **2026-03-09** `cb43483cd1b3` — 1 warning, 1 info
  - removed the optional property `directory_open_signups_enabled` from the response with the `200` status
  - added the optional property `requires_invitation` to the response with the `200` status

[Full history](https://skmtc.dev/keycardai/apis/untitled-api/changes/zones/:zoneId/get.md)

---

[API](https://skmtc.dev/keycardai/apis/untitled-api.md) · [All operations](https://skmtc.dev/keycardai/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keycardai/untitled-api/revisions/d65d51379d93/schema)
