Skip to main content
POST
/
v1
/
policies
/
{id}
/
pdf
Upload a PDF to a policy version (UI-only)
curl --request POST \
  --url https://api.trycomp.ai/v1/policies/{id}/pdf \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form 'file=<string>' \
  --form 0.file='@example-file'

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

Multipart file upload (recommended)

file
file
required
versionId
string

Target version ID. If omitted, uploads to the latest draft version.

Response

201 - undefined