www/apps/cloud/app/webhooks/endpoints/page.mdx
import { Note, InlineIcon } from "docs-ui" import { EyeMini, SquareTwoStackMini, ArrowPathMini, Trash } from "@medusajs/icons"
export const metadata = {
title: Webhook Endpoints in Cloud,
}
In this guide, you'll learn how to manage the HTTP endpoints that receive webhook event deliveries for your organization.
A webhook endpoint is an HTTPS URL that receives event payloads from Medusa when certain actions occur in your organization.
Only one endpoint can be configured at a time per organization. The endpoint will receive all webhook events for the organization, regardless of which project or environment the event originated from.
To add a webhook endpoint to your organization:
You can add only one endpoint to your organization. The Create endpoint button is disabled if an endpoint already exists.
</Note>Once an endpoint is created, it appears as a card on the Endpoints page.
To update the URL of an existing endpoint:
Medusa generates a signing secret for each endpoint. You can use the secret to verify that incoming requests are from Medusa.
<Note>Learn how to verify webhook signatures in the Webhooks Reference guide.
</Note>To manage the signing secret:
Rotating the signing secret generates a new secret and invalidates the previous one. This is useful if you suspect that the secret has been compromised or if you want to rotate it periodically for security reasons.
<Note type="warning">Rotating the signing secret invalidates the previous secret immediately. Update your webhook handler to use the new secret immediately after rotating it to avoid failed deliveries.
</Note>To rotate the signing secret:
Medusa generates a new secret and the previous one is no longer valid.
To enable or disable the endpoint without deleting it, toggle the switch in the top-right corner of the endpoint card.
If an endpoint is disabled, Medusa will not send any events to it until it is re-enabled.
Deleting an endpoint is irreversible. Any in-flight event deliveries to that endpoint will fail.
</Note>To delete a webhook endpoint:
The endpoint is removed and Medusa will stop sending events to it.