Endpoint
Authentication
Authenticate your requests by including your API key in thex-publishable-api-key header.
Create a placement
Creates a personalized placement for display to your users.Parameters
Unique identifier for the placement (e.g., “home-page”, “checkout_success”)
User and transaction data for personalization
Returns
The response format depends on theAccept header:
JSON Response (default)
WhenAccept: application/json or no specific HTML accept header is provided, returns a placement object.
HTML Response
WhenAccept: text/html is provided, returns an HTML document directly in the response body with Content-Type: text/html.
Unique identifier for this placement
Name of the template used for rendering
Structured data for native rendering
ISO timestamp of when the placement was rendered
