Download several formats as a ZIP
Render one design in several formats and fetch all files in a single archive.
You need a design: Create and export a design shows how to make one. Here its ID is in POST_ID.
1. Export the formats you want
curl "https://app.heycreo.io/api/organizations/$ORGANIZATION_ID/posts/$POST_ID/exports" \
-H "Authorization: Bearer $HEYCREO_API_KEY" \
--json '{ "sizes": ["instagram-post", "instagram-story", "linkedin-post"] }' \
| jq -r '.[].id' > export-ids.txt
The formats must be ones the design's template offers.
2. Wait until all of them are rendered
curl "https://app.heycreo.io/api/organizations/$ORGANIZATION_ID/posts/$POST_ID/exports" \
-H "Authorization: Bearer $HEYCREO_API_KEY" \
| jq '.[] | {id, templateSizeId, status}'
Start the download once every status is completed. An export that is still rendering or has failed has no file yet, and the archive leaves it out without an error.
3. Download the archive
curl "https://app.heycreo.io/api/organizations/$ORGANIZATION_ID/posts/$POST_ID/exports/archive" \
-H "Authorization: Bearer $HEYCREO_API_KEY" \
--json "{ \"exportIds\": $(jq -R . export-ids.txt | jq -s .), \"formats\": [\"png\", \"webp\"] }" \
-o summer-sale.zip
The response is the ZIP itself, not a job to wait for. It holds one folder per format. formats chooses the image formats: each picture is in the archive once per format. A video is included once as MP4, and a print export adds its PDF.
If your workspace requires approval before export (Settings → Approvals → Design export approval), the archive is refused until the design is approved.
| Field | |
|---|---|
exportIds | Required. Up to 1,000 completed exports of this design. |
formats | png, jpg, webp. |
applyAiLabel | true puts a visible AI label on images that contain AI-generated content. aiLabelPreset, aiLabelPosition, aiLabelSize and aiLabelColor set its text and look. |