campaigns/embed

Use this endpoint as the image URL for an email recommendation. A successful call returns HTTP 302 with the generated image URL in the Location header. Follow that URL to retrieve the image. The verified PNG response returned HTTP 200 with Content-Type: image/png.

If Clerk cannot find the embed or generate an image, the endpoint can return HTTP 200 with a JSON error body. To inspect the redirect with curl, add --include to the example request.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

You store API key.

string
required

The email of the customer to load the recommendation for.

string
required

ID of the Hosted Template to be embedded.

int32
required

Loading the n-th product in the set of recommended products. n is 0-indexed.

string
required

Unique version number of the email (ideally a random number per email or else a campaign id or date string).

string

Append this string to the redirect link URL.

string

Prepend this string to the redirect URL.

string

An attribute filter to filter the result. See API documentation on Filters for details.

Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*