v56

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-014121451.1 MB
Policies

Confirm a policy PDF upload completed

Links an uploaded PDF to a compliance policy after the file has been PUT to a presigned S3 URL. Call this after request-policy-pdf-upload-url returned an s3Key and you successfully uploaded the file bytes to that URL. The endpoint verifies the file exists in S3 before linking it to the policy or version.

post/v1/policies/{id}/pdf/confirm

Path parameters

idstring required
Example:pol_abc123def456

Policy ID

Headers

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Request body

s3Keystring required

The exact s3Key returned by the upload-url endpoint.

versionIdstring

Optional version ID — must match the versionId passed to the upload-url endpoint. Omit if attaching at the policy level.

Example request

{
  "s3Key": "org_abc/policies/pol_xyz/1735000000-acceptable-use-v1.pdf",
  "versionId": "pv_abc123def456"
}