Create Destination
Destinations.
curl --request POST \
--url https://api.domesystems.ai/v1/webhooks/destinations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "<string>",
"name": "<string>",
"endpoint_url": "<string>",
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
],
"content_format": "<string>",
"provider_key": "<string>",
"provider_settings": {},
"provider_credentials": {}
}
'import requests
url = "https://api.domesystems.ai/v1/webhooks/destinations"
payload = {
"workspace_id": "<string>",
"name": "<string>",
"endpoint_url": "<string>",
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
],
"content_format": "<string>",
"provider_key": "<string>",
"provider_settings": {},
"provider_credentials": {}
}
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({
workspace_id: '<string>',
name: '<string>',
endpoint_url: '<string>',
headers: [{name: '<string>', source: '<string>', value: '<string>'}],
content_format: '<string>',
provider_key: '<string>',
provider_settings: {},
provider_credentials: {}
})
};
fetch('https://api.domesystems.ai/v1/webhooks/destinations', 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.domesystems.ai/v1/webhooks/destinations",
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([
'workspace_id' => '<string>',
'name' => '<string>',
'endpoint_url' => '<string>',
'headers' => [
[
'name' => '<string>',
'source' => '<string>',
'value' => '<string>'
]
],
'content_format' => '<string>',
'provider_key' => '<string>',
'provider_settings' => [
],
'provider_credentials' => [
]
]),
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://api.domesystems.ai/v1/webhooks/destinations"
payload := strings.NewReader("{\n \"workspace_id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"content_format\": \"<string>\",\n \"provider_key\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\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://api.domesystems.ai/v1/webhooks/destinations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspace_id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"content_format\": \"<string>\",\n \"provider_key\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.domesystems.ai/v1/webhooks/destinations")
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 \"workspace_id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"content_format\": \"<string>\",\n \"provider_key\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\n}"
response = http.request(request)
puts response.read_body{
"destination": {
"id": "<string>",
"workspace_id": "<string>",
"tenant_id": "<string>",
"name": "<string>",
"destination_type": "<string>",
"endpoint_url": "<string>",
"active": true,
"health_status": "<string>",
"circuit_state": "<string>",
"rate_limit_per_second": 123,
"concurrency_limit": 123,
"request_timeout_seconds": 123,
"max_body_bytes": 123,
"signing_key_id": "<string>",
"last_success_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"updated_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
],
"provider_key": "<string>",
"provider_settings": {},
"content_format": "<string>"
},
"signing_secret": "<string>",
"signing_key_id": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Custom headers sent with every delivery. A source="secret" header carries its value here on WRITE ONLY — the value is stored in Vault (never in a relational column) and is never echoed back on reads (see HeaderSpec).
Show child attributes
Show child attributes
Body shape: "object" (default when empty) or "array" (single-element JSON array wrap, for array-only intakes).
provider_key selects an off-the-shelf provider preset (see ListDestinationProviders). When set, destination_type is derived as "provider", the endpoint URL is BUILT from provider_settings (endpoint_url must be empty), custom headers are rejected (the provider authenticates via its credentials), and content_format must be "" or "object" (array is a custom-only knob). Empty ⇒ a "webhook" (Custom) destination.
provider_settings are the provider's non-secret settings (site/region/ dataset/owner_repo/…), validated against the provider's settings schema and used to build the endpoint URL. Persisted in a relational column.
Show child attributes
Show child attributes
provider_credentials are the provider's secret credentials (api_key/token/ routing_key/…). WRITE ONLY — stored in Vault, never persisted to a column or echoed on reads. Required credentials must be supplied on create.
Show child attributes
Show child attributes
Was this page helpful?
curl --request POST \
--url https://api.domesystems.ai/v1/webhooks/destinations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "<string>",
"name": "<string>",
"endpoint_url": "<string>",
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
],
"content_format": "<string>",
"provider_key": "<string>",
"provider_settings": {},
"provider_credentials": {}
}
'import requests
url = "https://api.domesystems.ai/v1/webhooks/destinations"
payload = {
"workspace_id": "<string>",
"name": "<string>",
"endpoint_url": "<string>",
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
],
"content_format": "<string>",
"provider_key": "<string>",
"provider_settings": {},
"provider_credentials": {}
}
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({
workspace_id: '<string>',
name: '<string>',
endpoint_url: '<string>',
headers: [{name: '<string>', source: '<string>', value: '<string>'}],
content_format: '<string>',
provider_key: '<string>',
provider_settings: {},
provider_credentials: {}
})
};
fetch('https://api.domesystems.ai/v1/webhooks/destinations', 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.domesystems.ai/v1/webhooks/destinations",
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([
'workspace_id' => '<string>',
'name' => '<string>',
'endpoint_url' => '<string>',
'headers' => [
[
'name' => '<string>',
'source' => '<string>',
'value' => '<string>'
]
],
'content_format' => '<string>',
'provider_key' => '<string>',
'provider_settings' => [
],
'provider_credentials' => [
]
]),
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://api.domesystems.ai/v1/webhooks/destinations"
payload := strings.NewReader("{\n \"workspace_id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"content_format\": \"<string>\",\n \"provider_key\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\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://api.domesystems.ai/v1/webhooks/destinations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspace_id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"content_format\": \"<string>\",\n \"provider_key\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.domesystems.ai/v1/webhooks/destinations")
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 \"workspace_id\": \"<string>\",\n \"name\": \"<string>\",\n \"endpoint_url\": \"<string>\",\n \"headers\": [\n {\n \"name\": \"<string>\",\n \"source\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"content_format\": \"<string>\",\n \"provider_key\": \"<string>\",\n \"provider_settings\": {},\n \"provider_credentials\": {}\n}"
response = http.request(request)
puts response.read_body{
"destination": {
"id": "<string>",
"workspace_id": "<string>",
"tenant_id": "<string>",
"name": "<string>",
"destination_type": "<string>",
"endpoint_url": "<string>",
"active": true,
"health_status": "<string>",
"circuit_state": "<string>",
"rate_limit_per_second": 123,
"concurrency_limit": 123,
"request_timeout_seconds": 123,
"max_body_bytes": 123,
"signing_key_id": "<string>",
"last_success_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"updated_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"headers": [
{
"name": "<string>",
"source": "<string>",
"value": "<string>"
}
],
"provider_key": "<string>",
"provider_settings": {},
"content_format": "<string>"
},
"signing_secret": "<string>",
"signing_key_id": "<string>"
}