Receive a signed webhook or Discord interaction
curl --request POST \
--url https://api.example.com/v1/incoming/{binding_id} \
--header 'Content-Type: application/json'import requests
url = "https://api.example.com/v1/incoming/{binding_id}"
headers = {"Content-Type": "application/json"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Content-Type': 'application/json'}};
fetch('https://api.example.com/v1/incoming/{binding_id}', 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.example.com/v1/incoming/{binding_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/incoming/{binding_id}"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v1/incoming/{binding_id}")
.header("Content-Type", "application/json")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/incoming/{binding_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
response = http.request(request)
puts response.read_body{
"run_id": "<string>",
"session_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"type": "error",
"error": {
"type": "internal_error",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "service_unavailable",
"message": "<string>"
},
"request_id": "<string>"
}Receive a signed webhook or Discord interaction
Send the original provider body bytes, up to 65,536 bytes. Provider signatures authenticate deliveries at this URL.
Standard Webhooks use webhook-id, webhook-timestamp, and webhook-signature.
GitHub uses x-hub-signature-256. The signed body supplies the repository and event.
Linear uses linear-signature and the signed body supplies the event timestamp.
Notion uses x-notion-signature after the initial verification challenge.
Discord uses x-signature-ed25519 and x-signature-timestamp.
POST
/
v1
/
incoming
/
{binding_id}
Receive a signed webhook or Discord interaction
curl --request POST \
--url https://api.example.com/v1/incoming/{binding_id} \
--header 'Content-Type: application/json'import requests
url = "https://api.example.com/v1/incoming/{binding_id}"
headers = {"Content-Type": "application/json"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Content-Type': 'application/json'}};
fetch('https://api.example.com/v1/incoming/{binding_id}', 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.example.com/v1/incoming/{binding_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/incoming/{binding_id}"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v1/incoming/{binding_id}")
.header("Content-Type", "application/json")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/incoming/{binding_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
response = http.request(request)
puts response.read_body{
"run_id": "<string>",
"session_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>"
},
"request_id": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"type": "error",
"error": {
"type": "internal_error",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "service_unavailable",
"message": "<string>"
},
"request_id": "<string>"
}Body
application/jsonapplication/octet-stream
Original delivery bytes. Native provider deliveries contain JSON. The route reads the bytes regardless of Content-Type.