<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Policy Application Programming Interface on</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/</link><description>Recent content in Policy Application Programming Interface on</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/index.xml" rel="self" type="application/rss+xml"/><item><title>Authentication and Shared Request Contracts</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/</guid><description>&lt;p>Call the Policy application programming interface (API) through your authenticated gateway.
The gateway establishes identity and trusted authorities.
Do not expose the backend directly or supply identity-forwarding headers yourself.
Policy derives audit actors from the authenticated principal.
Never send &lt;code>submittedBy&lt;/code>, &lt;code>approvedBy&lt;/code>, or an impersonated username in mutation bodies.&lt;/p>
&lt;h2 id="authentication-model">Authentication Model&lt;/h2>
&lt;p>The public API uses the stable &lt;code>/pty/policy/v1.0&lt;/code> path.
That path does not track the Policy application build version.
Use your deployment&amp;rsquo;s configured external root when it differs.
Helm uses &lt;code>apiService.rootPath&lt;/code>. Standalone deployments use &lt;code>SERVER_ROOT_PATH&lt;/code>.&lt;/p></description></item><item><title>Policy API Operation Directory</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/endpoints/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/endpoints/</guid><description>&lt;p>The Policy application programming interface (API) uses the stable
&lt;code>/pty/policy/v1.0&lt;/code> base path, independently of the application build version.
Configure &lt;code>POLICY_API&lt;/code> for your gateway through the
&lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication reference&lt;/a>.&lt;/p>
&lt;p>Paths identify policies independently of their draft cycles and saved snapshots.
Check each operation&amp;rsquo;s required capability, resource grant, and validator before calling it.
A successful lifecycle command can accept asynchronous work without completing target delivery.&lt;/p>
&lt;h2 id="choose-an-operation-family">Choose an Operation Family&lt;/h2>
&lt;p>Choose the API reference that matches the operation you need:&lt;/p></description></item><item><title>Save, Review, Approve, and Inspect Delivery</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/examples/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/examples/</guid><description>&lt;p>This application programming interface (API) example follows one Data policy.
The author saves and submits. Another authorized user reviews and approves.
An authorized auditor then inspects delivery.
Separate accounts demonstrate a handoff, not mandatory two-person enforcement.&lt;/p>
&lt;h2 id="prerequisites">Before You Begin&lt;/h2>
&lt;p>Prepare the following before running requests:&lt;/p>
&lt;ul>
&lt;li>Use Bash, curl, jq, and a writable local working directory.&lt;/li>
&lt;li>Read &lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication and authority&lt;/a>.&lt;/li>
&lt;li>Give the author &lt;code>policy:edit&lt;/code>. Creation supplies its owner grant.&lt;/li>
&lt;li>Give the reviewing account &lt;code>policy:review&lt;/code> and &lt;code>policy:approve&lt;/code> through approved mappings.&lt;/li>
&lt;li>Give the auditor &lt;code>policy:audit&lt;/code> for delivery inspection.&lt;/li>
&lt;li>Prepare working discovery, identity, and Policy Integration Manager (PIM) integrations.&lt;/li>
&lt;li>Select a supported Data classification, principal, and discovered resource.&lt;/li>
&lt;/ul>
&lt;p>Do not grant broad administrator access just to copy this example.
Use your deployment&amp;rsquo;s existing, approved authority assignments.
Do not share tokens between participants.
The selected principal receives null-read permission, not cleartext access.
Follow your organization&amp;rsquo;s review rules before running mutations.&lt;/p></description></item><item><title>Application Programming Interface Errors and Safe Recovery</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/error-handling/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/error-handling/</guid><description>&lt;p>Interpret errors within the operation&amp;rsquo;s application programming interface (API) contract.
The same status can describe different resources and corrective actions.
Interpret Hypertext Transfer Protocol (HTTP) statuses alongside the response body.
Retain the method, path, status, safe response body, and timestamp.
Keep credentials and sensitive request values out of escalation evidence.&lt;/p>
&lt;h2 id="common-http-status-codes">Common HTTP Status Codes&lt;/h2>
&lt;p>Use this table to interpret common HTTP status codes and identify a response:&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Status&lt;/th>
 &lt;th>Meaning and Response&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>304&lt;/code>&lt;/td>
 &lt;td>Reuse the cached consumer payload when its validator matches. Treat this as successful conditional retrieval.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>400&lt;/code>&lt;/td>
 &lt;td>Correct malformed parameters or the wrong validator type before repeating the request.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>401&lt;/code>&lt;/td>
 &lt;td>Authenticate through the gateway with your own valid token.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>403&lt;/code>&lt;/td>
 &lt;td>Obtain the operation&amp;rsquo;s capability or required policy grant through approved access management.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>404&lt;/code>&lt;/td>
 &lt;td>Check the operation-specific absence meaning. Do not assume every response proves a missing policy.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>409&lt;/code>&lt;/td>
 &lt;td>Read the error message. Reload the draft before editing, the operation list before delivery retry, or ownership inspection before reconciliation.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>412&lt;/code>&lt;/td>
 &lt;td>Repeat the read that supplied the &lt;code>ETag&lt;/code>. Compare the updated content before preparing a request with the new validator.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>422&lt;/code>&lt;/td>
 &lt;td>Correct schema violations or validation findings. Preserve the support reference when present.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>428&lt;/code>&lt;/td>
 &lt;td>Read the correct resource and supply its required conditional header.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>500&lt;/code>&lt;/td>
 &lt;td>Save the error and request time. Check policy detail and history to determine whether the command completed before retrying.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>502&lt;/code>&lt;/td>
 &lt;td>Send the returned deployment error and policy identifier to the Policy Integration Manager (PIM) administrator to check for partial changes.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>503&lt;/code>&lt;/td>
 &lt;td>Ask the administrator of the named integration to restore access. A failed PIM inventory request does not mean its objects are absent.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>For draft commands, a non-draft token normally produces &lt;code>400&lt;/code>.
A stale draft token normally produces &lt;code>409&lt;/code>, not uniformly &lt;code>412&lt;/code>.
Archive uses the policy token. Reconciliation uses the ownership-registry token.
Refer to &lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/#conditional-requests">conditional requests&lt;/a>.&lt;/p></description></item><item><title>Service and Schema Publication Operations</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/service_operations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/service_operations/</guid><description>&lt;p>Use the configured &lt;code>POLICY_API&lt;/code> base and protected &lt;code>POLICY_AUTH_HEADER&lt;/code> file from
&lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication&lt;/a>.
All paths below are relative to that base.
Examples read the bearer header from that file. Keep request payloads and logs free of credentials.
Consult your deployed &lt;code>/doc&lt;/code> document for complete nested schemas.
Response examples illustrate relevant fields rather than every optional property.&lt;/p>
&lt;p>These application programming interface (API) reads return direct payloads.
Most reads return &lt;code>200&lt;/code>. Readiness and liveness return empty &lt;code>204&lt;/code> responses.
Gateway access rules can still return &lt;code>401&lt;/code> or &lt;code>403&lt;/code>.
Backend health reads do not independently certify target activation or worker completion.&lt;/p></description></item><item><title>Catalog, Compilation, and Preview Operations</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/catalog_authoring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/catalog_authoring/</guid><description>&lt;p>Use the configured &lt;code>POLICY_API&lt;/code> base and protected &lt;code>POLICY_AUTH_HEADER&lt;/code> file from
&lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication&lt;/a>.
All paths below are relative to that base.
Examples read the bearer header from that file. Keep request payloads and logs free of credentials.
Consult your deployed &lt;code>/doc&lt;/code> document for complete nested schemas.
Response examples illustrate relevant fields rather than every optional property.&lt;/p>
&lt;p>These application programming interface (API) operations do not save or approve policies.
Catalog reads expose discovered vocabulary. Compilation and preview evaluate supplied intent.
Require &lt;code>policy:compile&lt;/code> for compilation and &lt;code>policy:preview&lt;/code> for native preview.
Successful operations return &lt;code>200&lt;/code>.
For commands using &lt;code>request.json&lt;/code>, prepare the complete compile body before running curl.
The &lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/examples/#save-as-the-author">worked payload construction&lt;/a>
shows how to build a bounded &lt;code>compileRequest&lt;/code> from current catalog identifiers.
For compilation or PIM preview, save that nested object&amp;rsquo;s contents as &lt;code>request.json&lt;/code>, without the outer create-policy fields.
Policy Integration Manager (PIM) supplies the native Data target.&lt;/p></description></item><item><title>Policy Queries and Draft Operations</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/drafts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/drafts/</guid><description>&lt;p>These application programming interface (API) operations inspect and save policy work.
Use &lt;code>POLICY_API&lt;/code> and the protected &lt;code>POLICY_AUTH_HEADER&lt;/code> file from
&lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication&lt;/a>.
Saved drafts, governed revisions, and protection states remain independent.
Response examples show relevant fields, not every optional property.&lt;/p>
&lt;p>Use the policy identifier in &lt;code>{policy_id}&lt;/code> paths, including draft commands.
Set &lt;code>POLICY_ID&lt;/code> to that identifier before running examples for an existing policy.
The separate &lt;code>draftPolicyId&lt;/code> identifies the stable Draft Policy, not a replacement path identifier.
The draft summary&amp;rsquo;s &lt;code>cycleNumber&lt;/code> identifies its authoring cycle.
Each save records a draft snapshot. Repeated saves do not create new proposed major revisions.
Approval establishes a governed revision. A compilation minor identifies output within that approved revision.
Neither snapshot identifiers nor revision numbers replace server-issued validators.&lt;/p></description></item><item><title>Submission, Review, Approval, and Archive Operations</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/governance/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/governance/</guid><description>&lt;p>These application programming interface (API) commands govern saved policy work.
Use the &lt;code>POLICY_API&lt;/code> base and protected &lt;code>POLICY_AUTH_HEADER&lt;/code> file from
&lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication&lt;/a>.
Every operation takes a required &lt;code>policy_id&lt;/code> path string and no query parameters.
Bodies use &lt;code>application/json&lt;/code> and reject unknown fields.&lt;/p>
&lt;p>Policy derives all actors from trusted identity.
Do not send &lt;code>submittedBy&lt;/code>, &lt;code>approvedBy&lt;/code>, or an archiver identity in a body.
Separate-user examples do not imply mandatory two-person enforcement.&lt;/p>
&lt;p>A saved snapshot records proposal content at a particular draft head.
Submission puts that head into review. It does not establish a governed revision.
Approval creates the governed revision and queues separate publication work.
Use the policy identifier in every &lt;code>{policy_id}&lt;/code> path, not &lt;code>draftPolicyId&lt;/code> or a snapshot identifier.
Set &lt;code>POLICY_ID&lt;/code> to that policy identifier.
Before each draft command, read the current draft and retain its exact &lt;code>Draft-ETag&lt;/code> as &lt;code>DRAFT_ETAG&lt;/code>.
For review decisions, use the submitted head you actually reviewed, not a pre-submission token.
For archive, retain the current policy &lt;code>ETag&lt;/code> as &lt;code>POLICY_ETAG&lt;/code> instead.&lt;/p></description></item><item><title>History and Policy Access Operations</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/history_access/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/history_access/</guid><description>&lt;p>These application programming interface (API) operations read policy history and manage owner/editor access.
Use the configured &lt;code>POLICY_API&lt;/code> and protected &lt;code>POLICY_AUTH_HEADER&lt;/code> file from
&lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication&lt;/a>.
Every operation requires the &lt;code>policy_id&lt;/code> path string.
Set &lt;code>POLICY_ID&lt;/code> to the intended policy identifier before running the examples.
None uses a general &lt;code>If-Match&lt;/code> or &lt;code>Idempotency-Key&lt;/code> contract.&lt;/p>
&lt;p>A policy grant provides owner/editor access to that policy.
It does not create command capabilities such as review, approval, or audit.
History distinguishes draft saves, approvals, background recompilation, and delivery requests.&lt;/p></description></item><item><title>Product Retrieval and Compatibility Deployment</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/delivery/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/delivery/</guid><description>&lt;p>Approval queues asynchronous governed publication.
Consumer retrieval, publication, and target activation establish different evidence.
Use the application programming interface (API) base and protected &lt;code>POLICY_AUTH_HEADER&lt;/code> file from
&lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication&lt;/a>.&lt;/p>
&lt;p>Publication makes compiled output available to its target.
Consumer receipt records retrieval. Activation means the target uses that output.
Approval alone establishes none of these completion conditions.&lt;/p>
&lt;h2 id="get-product-policiesproduct_type">GET /product-policies/{product_type}&lt;/h2>
&lt;p>Retrieve the latest published Federated Guardrails aggregate.
The current public &lt;code>product_type&lt;/code> enum accepts only &lt;code>federated-guardrails&lt;/code>.
Do not substitute &lt;code>pim&lt;/code> or &lt;code>securequery&lt;/code>.
Accept no body.
Optional &lt;code>environment&lt;/code> and &lt;code>product_id&lt;/code> query strings are reserved and currently ignored.
They do not select separate consumer output.&lt;/p></description></item><item><title>Authoring Schema Operations</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/schemas/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/schemas/</guid><description>&lt;p>Use the configured &lt;code>POLICY_API&lt;/code> base and protected &lt;code>POLICY_AUTH_HEADER&lt;/code> file from
&lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication&lt;/a>.
All paths below are relative to that base.
Examples read the bearer header from that file. Keep request payloads and logs free of credentials.
Consult your deployed &lt;code>/doc&lt;/code> document for complete nested schemas.
Response examples illustrate relevant fields rather than every optional property.&lt;/p>
&lt;p>These application programming interface (API) reads return &lt;code>200&lt;/code> with schema vocabulary.
They accept no request body and do not save or approve a policy.
Gateway access rules apply. These reads do not require a separate command capability.
Policy Integration Manager (PIM) owns the Data target vocabulary.&lt;/p></description></item><item><title>Recovery and Ownership Reconciliation</title><link>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/recovery_reconciliation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/recovery_reconciliation/</guid><description>&lt;p>These application programming interface (API) operations support authorized recovery.
They do not replace authoring, review, or target-specific protection checks.
Policy Integration Manager (PIM) ownership mappings connect reference keys to native unique identifiers (UIDs).
A saved mapping does not prove that its native resource still exists.&lt;/p>
&lt;p>Use the &lt;code>POLICY_API&lt;/code> base and protected &lt;code>POLICY_AUTH_HEADER&lt;/code> file from
&lt;a href="https://docs.protegrity.com/aiteam-edition/docs/gov_policy/policy/api/authentication/">authentication&lt;/a>.
Every path below is relative to &lt;code>POLICY_API&lt;/code>.
Set &lt;code>POLICY_ID&lt;/code> to the affected policy identifier for policy-specific requests.
For retry, obtain &lt;code>DEPLOYMENT_ID&lt;/code> from the operation-list response.
For reconciliation, copy identifiers and versions from the inspection response before constructing a decision body.&lt;/p></description></item></channel></rss>