Generated Image Webhook

Webhook in Case of Image Generation

Explanation

To receive the generated image URL (after_src), configure a webhook endpoint in the API-access section of your dashboard. Then, submit an order. Upon completion, you'll receive an order_id and an estimated time of arrival (ETA) in the response. Once ready, we'll send a request to your designated endpoint, including the after_src parameter, as shown below:

Request Body

{
    "order_id":string,
    "image":{
        "id":string,
        "before_src":string,
        "after_src":string,
        "regenerated":boolean,
        "style": string,
        "color":string,
        "space":string,
        "sky_style":string,
        "shadow_removal":boolean,
        "material":string,
        "created_at":date-time in string format
    },
    "service_name":string,
    "user_id":string 
}

Last updated