Skip to main content
POST
/
v1
/
policies
/
{id}
/
pdf
/
confirm
Confirm a policy PDF upload completed
curl --request POST \
  --url https://api.trycomp.ai/v1/policies/{id}/pdf/confirm \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "s3Key": "org_abc/policies/pol_xyz/1735000000-acceptable-use-v1.pdf"
}
'

Documentation Index

Fetch the complete documentation index at: https://www.trycomp.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

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

Path Parameters

id
string
required

Policy ID

Example:

"pol_abc123def456"

Body

application/json
s3Key
string
required

The exact s3Key returned by the upload-url endpoint.

Example:

"org_abc/policies/pol_xyz/1735000000-acceptable-use-v1.pdf"

versionId
string

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

Example:

"pv_abc123def456"

Response

201 - undefined