Outside services, such as payment providers, automation tools like Zapier, and scheduling services, can call your Vibe project to send it data or start a task. For example, a payment provider can tell your project that a booking was paid, so the project marks it as confirmed. This article answers common questions about setting this up. For how Vibe protects your project, see Duda Vibe Security Overview.
Looking for webhooks that Duda sends when something changes on your sites? See Webhooks in the Duda developer docs.
Note
Outside calls work only in projects on version 2.0 of Vibe.
Vibe projects can't run tasks on a schedule by themselves. To run a task at set times, such as syncing data every night or sending a daily summary, ask Copilot to create an endpoint that runs the task. Then set up an outside scheduling service, such as Zapier or a cron service, to call the endpoint at those times. See How Do I Let an Outside Service Call My Project? in this article.
An outside service calls your project through an endpoint: an address on your published project that runs a task when it's called, such as saving an order or updating a booking.
To create an endpoint:
-
In the Vibe workspace for your project, describe in the Copilot chat what the endpoint should do and which service calls it. For example: Create a public API endpoint that receives payment updates from my payment provider and marks the matching booking as confirmed. Only accept calls that include a secret key.
-
When Copilot asks for a secret key, enter it and click Submit. If the outside service gives you a key or signing secret, paste that. Otherwise, make up a long, hard-to-guess value and keep a copy, since you'll add it to the outside service and can't view it again later.
-
Publish your project.
-
In the outside service, enter the endpoint address from Copilot's reply, along with your secret key.
Note
Endpoint addresses use your project's published domain followed by /v/api/public/, for example, https://www.example.com/v/api/public/orders. Outside services can't call the preview link, and they always reach the published version of your project, so publish again after you change an endpoint.
Anyone who knows an endpoint's address can call it, so ask Copilot to check each call before acting on it:
-
Secret key: the call must include your secret key, and calls without it are rejected. Use this for scheduling services and other calls you set up yourself.
-
Signature check: many webhook providers, such as payment providers, sign each call with a signing secret. Ask Copilot to check the signature on every call.
Secret keys are saved on the Environment Variables page (see Built-In Project Features in Vibe). They're encrypted, aren't added to your project's code, and can't be viewed after you save them, only replaced.
-
Unauthorized (401): the call is missing the secret key, or the key doesn't match. Check the key in the outside service. If you no longer have it, replace it on the Environment Variables page, then update the outside service.
-
Other errors, such as 403 or 404: the call isn't reaching an endpoint. Check that:
-
The project is published.
-
The address uses your project's published domain, not the preview link.
-
The address includes
/v/api/public/. Your project's pages and other addresses don't accept calls from outside services, and Vibe can't allow a service to call them. -
The project is on version 2.0 of Vibe.
-
If calls still fail, describe the error to Copilot, for example: Calls from my payment provider to the orders endpoint get an error. Can you check why?