Documentation

esc
    API reference · Platform / IAM

    IAM

    Teams, access policies and their attachments, the action catalogue, the member baseline, members, effective access and the simulator.

    Create policies of allow and deny statements, attach them to members or teams, and check decisions with the simulator. Owners are always allowed; a matching deny wins over everything else; admins are allowed unless denied; members are allowed by a matching allow, or for reads by the baseline. See teams and access policies, writing policies and the action catalogue.

    The IAM team object

    A named group of the organization's members.

    Fields

    • idstringrequired
    • namestringrequired

      1 to 64 characters, unique in the organization (case-insensitive).

    • descriptionstringrequired
    • member_countintegerrequired
    • policy_idsarray of stringrequired

      The policies attached to the team.

    • created_atstringrequired
    • updated_atstringrequired
    • versionintegerrequired

    The IAM team member object

    Fields

    • user_idstringrequired
    • emailstringrequired
    • namestringrequired
    • rolestringrequired

      One of owner, admin, member.

    • added_atstringrequired

    The IAM member object

    An active member of the organization.

    Fields

    • user_idstringrequired
    • emailstringrequired
    • namestringrequired
    • rolestringrequired

      One of owner, admin, member.

    • team_idsarray of stringrequired
    • policy_countintegerrequired

      Distinct policies that apply to the member, attached directly or through any of their teams.

    The IAM policy object

    A named document of statements: the organization's own, or one of Pantech's managed policies (managed: true, id pol_pantech_<name>, read-only).

    Fields

    • idstringrequired
    • namestringrequired
    • descriptionstringrequired
    • managedbooleanrequired
    • statementsarray of IamStatementrequired
      Show 5 child fields
      • sidstring or null

        Optional (null when absent), unique within the policy, 1 to 64 letters, digits, _ or -.

      • effectstringrequired

        One of allow, deny.

      • actionsarray of stringrequired

        Actions from GET /iam/actions. * is a glob over the whole action string: instances:*, *:Read, *. *:Delete matches only verbs that are exactly Delete.

        At most 50 items.

      • resourcesarray of stringrequired

        *, a resource id (vm_…, dnsz_…), or name:<glob> matched against the resource's name (* and ?, case-insensitive). An action that creates something matches * or a name: glob against the name being created.

        At most 50 items.

      • conditionsobject or null

        All present conditions must hold for the statement to apply; null for none.

        Show 2 child fields
        • source_iparray of string

          The request's client address is in one of these IPv4 or IPv6 CIDR blocks (a bare address is its /32 or /128). Null for any address.

          At most 20 items.

        • mfaboolean or null

          true: applies only when the session authenticated with MFA. false: applies only when the request lacks MFA. API keys never carry MFA, so a deny with mfa: false blocks the action for keys too. Null or omitted: either way.

    • attachment_countintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • versionintegerrequired

      Send as If-Match to change the policy only if it has not changed since.

    The IAM statement object

    Fields

    • sidstring or null

      Optional (null when absent), unique within the policy, 1 to 64 letters, digits, _ or -.

    • effectstringrequired

      One of allow, deny.

    • actionsarray of stringrequired

      Actions from GET /iam/actions. * is a glob over the whole action string: instances:*, *:Read, *. *:Delete matches only verbs that are exactly Delete.

      At most 50 items.

    • resourcesarray of stringrequired

      *, a resource id (vm_…, dnsz_…), or name:<glob> matched against the resource's name (* and ?, case-insensitive). An action that creates something matches * or a name: glob against the name being created.

      At most 50 items.

    • conditionsobject or null

      All present conditions must hold for the statement to apply; null for none.

      Show 2 child fields
      • source_iparray of string

        The request's client address is in one of these IPv4 or IPv6 CIDR blocks (a bare address is its /32 or /128). Null for any address.

        At most 20 items.

      • mfaboolean or null

        true: applies only when the session authenticated with MFA. false: applies only when the request lacks MFA. API keys never carry MFA, so a deny with mfa: false blocks the action for keys too. Null or omitted: either way.

    The IAM attachment object

    Fields

    • policy_idstringrequired
    • principal_typestringrequired

      One of member, team.

    • principal_idstringrequired

      A member's user id (usr_…) or a team id (team_…).

    • attached_atstringrequired

    The IAM action object

    One action of the closed catalogue.

    Fields

    • actionstringrequired

      <service>:<verb>.

    • servicestringrequired
    • descriptionstringrequired
    • resource_typesarray of stringrequired

      What the action is on; empty for an account-wide action such as billing:BuyCredit.

    • readbooleanrequired

      The action only reads. A read key may call it, and the read member baseline grants it (except iam:Read).

    The IAM settings object

    The organization's access setting.

    Fields

    • member_baselinestringrequired

      What a member may do with no policy: read every Read action (the default), or none.

      One of read, none.

    • versionintegerrequired

      0 until an owner first changes it.

    • updated_atstring or nullrequired

    The IAM effective access object

    Fields

    • user_idstringrequired
    • rolestringrequired

      One of owner, admin, member.

    • teamsarray of stringrequired
    • policiesarray of IamEffectivePolicyrequired
      Show 2 child fields
      • policy_idstringrequired
      • team_idstring or nullrequired

        The team that brought the policy; null when it is attached to the member directly.

    • member_baselinestringrequired

      One of read, none.

    The IAM simulation object

    Fields

    • allowedbooleanrequired
    • decisionstringrequired

      One of owner, admin, allow, baseline_read, explicit_deny, implicit_deny.

    • policy_idstring or nullrequired

      The policy whose statement decided, for allow and explicit_deny.

    • sidstring or nullrequired

      That statement's sid, when it has one.

    List actions

    Every action a statement can name, with what it is on and whether it only reads. Any member.

    GET/public/v1/iam/actions
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Response 200

    List actions.
    • dataarray of IamActionrequired
      Show 5 child fields
      • actionstringrequired

        <service>:<verb>.

      • servicestringrequired
      • descriptionstringrequired
      • resource_typesarray of stringrequired

        What the action is on; empty for an account-wide action such as billing:BuyCredit.

      • readbooleanrequired

        The action only reads. A read key may call it, and the read member baseline grants it (except iam:Read).

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    curl "https://api.pantechdynamics.com/public/v1/iam/actions" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "action": "instances:Stop",
          "service": "instances",
          "description": "description",
          "resource_types": [
            "resource-types"
          ],
          "read": true
        }
      ]
    }

    Get the access setting

    The organization's member_baseline. Owners and admins, and members with iam:Read.

    GET/public/v1/iam/settings
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Response 200

    Get the access setting.
    • member_baselinestringrequired

      What a member may do with no policy: read every Read action (the default), or none.

      One of read, none.

    • versionintegerrequired

      0 until an owner first changes it.

    • updated_atstring or nullrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    curl "https://api.pantechdynamics.com/public/v1/iam/settings" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "member_baseline": "read",
      "version": 1,
      "updated_at": "2026-10-03T09:30:00Z"
    }

    Change the access setting

    Sets member_baseline: read lets every member read everything (today's behaviour), none lets members do only what their policies allow. Owners only; owners are emailed a security notice when it changes.

    Idempotency: requires an Idempotency-Key.

    PUT/public/v1/iam/settings
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Body

    application/json
    • member_baselinestringrequired

      One of read, none.

    Response 200

    Change the access setting.
    • member_baselinestringrequired

      What a member may do with no policy: read every Read action (the default), or none.

      One of read, none.

    • versionintegerrequired

      0 until an owner first changes it.

    • updated_atstring or nullrequired

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write. INVALID_REQUEST_BODY: the body is not a single valid JSON object.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 412VERSION_CONFLICT: If-Match is not the current version.
    • 413REQUEST_TOO_LARGE: the body is larger than 256 KiB.
    • 422VALIDATION_FAILED: member_baseline is not read or none.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Body
    Idempotency
    curl -X PUT "https://api.pantechdynamics.com/public/v1/iam/settings" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "member_baseline": "read"
      }'
    Response 200
    {
      "member_baseline": "read",
      "version": 1,
      "updated_at": "2026-10-03T09:30:00Z"
    }

    List teams

    The organization's teams, oldest first. Owners and admins, and members with iam:Read.

    GET/public/v1/iam/teams
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Query parameters

    • limitinteger

      Items per page, 1 to 100. Defaults to 50.

      From 1 to 100. Defaults to 50.

    • cursorstring

      The previous page's next_cursor, to get the next page. Leave out for the first page; keep the other parameters the same.

    Response 200

    List teams.
    • dataarray of IamTeamrequired
      Show 8 child fields
      • idstringrequired
      • namestringrequired

        1 to 64 characters, unique in the organization (case-insensitive).

      • descriptionstringrequired
      • member_countintegerrequired
      • policy_idsarray of stringrequired

        The policies attached to the team.

      • created_atstringrequired
      • updated_atstringrequired
      • versionintegerrequired
    • next_cursorstring or nullrequired

      Pass as cursor for the next page; null on the last one.

    Errors

    • 400INVALID_PAGE, INVALID_CURSOR.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Query
    curl "https://api.pantechdynamics.com/public/v1/iam/teams" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "id": "team_01jd8x2v3k",
          "name": "web-1",
          "description": "description",
          "member_count": 1,
          "policy_ids": [
            "policy-ids"
          ],
          "created_at": "2026-10-03T09:30:00Z",
          "updated_at": "2026-10-03T09:30:00Z",
          "version": 1
        }
      ],
      "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
    }

    Create a team

    At most 50 teams per organization. Owners and admins. A key with a key policy cannot change IAM.

    Idempotency: requires an Idempotency-Key. A retry with the same key and request returns what the first request made, with the same status; the same key with a different request returns 409 IDEMPOTENCY_CONFLICT.

    POST/public/v1/iam/teams
    Write keyNeeds Idempotency-KeyReturns201Created

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Body

    application/json
    • namestringrequired

      1 to 64 characters, trimmed.

    • descriptionstring

      At most 255 characters.

    Response 201

    Create a team.
    • idstringrequired
    • namestringrequired

      1 to 64 characters, unique in the organization (case-insensitive).

    • descriptionstringrequired
    • member_countintegerrequired
    • policy_idsarray of stringrequired

      The policies attached to the team.

    • created_atstringrequired
    • updated_atstringrequired
    • versionintegerrequired

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write. INVALID_REQUEST_BODY: the body is not a single valid JSON object.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 409IAM_TEAM_NAME_TAKEN, IDEMPOTENCY_CONFLICT.
    • 413REQUEST_TOO_LARGE: the body is larger than 256 KiB.
    • 422VALIDATION_FAILED.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Body
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/iam/teams" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "Platform"
      }'
    Response 201
    {
      "id": "team_01jd8x2v3k",
      "name": "web-1",
      "description": "description",
      "member_count": 1,
      "policy_ids": [
        "policy-ids"
      ],
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "version": 1
    }

    Get a team

    Owners and admins, and members with iam:Read.

    GET/public/v1/iam/teams/{team_id}
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • team_idstringrequired

    Response 200

    Get a team.
    • idstringrequired
    • namestringrequired

      1 to 64 characters, unique in the organization (case-insensitive).

    • descriptionstringrequired
    • member_countintegerrequired
    • policy_idsarray of stringrequired

      The policies attached to the team.

    • created_atstringrequired
    • updated_atstringrequired
    • versionintegerrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_TEAM_NOT_FOUND.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    curl "https://api.pantechdynamics.com/public/v1/iam/teams/team_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "id": "team_01jd8x2v3k",
      "name": "web-1",
      "description": "description",
      "member_count": 1,
      "policy_ids": [
        "policy-ids"
      ],
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "version": 1
    }

    Rename a team

    Changes the name or description; fields left out keep their value. Owners and admins. A key with a key policy cannot change IAM.

    Idempotency: requires an Idempotency-Key.

    PATCH/public/v1/iam/teams/{team_id}
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • team_idstringrequired

    Body

    application/json
    • namestring

      A new name, 1 to 64 characters.

    • descriptionstring

      A new description, at most 255 characters.

    Response 200

    Rename a team.
    • idstringrequired
    • namestringrequired

      1 to 64 characters, unique in the organization (case-insensitive).

    • descriptionstringrequired
    • member_countintegerrequired
    • policy_idsarray of stringrequired

      The policies attached to the team.

    • created_atstringrequired
    • updated_atstringrequired
    • versionintegerrequired

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write. INVALID_REQUEST_BODY: the body is not a single valid JSON object.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_TEAM_NOT_FOUND.
    • 409IAM_TEAM_NAME_TAKEN.
    • 413REQUEST_TOO_LARGE: the body is larger than 256 KiB.
    • 422VALIDATION_FAILED.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Body
    Idempotency
    curl -X PATCH "https://api.pantechdynamics.com/public/v1/iam/teams/team_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{}'
    Response 200
    {
      "id": "team_01jd8x2v3k",
      "name": "web-1",
      "description": "description",
      "member_count": 1,
      "policy_ids": [
        "policy-ids"
      ],
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "version": 1
    }

    Delete a team

    Removes the team, its memberships and its policy attachments. Only owners may delete a team that contains an admin. Owners and admins. A key with a key policy cannot change IAM.

    Idempotency: requires an Idempotency-Key.

    Destructive: an AI app's key also needs the delete scope.

    DELETE/public/v1/iam/teams/{team_id}
    Write keyNeeds Idempotency-KeyReturns204No Content

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • team_idstringrequired

    Response 204

    Delete a team. No body.

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_TEAM_NOT_FOUND.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X DELETE "https://api.pantechdynamics.com/public/v1/iam/teams/team_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    HTTP/1.1 204 No Content

    List a team's members

    Owners and admins, and members with iam:Read.

    GET/public/v1/iam/teams/{team_id}/members
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • team_idstringrequired

    Query parameters

    • limitinteger

      Items per page, 1 to 100. Defaults to 50.

      From 1 to 100. Defaults to 50.

    • cursorstring

      The previous page's next_cursor, to get the next page. Leave out for the first page; keep the other parameters the same.

    Response 200

    List a team's members.
    • dataarray of IamTeamMemberrequired
      Show 5 child fields
      • user_idstringrequired
      • emailstringrequired
      • namestringrequired
      • rolestringrequired

        One of owner, admin, member.

      • added_atstringrequired
    • next_cursorstring or nullrequired

      Pass as cursor for the next page; null on the last one.

    Errors

    • 400INVALID_PAGE, INVALID_CURSOR.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_TEAM_NOT_FOUND.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Query
    curl "https://api.pantechdynamics.com/public/v1/iam/teams/team_06gk3x9tq7m2v8r4y1c5d0zp8w/members" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "user_id": "usr_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "email": "email",
          "name": "web-1",
          "role": "owner",
          "added_at": "2026-10-03T09:30:00Z"
        }
      ],
      "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
    }

    Add a member to a team

    Takes no body. Adding someone already in the team answers them unchanged. Admins may add and remove members only, never an admin or owner.

    Idempotency: requires an Idempotency-Key. Repeating it is safe: it answers the existing membership or attachment.

    PUT/public/v1/iam/teams/{team_id}/members/{user_id}
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • team_idstringrequired
    • user_idstringrequired

    Response 200

    Add a member to a team.
    • user_idstringrequired
    • emailstringrequired
    • namestringrequired
    • rolestringrequired

      One of owner, admin, member.

    • added_atstringrequired

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write. INVALID_REQUEST_BODY: the body is not a single valid JSON object.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_TEAM_NOT_FOUND, MEMBER_NOT_FOUND.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X PUT "https://api.pantechdynamics.com/public/v1/iam/teams/team_06gk3x9tq7m2v8r4y1c5d0zp8w/members/usr_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    Response 200
    {
      "user_id": "usr_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "email": "email",
      "name": "web-1",
      "role": "owner",
      "added_at": "2026-10-03T09:30:00Z"
    }

    Remove a member from a team

    Admins may remove members only.

    Idempotency: requires an Idempotency-Key.

    DELETE/public/v1/iam/teams/{team_id}/members/{user_id}
    Write keyNeeds Idempotency-KeyReturns204No Content

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • team_idstringrequired
    • user_idstringrequired

    Response 204

    Remove a member from a team. No body.

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_TEAM_NOT_FOUND, MEMBER_NOT_FOUND.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X DELETE "https://api.pantechdynamics.com/public/v1/iam/teams/team_06gk3x9tq7m2v8r4y1c5d0zp8w/members/usr_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    HTTP/1.1 204 No Content

    List members

    The organization's active members with their teams and how many policies apply to each, by when they joined. Owners and admins, and members with iam:Read.

    GET/public/v1/iam/members
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Query parameters

    • qstring

      Only members whose email or name contains this text (case-insensitive), at most 320 characters.

      At most 320 characters.

    • limitinteger

      Items per page, 1 to 100. Defaults to 50.

      From 1 to 100. Defaults to 50.

    • cursorstring

      The previous page's next_cursor, to get the next page. Leave out for the first page; keep the other parameters the same.

    Response 200

    List members.
    • dataarray of IamMemberrequired
      Show 6 child fields
      • user_idstringrequired
      • emailstringrequired
      • namestringrequired
      • rolestringrequired

        One of owner, admin, member.

      • team_idsarray of stringrequired
      • policy_countintegerrequired

        Distinct policies that apply to the member, attached directly or through any of their teams.

    • next_cursorstring or nullrequired

      Pass as cursor for the next page; null on the last one.

    Errors

    • 400INVALID_PAGE, INVALID_CURSOR, INVALID_FILTER.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Query
    curl "https://api.pantechdynamics.com/public/v1/iam/members" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "user_id": "usr_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "email": "email",
          "name": "web-1",
          "role": "owner",
          "team_ids": [
            "team-ids"
          ],
          "policy_count": 1
        }
      ],
      "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
    }

    Get a member's effective access

    The member's role, teams and every policy that applies to them, with the team that brought each. Owners and admins, and members with iam:Read. Any member may read their own.

    GET/public/v1/iam/members/{user_id}/effective-access
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • user_idstringrequired

    Response 200

    Get a member's effective access.
    • user_idstringrequired
    • rolestringrequired

      One of owner, admin, member.

    • teamsarray of stringrequired
    • policiesarray of IamEffectivePolicyrequired
      Show 2 child fields
      • policy_idstringrequired
      • team_idstring or nullrequired

        The team that brought the policy; null when it is attached to the member directly.

    • member_baselinestringrequired

      One of read, none.

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404MEMBER_NOT_FOUND.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    curl "https://api.pantechdynamics.com/public/v1/iam/members/usr_06gk3x9tq7m2v8r4y1c5d0zp8w/effective-access" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "user_id": "usr_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "role": "owner",
      "teams": [
        "teams"
      ],
      "policies": [
        {
          "policy_id": "pol_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "team_id": "team_06gk3x9tq7m2v8r4y1c5d0zp8w"
        }
      ],
      "member_baseline": "read"
    }

    Simulate an access decision

    Would this member be allowed this action on this resource? Changes nothing, so it needs only the read scope; an Idempotency-Key, if sent, is ignored. The answer may name the deciding policy. Owners and admins, and members with iam:Read.

    POST/public/v1/iam/simulate
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Body

    application/json
    • user_idstringrequired

      The member to simulate.

    • actionstringrequired
    • resourcestring

      A resource id, such as vm_01jd….

    • resource_namestring

      The resource's name, for name: patterns.

    • source_ipstring

      The client address to simulate.

    • mfaboolean

      Whether the session signed in with MFA; false when omitted.

    Response 200

    Simulate an access decision.
    • allowedbooleanrequired
    • decisionstringrequired

      One of owner, admin, allow, baseline_read, explicit_deny, implicit_deny.

    • policy_idstring or nullrequired

      The policy whose statement decided, for allow and explicit_deny.

    • sidstring or nullrequired

      That statement's sid, when it has one.

    Errors

    • 400INVALID_REQUEST_BODY: the body is not a single valid JSON object.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404MEMBER_NOT_FOUND.
    • 413REQUEST_TOO_LARGE: the body is larger than 256 KiB.
    • 422VALIDATION_FAILED: action, resource or source_ip is invalid.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Body
    curl -X POST "https://api.pantechdynamics.com/public/v1/iam/simulate" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "user_id": "usr_06gk3x9tq7m2v8r4y1c5d0zp8w",
        "action": "instances:Delete"
      }'
    Response 200
    {
      "allowed": true,
      "decision": "owner",
      "policy_id": "pol_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "sid": "sid"
    }

    List policies

    Pantech's managed policies, then the organization's, oldest first. Owners and admins, and members with iam:Read.

    GET/public/v1/iam/policies
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Query parameters

    • managedboolean

      true lists Pantech's managed policies only, false the organization's only; omit it for both.

    • limitinteger

      Items per page, 1 to 100. Defaults to 50.

      From 1 to 100. Defaults to 50.

    • cursorstring

      The previous page's next_cursor, to get the next page. Leave out for the first page; keep the other parameters the same.

    Response 200

    List policies.
    • dataarray of IamPolicyrequired
      Show 9 child fields
      • idstringrequired
      • namestringrequired
      • descriptionstringrequired
      • managedbooleanrequired
      • statementsarray of IamStatementrequired
        Show 5 child fields
        • sidstring or null

          Optional (null when absent), unique within the policy, 1 to 64 letters, digits, _ or -.

        • effectstringrequired

          One of allow, deny.

        • actionsarray of stringrequired

          Actions from GET /iam/actions. * is a glob over the whole action string: instances:*, *:Read, *. *:Delete matches only verbs that are exactly Delete.

          At most 50 items.

        • resourcesarray of stringrequired

          *, a resource id (vm_…, dnsz_…), or name:<glob> matched against the resource's name (* and ?, case-insensitive). An action that creates something matches * or a name: glob against the name being created.

          At most 50 items.

        • conditionsobject or null

          All present conditions must hold for the statement to apply; null for none.

          Show 2 child fields
          • source_iparray of string

            The request's client address is in one of these IPv4 or IPv6 CIDR blocks (a bare address is its /32 or /128). Null for any address.

            At most 20 items.

          • mfaboolean or null

            true: applies only when the session authenticated with MFA. false: applies only when the request lacks MFA. API keys never carry MFA, so a deny with mfa: false blocks the action for keys too. Null or omitted: either way.

      • attachment_countintegerrequired
      • created_atstringrequired
      • updated_atstringrequired
      • versionintegerrequired

        Send as If-Match to change the policy only if it has not changed since.

    • next_cursorstring or nullrequired

      Pass as cursor for the next page; null on the last one.

    Errors

    • 400INVALID_PAGE, INVALID_CURSOR, INVALID_FILTER.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Query
    curl "https://api.pantechdynamics.com/public/v1/iam/policies" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "id": "pol_01jd8x2v3k",
          "name": "web-1",
          "description": "description",
          "managed": true,
          "statements": [
            {
              "sid": "RestartStaging",
              "effect": "allow",
              "actions": [
                "instances:Start",
                "instances:Stop"
              ],
              "resources": [
                "name:staging-*"
              ],
              "conditions": {
                "source_ip": [
                  "<office-cidr>"
                ],
                "mfa": true
              }
            }
          ],
          "attachment_count": 1,
          "created_at": "2026-10-03T09:30:00Z",
          "updated_at": "2026-10-03T09:30:00Z",
          "version": 1
        }
      ],
      "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
    }

    Create a policy

    1 to 20 statements; at most 100 policies per organization. Owners and admins. A key with a key policy cannot change IAM.

    Idempotency: requires an Idempotency-Key. A retry with the same key and request returns what the first request made, with the same status; the same key with a different request returns 409 IDEMPOTENCY_CONFLICT.

    POST/public/v1/iam/policies
    Write keyNeeds Idempotency-KeyReturns201Created

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Body

    application/json
    • namestringrequired

      1 to 64 letters, digits, spaces, ., _ or -, starting with a letter or digit, unique in the organization. Names starting with pantech_ are reserved.

    • descriptionstring

      At most 255 characters.

    • statementsarray of IamStatementrequired

      At most 20 items.

      Show 5 child fields
      • sidstring or null

        Optional (null when absent), unique within the policy, 1 to 64 letters, digits, _ or -.

      • effectstringrequired

        One of allow, deny.

      • actionsarray of stringrequired

        Actions from GET /iam/actions. * is a glob over the whole action string: instances:*, *:Read, *. *:Delete matches only verbs that are exactly Delete.

        At most 50 items.

      • resourcesarray of stringrequired

        *, a resource id (vm_…, dnsz_…), or name:<glob> matched against the resource's name (* and ?, case-insensitive). An action that creates something matches * or a name: glob against the name being created.

        At most 50 items.

      • conditionsobject or null

        All present conditions must hold for the statement to apply; null for none.

        Show 2 child fields
        • source_iparray of string

          The request's client address is in one of these IPv4 or IPv6 CIDR blocks (a bare address is its /32 or /128). Null for any address.

          At most 20 items.

        • mfaboolean or null

          true: applies only when the session authenticated with MFA. false: applies only when the request lacks MFA. API keys never carry MFA, so a deny with mfa: false blocks the action for keys too. Null or omitted: either way.

    Response 201

    Create a policy.
    • idstringrequired
    • namestringrequired
    • descriptionstringrequired
    • managedbooleanrequired
    • statementsarray of IamStatementrequired
      Show 5 child fields
      • sidstring or null

        Optional (null when absent), unique within the policy, 1 to 64 letters, digits, _ or -.

      • effectstringrequired

        One of allow, deny.

      • actionsarray of stringrequired

        Actions from GET /iam/actions. * is a glob over the whole action string: instances:*, *:Read, *. *:Delete matches only verbs that are exactly Delete.

        At most 50 items.

      • resourcesarray of stringrequired

        *, a resource id (vm_…, dnsz_…), or name:<glob> matched against the resource's name (* and ?, case-insensitive). An action that creates something matches * or a name: glob against the name being created.

        At most 50 items.

      • conditionsobject or null

        All present conditions must hold for the statement to apply; null for none.

        Show 2 child fields
        • source_iparray of string

          The request's client address is in one of these IPv4 or IPv6 CIDR blocks (a bare address is its /32 or /128). Null for any address.

          At most 20 items.

        • mfaboolean or null

          true: applies only when the session authenticated with MFA. false: applies only when the request lacks MFA. API keys never carry MFA, so a deny with mfa: false blocks the action for keys too. Null or omitted: either way.

    • attachment_countintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • versionintegerrequired

      Send as If-Match to change the policy only if it has not changed since.

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write. INVALID_REQUEST_BODY: the body is not a single valid JSON object.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 409IAM_POLICY_NAME_TAKEN, IDEMPOTENCY_CONFLICT.
    • 413REQUEST_TOO_LARGE: the body is larger than 256 KiB.
    • 422INVALID_POLICY: errors names each bad field, such as statements[0].actions[2] or statements[1].conditions.source_ip[0]. VALIDATION_FAILED: name or description.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Body
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/iam/policies" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "staging-operators",
        "statements": [
          {
            "sid": "RestartStaging",
            "effect": "allow",
            "actions": [
              "instances:Start",
              "instances:Stop"
            ],
            "resources": [
              "name:staging-*"
            ],
            "conditions": {
              "source_ip": [
                "<office-cidr>"
              ],
              "mfa": true
            }
          }
        ]
      }'
    Response 201
    {
      "id": "pol_01jd8x2v3k",
      "name": "web-1",
      "description": "description",
      "managed": true,
      "statements": [
        {
          "sid": "RestartStaging",
          "effect": "allow",
          "actions": [
            "instances:Start",
            "instances:Stop"
          ],
          "resources": [
            "name:staging-*"
          ],
          "conditions": {
            "source_ip": [
              "<office-cidr>"
            ],
            "mfa": true
          }
        }
      ],
      "attachment_count": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "version": 1
    }

    Get a policy

    Owners and admins, and members with iam:Read.

    GET/public/v1/iam/policies/{policy_id}
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • policy_idstringrequired

      A policy id, pol_… or pol_pantech_<name>.

    Response 200

    Get a policy.
    • idstringrequired
    • namestringrequired
    • descriptionstringrequired
    • managedbooleanrequired
    • statementsarray of IamStatementrequired
      Show 5 child fields
      • sidstring or null

        Optional (null when absent), unique within the policy, 1 to 64 letters, digits, _ or -.

      • effectstringrequired

        One of allow, deny.

      • actionsarray of stringrequired

        Actions from GET /iam/actions. * is a glob over the whole action string: instances:*, *:Read, *. *:Delete matches only verbs that are exactly Delete.

        At most 50 items.

      • resourcesarray of stringrequired

        *, a resource id (vm_…, dnsz_…), or name:<glob> matched against the resource's name (* and ?, case-insensitive). An action that creates something matches * or a name: glob against the name being created.

        At most 50 items.

      • conditionsobject or null

        All present conditions must hold for the statement to apply; null for none.

        Show 2 child fields
        • source_iparray of string

          The request's client address is in one of these IPv4 or IPv6 CIDR blocks (a bare address is its /32 or /128). Null for any address.

          At most 20 items.

        • mfaboolean or null

          true: applies only when the session authenticated with MFA. false: applies only when the request lacks MFA. API keys never carry MFA, so a deny with mfa: false blocks the action for keys too. Null or omitted: either way.

    • attachment_countintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • versionintegerrequired

      Send as If-Match to change the policy only if it has not changed since.

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_POLICY_NOT_FOUND.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    curl "https://api.pantechdynamics.com/public/v1/iam/policies/pol_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "id": "pol_01jd8x2v3k",
      "name": "web-1",
      "description": "description",
      "managed": true,
      "statements": [
        {
          "sid": "RestartStaging",
          "effect": "allow",
          "actions": [
            "instances:Start",
            "instances:Stop"
          ],
          "resources": [
            "name:staging-*"
          ],
          "conditions": {
            "source_ip": [
              "<office-cidr>"
            ],
            "mfa": true
          }
        }
      ],
      "attachment_count": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "version": 1
    }

    Replace a policy

    Replaces the name, description and statements. Pantech's policies cannot be changed. Only owners may change a policy that applies to an admin. Owners are emailed when the change gives a member a write action they did not have. Owners and admins. A key with a key policy cannot change IAM.

    Idempotency: requires an Idempotency-Key.

    PUT/public/v1/iam/policies/{policy_id}
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • policy_idstringrequired

      A policy id, pol_… or pol_pantech_<name>.

    Body

    application/json
    • namestringrequired

      1 to 64 letters, digits, spaces, ., _ or -, starting with a letter or digit, unique in the organization. Names starting with pantech_ are reserved.

    • descriptionstring

      At most 255 characters.

    • statementsarray of IamStatementrequired

      At most 20 items.

      Show 5 child fields
      • sidstring or null

        Optional (null when absent), unique within the policy, 1 to 64 letters, digits, _ or -.

      • effectstringrequired

        One of allow, deny.

      • actionsarray of stringrequired

        Actions from GET /iam/actions. * is a glob over the whole action string: instances:*, *:Read, *. *:Delete matches only verbs that are exactly Delete.

        At most 50 items.

      • resourcesarray of stringrequired

        *, a resource id (vm_…, dnsz_…), or name:<glob> matched against the resource's name (* and ?, case-insensitive). An action that creates something matches * or a name: glob against the name being created.

        At most 50 items.

      • conditionsobject or null

        All present conditions must hold for the statement to apply; null for none.

        Show 2 child fields
        • source_iparray of string

          The request's client address is in one of these IPv4 or IPv6 CIDR blocks (a bare address is its /32 or /128). Null for any address.

          At most 20 items.

        • mfaboolean or null

          true: applies only when the session authenticated with MFA. false: applies only when the request lacks MFA. API keys never carry MFA, so a deny with mfa: false blocks the action for keys too. Null or omitted: either way.

    Response 200

    Replace a policy.
    • idstringrequired
    • namestringrequired
    • descriptionstringrequired
    • managedbooleanrequired
    • statementsarray of IamStatementrequired
      Show 5 child fields
      • sidstring or null

        Optional (null when absent), unique within the policy, 1 to 64 letters, digits, _ or -.

      • effectstringrequired

        One of allow, deny.

      • actionsarray of stringrequired

        Actions from GET /iam/actions. * is a glob over the whole action string: instances:*, *:Read, *. *:Delete matches only verbs that are exactly Delete.

        At most 50 items.

      • resourcesarray of stringrequired

        *, a resource id (vm_…, dnsz_…), or name:<glob> matched against the resource's name (* and ?, case-insensitive). An action that creates something matches * or a name: glob against the name being created.

        At most 50 items.

      • conditionsobject or null

        All present conditions must hold for the statement to apply; null for none.

        Show 2 child fields
        • source_iparray of string

          The request's client address is in one of these IPv4 or IPv6 CIDR blocks (a bare address is its /32 or /128). Null for any address.

          At most 20 items.

        • mfaboolean or null

          true: applies only when the session authenticated with MFA. false: applies only when the request lacks MFA. API keys never carry MFA, so a deny with mfa: false blocks the action for keys too. Null or omitted: either way.

    • attachment_countintegerrequired
    • created_atstringrequired
    • updated_atstringrequired
    • versionintegerrequired

      Send as If-Match to change the policy only if it has not changed since.

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write. INVALID_REQUEST_BODY: the body is not a single valid JSON object.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_POLICY_NOT_FOUND.
    • 409IAM_MANAGED_POLICY, IAM_POLICY_NAME_TAKEN.
    • 412VERSION_CONFLICT: If-Match is not the current version.
    • 413REQUEST_TOO_LARGE: the body is larger than 256 KiB.
    • 422INVALID_POLICY, VALIDATION_FAILED.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Body
    Idempotency
    curl -X PUT "https://api.pantechdynamics.com/public/v1/iam/policies/pol_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "staging-operators",
        "statements": [
          {
            "sid": "RestartStaging",
            "effect": "allow",
            "actions": [
              "instances:Start",
              "instances:Stop"
            ],
            "resources": [
              "name:staging-*"
            ],
            "conditions": {
              "source_ip": [
                "<office-cidr>"
              ],
              "mfa": true
            }
          }
        ]
      }'
    Response 200
    {
      "id": "pol_01jd8x2v3k",
      "name": "web-1",
      "description": "description",
      "managed": true,
      "statements": [
        {
          "sid": "RestartStaging",
          "effect": "allow",
          "actions": [
            "instances:Start",
            "instances:Stop"
          ],
          "resources": [
            "name:staging-*"
          ],
          "conditions": {
            "source_ip": [
              "<office-cidr>"
            ],
            "mfa": true
          }
        }
      ],
      "attachment_count": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "version": 1
    }

    Delete a policy

    Deletes the policy and detaches it everywhere. Pantech's policies cannot be deleted. Only owners may delete a policy that applies to an admin. Owners and admins. A key with a key policy cannot change IAM.

    Idempotency: requires an Idempotency-Key.

    Destructive: an AI app's key also needs the delete scope.

    DELETE/public/v1/iam/policies/{policy_id}
    Write keyNeeds Idempotency-KeyReturns204No Content

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • policy_idstringrequired

      A policy id, pol_… or pol_pantech_<name>.

    Response 204

    Delete a policy. No body.

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_POLICY_NOT_FOUND.
    • 409IAM_MANAGED_POLICY.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X DELETE "https://api.pantechdynamics.com/public/v1/iam/policies/pol_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    HTTP/1.1 204 No Content

    List a policy's attachments

    Owners and admins, and members with iam:Read.

    GET/public/v1/iam/policies/{policy_id}/attachments
    Read keyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    Path parameters

    • policy_idstringrequired

      A policy id, pol_… or pol_pantech_<name>.

    Response 200

    List a policy's attachments.
    • dataarray of IamAttachmentrequired
      Show 4 child fields
      • policy_idstringrequired
      • principal_typestringrequired

        One of member, team.

      • principal_idstringrequired

        A member's user id (usr_…) or a team id (team_…).

      • attached_atstringrequired

    Errors

    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the read scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_POLICY_NOT_FOUND.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    curl "https://api.pantechdynamics.com/public/v1/iam/policies/pol_06gk3x9tq7m2v8r4y1c5d0zp8w/attachments" \
      -H "Authorization: Bearer $PANTECH_API_KEY"
    Response 200
    {
      "data": [
        {
          "policy_id": "pol_06gk3x9tq7m2v8r4y1c5d0zp8w",
          "principal_type": "member",
          "principal_id": "principal-id",
          "attached_at": "2026-10-03T09:30:00Z"
        }
      ]
    }

    Attach a policy

    Attaches the policy to a member or a team: 201 with the new attachment, or 200 with the existing one when it is already attached. At most 10 policies per member and per team. Only owners may attach to an admin or a team containing an admin. Owners are emailed when it gives a member write access. Owners and admins. A key with a key policy cannot change IAM.

    Idempotency: requires an Idempotency-Key. Repeating it is safe: it answers the existing membership or attachment.

    POST/public/v1/iam/policies/{policy_id}/attachments
    Write keyNeeds Idempotency-KeyReturns200OK

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • policy_idstringrequired

      A policy id, pol_… or pol_pantech_<name>.

    Body

    application/json
    • principal_typestringrequired

      One of member, team.

    • principal_idstringrequired

      A member's user id or a team id.

    Response 200

    Already attached: the existing attachment.
    • policy_idstringrequired
    • principal_typestringrequired

      One of member, team.

    • principal_idstringrequired

      A member's user id (usr_…) or a team id (team_…).

    • attached_atstringrequired

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write. INVALID_REQUEST_BODY: the body is not a single valid JSON object.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_POLICY_NOT_FOUND, IAM_TEAM_NOT_FOUND, MEMBER_NOT_FOUND.
    • 413REQUEST_TOO_LARGE: the body is larger than 256 KiB.
    • 422VALIDATION_FAILED: principal_type.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Body
    Idempotency
    curl -X POST "https://api.pantechdynamics.com/public/v1/iam/policies/pol_06gk3x9tq7m2v8r4y1c5d0zp8w/attachments" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
        "principal_type": "member",
        "principal_id": "principal-id"
      }'
    Response 200
    {
      "policy_id": "pol_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "principal_type": "member",
      "principal_id": "principal-id",
      "attached_at": "2026-10-03T09:30:00Z"
    }

    Detach a policy

    Only owners may detach from an admin or a team containing an admin. Owners and admins. A key with a key policy cannot change IAM.

    Idempotency: requires an Idempotency-Key.

    DELETE/public/v1/iam/policies/{policy_id}/attachments/{principal_type}/{principal_id}
    Write keyNeeds Idempotency-KeyReturns204No Content

    Headers

    • Authorizationstringrequired

      Bearer and your API key: Bearer PAN_….

    • Idempotency-Keystringrequired

      A new value, such as a UUID, for each change. Resend with the same value to retry safely.

      At most 255 characters.

    Path parameters

    • policy_idstringrequired

      A policy id, pol_… or pol_pantech_<name>.

    • principal_typestringrequired

      One of member, team.

    • principal_idstringrequired

    Response 204

    Detach a policy. No body.

    Errors

    • 400IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY: send one Idempotency-Key of at most 255 characters with every write.
    • 401UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send Authorization: Bearer PAN_… with a valid key; create one in the console under Organization › API keys.
    • 403INSUFFICIENT_SCOPE: the API key lacks the write scope. Use a key with that scope. ACCESS_DENIED: the key's member lacks iam:Read; detail names the action. FORBIDDEN: the key's member is not an owner or admin (owners only for the access setting), or the key has a key policy. IAM_ADMIN_TARGET: only owners act on admins, or on teams containing an admin. IAM_TEAM_LIMIT_REACHED, IAM_POLICY_LIMIT_REACHED, IAM_ATTACHMENT_LIMIT_REACHED: 50 teams, 100 policies, 10 per member or team. AI_APPS_DISABLED: the organization has turned AI app access off for this key or client.
    • 404IAM_POLICY_NOT_FOUND, IAM_ATTACHMENT_NOT_FOUND.
    • 429RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait Retry-After seconds, then retry. For authenticated quota denials, RateLimit-Scope identifies the denying quota and RateLimit-Reset reports its remaining window in seconds.
    • 503IAM_UNAVAILABLE: teams and access policies are not available on this deployment yet. SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.

    Every code is explained in Errors.

    Authorization
    Path
    Idempotency
    curl -X DELETE "https://api.pantechdynamics.com/public/v1/iam/policies/pol_06gk3x9tq7m2v8r4y1c5d0zp8w/attachments/team/team_06gk3x9tq7m2v8r4y1c5d0zp8w" \
      -H "Authorization: Bearer $PANTECH_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)"
    HTTP/1.1 204 No Content

    Was this page helpful?

    Updated