curl --request POST \
--url https://app.eat-now.io/api/partner/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://crm.example.com/hooks/eatnow",
"description": "CRM sync",
"events": [
"customer.created",
"customer.updated",
"customer.merged"
]
}
'import requests
url = "https://app.eat-now.io/api/partner/v1/webhook-endpoints"
payload = {
"url": "https://crm.example.com/hooks/eatnow",
"description": "CRM sync",
"events": ["customer.created", "customer.updated", "customer.merged"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://crm.example.com/hooks/eatnow',
description: 'CRM sync',
events: ['customer.created', 'customer.updated', 'customer.merged']
})
};
fetch('https://app.eat-now.io/api/partner/v1/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.eat-now.io/api/partner/v1/webhook-endpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://crm.example.com/hooks/eatnow',
'description' => 'CRM sync',
'events' => [
'customer.created',
'customer.updated',
'customer.merged'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.eat-now.io/api/partner/v1/webhook-endpoints"
payload := strings.NewReader("{\n \"url\": \"https://crm.example.com/hooks/eatnow\",\n \"description\": \"CRM sync\",\n \"events\": [\n \"customer.created\",\n \"customer.updated\",\n \"customer.merged\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.eat-now.io/api/partner/v1/webhook-endpoints")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://crm.example.com/hooks/eatnow\",\n \"description\": \"CRM sync\",\n \"events\": [\n \"customer.created\",\n \"customer.updated\",\n \"customer.merged\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eat-now.io/api/partner/v1/webhook-endpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://crm.example.com/hooks/eatnow\",\n \"description\": \"CRM sync\",\n \"events\": [\n \"customer.created\",\n \"customer.updated\",\n \"customer.merged\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "whe_123",
"url": "https://crm.example.com/hooks/eatnow",
"description": "CRM sync",
"events": [
"customer.created",
"customer.updated",
"customer.merged"
],
"enabled": true,
"api_version": "v1",
"created_at": "2026-10-07T09:00:00.000Z",
"updated_at": "2026-10-07T09:00:00.000Z",
"secret": "whsec_…"
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}Create a webhook endpoint
Subscribes an HTTPS URL to V1 events. The response carries the signing secret, only this once: store it to verify EatNow-Signature. The key must be able to read what it subscribes to: RESERVATIONS_READ for reservation.*, CUSTOMERS_READ for customer.* (403 otherwise); reservation objects are masked unless the key holds RESERVATIONS_READ_SENSITIVE, like GET /reservations/{id}. The endpoint stops receiving when the key is revoked or expires, and is deleted with it. At most 5 endpoints per key. Requires WEBHOOKS_WRITE. A key only lists and changes the endpoints it created itself.
curl --request POST \
--url https://app.eat-now.io/api/partner/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://crm.example.com/hooks/eatnow",
"description": "CRM sync",
"events": [
"customer.created",
"customer.updated",
"customer.merged"
]
}
'import requests
url = "https://app.eat-now.io/api/partner/v1/webhook-endpoints"
payload = {
"url": "https://crm.example.com/hooks/eatnow",
"description": "CRM sync",
"events": ["customer.created", "customer.updated", "customer.merged"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://crm.example.com/hooks/eatnow',
description: 'CRM sync',
events: ['customer.created', 'customer.updated', 'customer.merged']
})
};
fetch('https://app.eat-now.io/api/partner/v1/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.eat-now.io/api/partner/v1/webhook-endpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://crm.example.com/hooks/eatnow',
'description' => 'CRM sync',
'events' => [
'customer.created',
'customer.updated',
'customer.merged'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.eat-now.io/api/partner/v1/webhook-endpoints"
payload := strings.NewReader("{\n \"url\": \"https://crm.example.com/hooks/eatnow\",\n \"description\": \"CRM sync\",\n \"events\": [\n \"customer.created\",\n \"customer.updated\",\n \"customer.merged\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.eat-now.io/api/partner/v1/webhook-endpoints")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://crm.example.com/hooks/eatnow\",\n \"description\": \"CRM sync\",\n \"events\": [\n \"customer.created\",\n \"customer.updated\",\n \"customer.merged\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eat-now.io/api/partner/v1/webhook-endpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://crm.example.com/hooks/eatnow\",\n \"description\": \"CRM sync\",\n \"events\": [\n \"customer.created\",\n \"customer.updated\",\n \"customer.merged\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "whe_123",
"url": "https://crm.example.com/hooks/eatnow",
"description": "CRM sync",
"events": [
"customer.created",
"customer.updated",
"customer.merged"
],
"enabled": true,
"api_version": "v1",
"created_at": "2026-10-07T09:00:00.000Z",
"updated_at": "2026-10-07T09:00:00.000Z",
"secret": "whsec_…"
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}Authorizations
Restaurant-scoped partner API token passed as Authorization: Bearer <token>.
Body
HTTPS URL that receives the events.
20481reservation.* events need RESERVATIONS_READ on the key, customer.* events CUSTOMERS_READ.
reservation.created, reservation.updated, reservation.deleted, customer.created, customer.updated, customer.merged, customer.deleted Shown to the restaurant in its webhook settings.
1 - 100Defaults to true.
Response
Created endpoint, with its secret
Show child attributes
Show child attributes
