Skip to main content
POST
/
webhooks
Create a webhook
curl --request POST \
  --url https://{domain}/api/site/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "target": "https://your-target.com/some-path",
  "events": [
    "order_created",
    "order_updated"
  ],
  "secret": "your-secret"
}
'
{
  "id": "rh_24488493954",
  "target": "https://your-target.com/some-path",
  "secret": "your-secret",
  "events": [
    "order_created",
    "order_updated"
  ]
}

Authorizations

Authorization
string
header
required

Pass your API key as: Authorization: Bearer <API KEY>.

Body

application/json
target
string<uri>
required
Example:

"https://your-target.com/some-path"

events
enum<string>[]
required
Available options:
order_created,
order_updated,
product_created,
product_updated,
form_submitted,
contact_updated,
booking_created
Example:
["order_created", "order_updated"]
secret
string
Example:

"your-secret"

Response

200 - application/json

The created webhook.

id
string

Unique identifier.

Example:

"rh_24488493954"

target
string<uri>

Your destination URL to push notifications to.

Example:

"https://your-target.com/some-path"

secret
string

Use the secret to verify that events posted to your URL were sent by the website.

Example:

"your-secret"

events
enum<string>[]
Available options:
order_created,
order_updated,
product_created,
product_updated,
form_submitted,
contact_updated,
booking_created
Example:
["order_created", "order_updated"]
Last modified on June 20, 2026