Skip to main content

Configure R2 delivery

  1. Open R2 in your Cloudflare account. Copy the bucket name and the 32-character hexadecimal account ID.
  2. Create an R2 credential with object read and write access restricted to the destination bucket. Copy its Access Key ID and Secret Access Key. Keep public bucket access disabled.
  3. In the 1.1 review build, open Settings → Object storage delivery and select Cloudflare R2. Enter the account ID, bucket and key pair. Add a prefix such as proofs/ if desired.
The settings API uses provider: "r2", accountId, bucket, prefix, accessKeyId and secretAccessKey. DocKiln derives the R2 endpoint from the account ID and signs with region auto. Settings reads omit the secret.

Generate a proof

Send this body to POST /v1/documents.
Follow the job status before looking for proofs/<workspace-id>/<job-id>.pdf in R2. Use the job’s download path for authenticated access or request a five-minute link. For a delivery failure, verify that the access key belongs to the same account and has permission on this bucket.