---
title: "A new image was generated"
method: POST
path: "newImage"
tags: ["Webhooks"]
---

# A new image was generated

`POST newImage` (webhook)

Sent to `targetUrl` for each image generated from the subscribed template.

## Payload

- GeneratedImage: A generated image, or a PDF when the format is `pdf`.
  - `id` string, required: The ID of the generated image.
  - `templateId` string: The ID of the template it was generated from.
  - `templateName` string: The name of that template.
  - `imageUrl` string, uri, required: URL of the generated image, or of the PDF when the format is `pdf`.
  - `thumbnailUrl` string, uri: Thumbnail URL, fitting a 300x300px square.
  - `retinaThumbnailUrl` string, uri: Thumbnail URL for retina displays, fitting a 600x600px square.
  - `metadata` string: The custom metadata sent with the request.
  - `width` integer: Image width in pixels.
  - `height` integer: Image height in pixels.

## Acknowledgement `200`

Any 2xx status acknowledges the notification.

---

[API](https://skmtc.dev/dynapictures/apis/dynapictures-api.md) - [All operations](https://skmtc.dev/dynapictures/apis/dynapictures-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dynapictures/apis/dynapictures-api/revisions/a9820777cfb3?raw)
