2.2 Setting up your second zap (webhook trigger)

Decide what to do with your newly generated creatives

2.2 Setting up and using the webhook trigger

The webhook trigger is faster than the Creatopy trigger, and it will instantly push the next action in your zap to start. If you're a techie, you get more freedom to use the payload as you wish.

This is the format of the incoming payload:

{
    id: "073edff5-5506-41e8-ba1b-14e5e100aa83", // Unique ID of the job
    status: "complete", // either complete or failed
    type: "jpg", // The type of the export (jpg, png, gif, mp4)
    creatives: [{
        id: "073edff5-5506-41e8-ba1b-14e5e100aa84", // Unique ID of the generated creative
        status: "complete",
        logs: "", // Errors in case of failure
        url: "https://creatopy-api-0d4e56b.s3.eu-central-1.amazonaws.com/creatives/.......",
        creatives: [{
            id: "073edff5-5506-41e8-ba1b-14e5e100aa85", // Unique ID of the generated creative size
            status: "complete",
            logs: "", // Errors in case of failure
            url: "https://creatopy-api-0d4e56b.s3.eu-central-1.amazonaws.com/creatives/.......",
        }]
    }]
}

We support using a single design or a design set as a template to generate new creatives.

  • In the case of a single design, you will get only the root creatives field with one or multiple creatives according to the number of slides you have in your template.

  • In the case of a design set, you will get the root creatives field with one object that also contains a creatives array of generated variants from all sizes you have in your design set.

For your second zap, choose Webhooks by Zapier and select Catch Hook, like in the image below.

Keep the Pick off a Child Key field empty and click Continue. You'll get a webhook link like the one below.

Copy and paste the webhook link into your first zap, where you set up the action to generate creatives in the field Zap Webhook URL.

Verify you filled in all the required fields in the first zap (where you set up the action to generate creatives) and run the test.

Then, return to your second zap (the webhook trigger) and run the zap to test the webhook. You must run your first zap successfully to get a result here, as you need the generated creatives.

Use the webhook trigger that catches the generated creatives to send them to your inbox, a cloud storage, or post them live.

You can further check out the Use Cases to see how to set that up.

Last updated