Update Webhook Config
curl --request PUT \
--url https://api.decodahealth.com/tenant/webhook-config \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"webhookUrl": "<string>",
"webhookEnabled": false,
"webhookSubscriptions": []
}
'import requests
url = "https://api.decodahealth.com/tenant/webhook-config"
payload = {
"webhookUrl": "<string>",
"webhookEnabled": False,
"webhookSubscriptions": []
}
headers = {
"TENANT": "<tenant>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {TENANT: '<tenant>', 'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({webhookUrl: '<string>', webhookEnabled: false, webhookSubscriptions: []})
};
fetch('https://api.decodahealth.com/tenant/webhook-config', 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.decodahealth.com/tenant/webhook-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'webhookUrl' => '<string>',
'webhookEnabled' => false,
'webhookSubscriptions' => [
]
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Content-Type: application/json",
"TENANT: <tenant>"
],
]);
$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.decodahealth.com/tenant/webhook-config"
payload := strings.NewReader("{\n \"webhookUrl\": \"<string>\",\n \"webhookEnabled\": false,\n \"webhookSubscriptions\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("TENANT", "<tenant>")
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.put("https://api.decodahealth.com/tenant/webhook-config")
.header("TENANT", "<tenant>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"webhookUrl\": \"<string>\",\n \"webhookEnabled\": false,\n \"webhookSubscriptions\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decodahealth.com/tenant/webhook-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["TENANT"] = '<tenant>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"webhookUrl\": \"<string>\",\n \"webhookEnabled\": false,\n \"webhookSubscriptions\": []\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"subDomain": "<string>",
"providerDeactivatedPages": [
"<string>"
],
"patientDeactivatedPages": [
"<string>"
],
"enabledModules": [
"TEXTING"
],
"homePage": "<string>",
"passFeeToPatient": true,
"paymentProcessor": "<string>",
"activatedChargeMethods": [
"<string>"
],
"phoneNumber": "<string>",
"logoUrl": "<string>",
"successfulPaymentText": "<string>",
"campaign": "<string>",
"enterpriseTenant": "<string>",
"manualInvoiceText": "<string>",
"sendReceiptText": "<string>",
"smsProvider": "SIGNALWIRE",
"clinicType": "DEFAULT",
"practiceTypeCode": 123,
"slogan": "<string>",
"replyToEmail": "<string>",
"ccEmail": "<string>",
"defaultTimezone": "<string>",
"hidePatientPaymentPlans": false,
"coloredMail": false,
"requiredPatientFields": [],
"enabledCommunicationMethods": [],
"enabledInvoiceMethods": [
"EMAIL",
"SMS",
"CHARGE_CARD"
],
"maxInvoicesPerDay": 100,
"invoicingStartTime": 9,
"invoicingEndTime": 17,
"invoicingOnWeekends": false,
"invoicingExcludesHolidays": false,
"maxInvoicesPerMinute": 10,
"autoRespondToSms": false,
"generateResponseOnSms": false,
"billAutomatically": false,
"selfSchedulingRedirectUrl": "<string>",
"allowMultipleBookingsForDifferentAppointments": false,
"allowMultipleSelfScheduleAppointments": false,
"daysUntilPatientBecomesNew": 123,
"authTimeoutMs": 123,
"introductoryText": "<string>",
"optOutMessage": "<string>",
"helpMessage": "<string>",
"apiKey": "<string>",
"gcalEmail": "<string>",
"gcalToken": "<string>",
"gcalRefreshToken": "<string>",
"auditSmsResponse": false,
"itemSortType": "USAGE",
"reservationCancellationSmsTemplate": "<string>",
"automaticallySendReceipts": true,
"defaultReceiptCommunicationMethod": "SMS",
"receiptLogoUrl": "<string>",
"duplicatePatientFields": [
"first_name",
"last_name",
"phone_number"
],
"googleTagManagerId": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Tenant
Update Webhook Config
Update webhook configuration for the tenant.
PUT
/
tenant
/
webhook-config
Update Webhook Config
curl --request PUT \
--url https://api.decodahealth.com/tenant/webhook-config \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"webhookUrl": "<string>",
"webhookEnabled": false,
"webhookSubscriptions": []
}
'import requests
url = "https://api.decodahealth.com/tenant/webhook-config"
payload = {
"webhookUrl": "<string>",
"webhookEnabled": False,
"webhookSubscriptions": []
}
headers = {
"TENANT": "<tenant>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {TENANT: '<tenant>', 'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({webhookUrl: '<string>', webhookEnabled: false, webhookSubscriptions: []})
};
fetch('https://api.decodahealth.com/tenant/webhook-config', 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.decodahealth.com/tenant/webhook-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'webhookUrl' => '<string>',
'webhookEnabled' => false,
'webhookSubscriptions' => [
]
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Content-Type: application/json",
"TENANT: <tenant>"
],
]);
$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.decodahealth.com/tenant/webhook-config"
payload := strings.NewReader("{\n \"webhookUrl\": \"<string>\",\n \"webhookEnabled\": false,\n \"webhookSubscriptions\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("TENANT", "<tenant>")
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.put("https://api.decodahealth.com/tenant/webhook-config")
.header("TENANT", "<tenant>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"webhookUrl\": \"<string>\",\n \"webhookEnabled\": false,\n \"webhookSubscriptions\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decodahealth.com/tenant/webhook-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["TENANT"] = '<tenant>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"webhookUrl\": \"<string>\",\n \"webhookEnabled\": false,\n \"webhookSubscriptions\": []\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"subDomain": "<string>",
"providerDeactivatedPages": [
"<string>"
],
"patientDeactivatedPages": [
"<string>"
],
"enabledModules": [
"TEXTING"
],
"homePage": "<string>",
"passFeeToPatient": true,
"paymentProcessor": "<string>",
"activatedChargeMethods": [
"<string>"
],
"phoneNumber": "<string>",
"logoUrl": "<string>",
"successfulPaymentText": "<string>",
"campaign": "<string>",
"enterpriseTenant": "<string>",
"manualInvoiceText": "<string>",
"sendReceiptText": "<string>",
"smsProvider": "SIGNALWIRE",
"clinicType": "DEFAULT",
"practiceTypeCode": 123,
"slogan": "<string>",
"replyToEmail": "<string>",
"ccEmail": "<string>",
"defaultTimezone": "<string>",
"hidePatientPaymentPlans": false,
"coloredMail": false,
"requiredPatientFields": [],
"enabledCommunicationMethods": [],
"enabledInvoiceMethods": [
"EMAIL",
"SMS",
"CHARGE_CARD"
],
"maxInvoicesPerDay": 100,
"invoicingStartTime": 9,
"invoicingEndTime": 17,
"invoicingOnWeekends": false,
"invoicingExcludesHolidays": false,
"maxInvoicesPerMinute": 10,
"autoRespondToSms": false,
"generateResponseOnSms": false,
"billAutomatically": false,
"selfSchedulingRedirectUrl": "<string>",
"allowMultipleBookingsForDifferentAppointments": false,
"allowMultipleSelfScheduleAppointments": false,
"daysUntilPatientBecomesNew": 123,
"authTimeoutMs": 123,
"introductoryText": "<string>",
"optOutMessage": "<string>",
"helpMessage": "<string>",
"apiKey": "<string>",
"gcalEmail": "<string>",
"gcalToken": "<string>",
"gcalRefreshToken": "<string>",
"auditSmsResponse": false,
"itemSortType": "USAGE",
"reservationCancellationSmsTemplate": "<string>",
"automaticallySendReceipts": true,
"defaultReceiptCommunicationMethod": "SMS",
"receiptLogoUrl": "<string>",
"duplicatePatientFields": [
"first_name",
"last_name",
"phone_number"
],
"googleTagManagerId": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
The tenant you are making this request on behalf of
Your api key
Body
application/json
Response
Successful Response
The configuration for each of the clients of Decoda.
Available options:
TEXTING, CALLING, PAYMENTS, SCRIBE, SCHEDULING, FORMS, INVENTORY, LOCATIONS, CALENDAR_PATIENT_STATUS, SPAKINECT, SCRIBE_MEDICAL_CODES Available options:
SIGNALWIRE, SENDO Available options:
DEFAULT, WEIGHT_LOSS, MED_SPA Available options:
SMS, MAIL, CALL, COLLECTIONS, EMAIL, SMS_AND_EMAIL The method used to send an invoice to a patient.
Available options:
CHARGE_CARD, SMS, EMAIL, CALL, MAIL, EXPIRY Available options:
CATEGORY, USAGE, DEFINED_ORDER, NAME, PRICE Available options:
SMS, MAIL, CALL, COLLECTIONS, EMAIL, SMS_AND_EMAIL 
