Policies
Upload a PDF to a policy version (UI-only)
Changed onUploads a PDF via multipart file or base64 fileData JSON. Defaults to the latest draft if no versionId; 400 if no draft is available. UI-only — AI clients should use the presigned /pdf/upload-url + /pdf/confirm flow.
post/v1/policies/{id}/pdf
Request
- Base URLhttps://api.trycomp.ai
- AuthAPI key in header X-API-Key
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
Changes
- info
the endpoint scheme security
oauth2was removed from the API
- info
- info
the endpoint scheme security
oauth2was added to the API
- info