Skip to main content
POST
/
api
/
v1
/
prompt-blocks
/
{name}
/
preview
Preview Prompt Block
curl --request POST \
  --url https://api.example.com/api/v1/prompt-blocks/{name}/preview

Path Parameters

ParameterTypeDescription
namestringPrompt block name

Request

{
  "agent_name": "MainAgent",
  "body": "Temporary preview body."
}
body is optional and applies to static block preview only.

Response

{
  "name": "account_guidance",
  "status": "ok",
  "body": "Temporary preview body.",
  "wrapped": "<account_guidance>\nTemporary preview body.\n</account_guidance>"
}