Skip to main content

Acknowledgment Request Body

The acknowledgment request body is sent after a successful ad enhancement flow. It must only be used for ad responses that came from a successful 200 enhancement result.

Structure

{
"ad_response_id": "string",
"llm_response": "string"
}

ad_response_id

  • Type: string
  • Required: yes
  • Description: The ad_response_id returned by the successful enhancement response.

llm_response

  • Type: string
  • Required: yes
  • Description: The final response produced by your LLM after using the enhanced prompt.

Example

await fetch("https://api.adstract.ai/api/ad-injection/acknowledge/", {
method: "POST",
headers: {
"X-Adstract-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
ad_response_id: "55c59ce2-a31f-4ce4-95b3-f930fd9cd564",
llm_response: llmResponse,
}),
});

Next steps