cURL
curl https://api.neuraldraft.io/v1/widgets/booking/12.js -o booking.js// No SDK call — embed the URL directly in your HTML.
// <script src="https://api.neuraldraft.io/v1/widgets/booking/12.js" defer></script>
# No SDK call — embed the URL directly in your HTML.
<script src="https://api.neuraldraft.io/v1/widgets/booking/{{ $serviceId }}.js" defer></script>
<div data-nd-booking="{{ $serviceId }}"></div>
"/* @neuraldraft booking widget v1 */\n(function(){ /* … */ })();\n"{
"type": "https://api.neuraldraft.io/errors/not_found",
"title": "Not found",
"status": 404,
"detail": "No such resource.",
"code": "not_found",
"instance": "req_2Nh4PqRsTuVw"
}Booking
Embeddable booking widget script
Returns a self-contained JavaScript bundle that renders a booking widget into a host element. Drop into any page:
<div data-nd-booking="12"></div>
<script src="https://api.neuraldraft.io/v1/widgets/booking/12.js" defer></script>
The MCP server’s setup_booking_widget tool returns the URL to this
script. Long-cached on CDN. No auth, no credits.
GET
/
widgets
/
booking
/
{service_id}
.js
cURL
curl https://api.neuraldraft.io/v1/widgets/booking/12.js -o booking.js// No SDK call — embed the URL directly in your HTML.
// <script src="https://api.neuraldraft.io/v1/widgets/booking/12.js" defer></script>
# No SDK call — embed the URL directly in your HTML.
<script src="https://api.neuraldraft.io/v1/widgets/booking/{{ $serviceId }}.js" defer></script>
<div data-nd-booking="{{ $serviceId }}"></div>
"/* @neuraldraft booking widget v1 */\n(function(){ /* … */ })();\n"{
"type": "https://api.neuraldraft.io/errors/not_found",
"title": "Not found",
"status": 404,
"detail": "No such resource.",
"code": "not_found",
"instance": "req_2Nh4PqRsTuVw"
}Path Parameters
Response
JavaScript bundle.
The response is of type string.