Skip to main content

Cloud Storage

PolyDoc can upload generated PDFs and screenshots directly to your cloud storage bucket. The integration is provider-agnostic: you generate a presigned PUT URL from your storage provider, include it in the API request, and PolyDoc uploads the file for you. No credentials are shared — the presigned URL grants temporary, scoped write access to a single object. You can also receive generated files directly in the API response when you omit cloudStorage.

How it works

  1. Generate a presigned PUT URL from your storage provider
  2. Pass it as cloudStorage.presignedUrl in the PolyDoc API request
  3. PolyDoc converts the document and uploads it to the URL via HTTP PUT
  4. The response returns the permanent object URL (without the query string)
{
"source": "<html>...</html>",
"cloudStorage": {
"presignedUrl": "https://my-bucket.s3.amazonaws.com/invoices/inv-001.pdf?X-Amz-..."
}
}

All integrations