Setup your accounts for Agentic SaaS
/checkout
.
Create a webhook for the checkout-session.completed
event using the url https://dev-api.yourdomain.com/v1/checkout
.
Create a product and price in Stripe.
Next, update your .env.dev
file with the correct values for stripe.
For more step-by-step instructions on setting up your webhooks, head over to the Setup Webhooks guide.
For more help creating a product and price, head over to the Stripe Products.
user.created
event.
The endpoint is already preconfigured in the API template as /signup-webhook
.
Create a webhook for the user.created
event using the url https://dev-api.yourdomain.com/v1/signup-webhook
.
Customize the session token by with the following metadata:
.env.dev
file in the API template with the correct values.
For more help setting up your API keys, head over to the Unkey Docs.
BASE_DOMAIN
variable in the .env.dev
file in the API template.
You will also need to make sure your domain is set to Full-strict Full-Strict mode.
Then set up your Cloudflare API token.
For more help setting up your Cloudflare API token, head over to the Cloudflare API Token.