[ ] Create Web Response
curl -X POST "<https://api.khain.app/api/v1/web-response>" \
-H "Authorization: Bearer YOUR_ACTIVE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"body": "<h1>Hello World!</h1>",
"name": "Example Web Response"
}'
curl -X POST "<https://api.khain.app/api/v1/web-response>" \
-H "Authorization: Bearer YOUR_ACTIVE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"body": "<h1>Hello World!</h1>",
"name": "Example Web Response",
"id" : YOUR_PAGE_ID,
}'
{{
$json.data.map(item => ${item.id})
}}
{{
$json.data.map(item => `
<div class="bg-white shadow-sm hover:shadow-md transition rounded-xl p-5 border border-gray-100">
<div class="flex flex-col space-y-2">
<div class="text-sm text-gray-500 font-medium">#${item.id}</div>
<div class="text-lg font-semibold text-gray-800">
${item.caption}
</div>
</div>
</div>
`).join('')
}}
References