Send event to subscription
curl --request POST \
--url https://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send \
--header 'API-KEY: <api-key>' \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--data '
{
"eventId": "72949438-265e-5aa7-8e6c-56af893a58eb"
}
'import requests
url = "https://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send"
payload = { "eventId": "72949438-265e-5aa7-8e6c-56af893a58eb" }
headers = {
"Api-Version": "<api-version>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Version': '<api-version>',
'API-KEY': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({eventId: '72949438-265e-5aa7-8e6c-56af893a58eb'})
};
fetch('https://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send', 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://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send",
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([
'eventId' => '72949438-265e-5aa7-8e6c-56af893a58eb'
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Api-Version: <api-version>",
"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://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send"
payload := strings.NewReader("{\n \"eventId\": \"72949438-265e-5aa7-8e6c-56af893a58eb\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("API-KEY", "<api-key>")
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://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send")
.header("Api-Version", "<api-version>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"eventId\": \"72949438-265e-5aa7-8e6c-56af893a58eb\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventId\": \"72949438-265e-5aa7-8e6c-56af893a58eb\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Event queued for delivery",
"status": "SUCCESS",
"data": {
"message": "queued for delivery — this does not guarantee immediate receipt at the endpoint",
"deliveryId": "4d2f6a11-8c73-4b90-9e21-5f0a2c8d1e44"
},
"errors": []
}{
"code": 400,
"message": "this subscription does not receive deliveries",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWHK_1107",
"message": "this subscription does not receive deliveries",
"field": null
}
]
}{
"code": 401,
"message": "Authentication failed",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1004",
"message": "Authentication failed",
"field": null
}
]
}{
"code": 403,
"message": "Access denied",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1005",
"message": "Access denied",
"field": null
}
]
}{
"code": 404,
"message": "event not found",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWHK_1200",
"message": "event not found",
"field": null
}
]
}{
"code": 409,
"message": "this event is already queued or in flight",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWHK_1103",
"message": "this event is already queued or in flight",
"field": null
}
]
}{
"code": 429,
"message": "Rate limit exceeded",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1006",
"message": "Rate limit exceeded",
"field": null
}
]
}{
"code": 502,
"message": "Upstream webhook service error",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWHK_1900",
"message": "Upstream webhook service error",
"field": null
}
]
}Send event to subscription
Manually sends an already-recorded event to this subscription — useful for a subscription that did not exist when the event first occurred.
It queues a delivery rather than sending synchronously. A 200 means queued, not received: track the returned deliveryId to find out what actually happened.
POST
/
api
/
v0
/
webhooks
/
subscriptions
/
{id}
/
send
Send event to subscription
curl --request POST \
--url https://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send \
--header 'API-KEY: <api-key>' \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--data '
{
"eventId": "72949438-265e-5aa7-8e6c-56af893a58eb"
}
'import requests
url = "https://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send"
payload = { "eventId": "72949438-265e-5aa7-8e6c-56af893a58eb" }
headers = {
"Api-Version": "<api-version>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Version': '<api-version>',
'API-KEY': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({eventId: '72949438-265e-5aa7-8e6c-56af893a58eb'})
};
fetch('https://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send', 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://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send",
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([
'eventId' => '72949438-265e-5aa7-8e6c-56af893a58eb'
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Api-Version: <api-version>",
"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://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send"
payload := strings.NewReader("{\n \"eventId\": \"72949438-265e-5aa7-8e6c-56af893a58eb\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
req.Header.Add("API-KEY", "<api-key>")
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://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send")
.header("Api-Version", "<api-version>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"eventId\": \"72949438-265e-5aa7-8e6c-56af893a58eb\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.endl.io/api/v0/webhooks/subscriptions/{id}/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventId\": \"72949438-265e-5aa7-8e6c-56af893a58eb\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Event queued for delivery",
"status": "SUCCESS",
"data": {
"message": "queued for delivery — this does not guarantee immediate receipt at the endpoint",
"deliveryId": "4d2f6a11-8c73-4b90-9e21-5f0a2c8d1e44"
},
"errors": []
}{
"code": 400,
"message": "this subscription does not receive deliveries",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWHK_1107",
"message": "this subscription does not receive deliveries",
"field": null
}
]
}{
"code": 401,
"message": "Authentication failed",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1004",
"message": "Authentication failed",
"field": null
}
]
}{
"code": 403,
"message": "Access denied",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1005",
"message": "Access denied",
"field": null
}
]
}{
"code": 404,
"message": "event not found",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWHK_1200",
"message": "event not found",
"field": null
}
]
}{
"code": 409,
"message": "this event is already queued or in flight",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWHK_1103",
"message": "this event is already queued or in flight",
"field": null
}
]
}{
"code": 429,
"message": "Rate limit exceeded",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRCORE_1006",
"message": "Rate limit exceeded",
"field": null
}
]
}{
"code": 502,
"message": "Upstream webhook service error",
"status": "ERROR",
"data": null,
"errors": [
{
"code": "ERRWHK_1900",
"message": "Upstream webhook service error",
"field": null
}
]
}Authorizations
Your partner API key. Requires the webhooks permission, or events for the PULL feed.
Headers
The API version this request targets. Required on every /api/v0/* call. Format YYYY-MM.<release>; 2026-09.1 is the latest. The version that served the request is echoed back on the response. Missing, malformed or unsupported values are rejected with 400.
Pattern:
^\d{4}-\d{2}\.\d+$Path Parameters
The subscription's UUID.
Body
application/json
The event id — the value delivered as X-WEBHOOK-EVENT-ID.
Maximum string length:
64