Populate Images via API | GetAccept Help Center

Populate Images via API

Add images to your contracts and Deal Rooms from other platforms via API

August 25, 2025

Populate Images via API

This help article explains how to automatically add images to your contracts and Deal Rooms during document creation through API integration, eliminating the need to manually insert images afterward.

What is API Image Population?

API image population allows you to automatically insert images during document creation through API calls. Instead of manually opening documents to add images afterward, the images are populated directly from your systems or databases when the document is created.

This feature is particularly valuable for teams that frequently include product images, branded visuals, or other dynamic content in their sales documents.

Who Can Use This Feature?

This feature is available on Sales Trial, Professional, and Enterprise plans. You'll need:

Note: Web trials do not have access to the API.


How It Works

API image population uses merge tags and the GetAccept API to dynamically insert images:

  1. Create templates with image placeholders using merge tags
  2. Upload images using the GetAccept Upload API
  3. Set up API calls that include your uploaded image data
  4. Generate documents with images automatically populated
  5. Send documents without manual image insertion

Setting Up Image Placeholders in Templates

When building your contract templates:

  1. Insert an image element where you want dynamic content
  2. Use merge tag format for the image source: {{image_key}}
  3. Replace image_key with your chosen identifier (e.g., {{product_image}}, {{company_logo}})
  4. Save your template

You can create templates with either empty images or images already populated using merge tags.

Example Template Setup

Product Proposal for {{client_name}} Featured Product: {{product_name}} [Image placeholder with merge tag: {{product_image}}] Price: {{product_price}}

API Implementation

Step 1: Upload Your Images

Before creating documents, upload your images using the Upload API:

Endpoint: POST https://api.getaccept.com/v1/upload

You can upload images using:

Step 2: Get Custom Images from Templates

To see what image merge tags are available in your template:

Endpoint: GET https://api.getaccept.com/v1/templates/{TEMPLATE_ID}/custom-images

This returns the merge tags configured in your template that you can populate with images.

Step 3: Create Documents with Image Data

When making API calls to create documents, include your image data in the custom_images array:

json{ "template_id": "your_template_id", "merge_data": { "client_name": "Acme Corp", "product_name": "Premium Widget", "product_price": "$299" }, "custom_images": [ { "id": "V1StGXR8_Z5jdHi6B-myT", "file_id": "abc456.png" }, { "name": "My custom image", "file_id": "abc4578.png" } ] }

Best Practices

Image Requirements

Template Design

API Integration


Limitations and Considerations

Current Limitations

Technical Requirements


Troubleshooting

Images Not Appearing

Image Quality Issues

API Connection Problems


Getting Started

  1. Plan your image strategy: Identify which contracts or Deal Rooms need dynamic images
  2. Prepare your images: Gather images you want to use dynamically
  3. Upload your images: Use the Upload API to get file IDs
  4. Update your templates: Add merge tags for image placeholders
  5. Test your API calls: Start with simple examples using the custom_images format
  6. Implement in production: Roll out to your team with proper training