1
0 Comments

Just Launched: Programmatic Image Management

Hey Indie Hackers!

I'm excited to share a new feature we've just launched at Doxy that I think many of you will find valuable: programmatic image management via our API. This enhancement allows you to fully automate your document generation workflows, especially when dealing with personalized images at scale.

The Challenge:

Many of you, like me, have likely struggled with the need to inject unique images into documents programmatically. Whether it’s for electronic signatures, company logos, product images, or ID photos, managing these images through a UI can be cumbersome and time-consuming. This new feature takes us another step towards supporting fully automated integrations.

The Solution:

We've added new API endpoints that enable you to upload and manage images directly through our API. This means you can now:

  • Upload Images via API: Use the /v1/images/url, /v1/images/base64 or /v1/images/multipart endpoints to upload images programmatically. You can upload images via a URLs (in bulk), as a Binary (single), or using Base64 encoded data (single).

  • Specify Custom Slugs: Assign a unique slug to each image during upload. This slug will be used to reference the image in your documents.

  • Securely Store Images: All uploaded images are stored in secure cloud storage and encrypted at rest. Access is granted via temporary, signed URLs that expire after one hour.

  • Set Expiration Policies: Choose an expiration period for each image (1 day, 1 week, or never) to manage storage and security.

How It Works:

  1. Upload Images: Use the new API endpoints to upload your images, specifying a unique slug and expiration period.

  2. Reference Images: Include the image slugs in your API JSON payload when generating documents. Use the {{image_slug}} syntax as a placeholder in your Google Docs template, or {{img:image_slug}} for inline images.

  3. Generate Documents: Doxy will replace the placeholders with the corresponding images during document generation. Doxy will maintain aspect ratios and positioning.

This update gives you full API control over your image management and document generation process. You can now create end-to-end automated workflows without needing to use the Doxy UI for image uploads.

This enhancement was directly influenced by the needs of our users. We're committed to making Doxy the most efficient and flexible document generation tool for your business.

I'd love to hear your thoughts and answer any questions! We have a new feedback board at: https://feedback.doxy.ink/all

Check out our API documentation to get started with this new feature.

Best,

Mat Fish

posted toAvatar for product Doxy
Doxy