curl --request POST \
--url https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events \
--header 'Content-Type: application/json' \
--data '
{
"service": "appointment",
"event": "appointment.tele.dr_joined",
"transaction_id": "8y3458734657",
"event_time": 1730189586,
"timestamp": 1730189586,
"business_id": "174159057718553",
"client_id": "67978400352a61001d64e9fb",
"data": {
"appointment_id": "api-abb67007-1e53-4f0f-b428-a4bc025468a4",
"doctor_id": "174159057723920",
"patient_id": "174678912588458",
"clinic_id": "67978400352a61001d64e9fb",
"video_connect": {
"host_link": "https://xyz.com",
"meet_link": "https://xyz.com",
"vendor": "abc"
}
}
}
'import requests
url = "https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events"
payload = {
"service": "appointment",
"event": "appointment.tele.dr_joined",
"transaction_id": "8y3458734657",
"event_time": 1730189586,
"timestamp": 1730189586,
"business_id": "174159057718553",
"client_id": "67978400352a61001d64e9fb",
"data": {
"appointment_id": "api-abb67007-1e53-4f0f-b428-a4bc025468a4",
"doctor_id": "174159057723920",
"patient_id": "174678912588458",
"clinic_id": "67978400352a61001d64e9fb",
"video_connect": {
"host_link": "https://xyz.com",
"meet_link": "https://xyz.com",
"vendor": "abc"
}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
service: 'appointment',
event: 'appointment.tele.dr_joined',
transaction_id: '8y3458734657',
event_time: 1730189586,
timestamp: 1730189586,
business_id: '174159057718553',
client_id: '67978400352a61001d64e9fb',
data: {
appointment_id: 'api-abb67007-1e53-4f0f-b428-a4bc025468a4',
doctor_id: '174159057723920',
patient_id: '174678912588458',
clinic_id: '67978400352a61001d64e9fb',
video_connect: {host_link: 'https://xyz.com', meet_link: 'https://xyz.com', vendor: 'abc'}
}
})
};
fetch('https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events")
.header("Content-Type", "application/json")
.body("{\n \"service\": \"appointment\",\n \"event\": \"appointment.tele.dr_joined\",\n \"transaction_id\": \"8y3458734657\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"business_id\": \"174159057718553\",\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"data\": {\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"doctor_id\": \"174159057723920\",\n \"patient_id\": \"174678912588458\",\n \"clinic_id\": \"67978400352a61001d64e9fb\",\n \"video_connect\": {\n \"host_link\": \"https://xyz.com\",\n \"meet_link\": \"https://xyz.com\",\n \"vendor\": \"abc\"\n }\n }\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"service\": \"appointment\",\n \"event\": \"appointment.tele.dr_joined\",\n \"transaction_id\": \"8y3458734657\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"business_id\": \"174159057718553\",\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"data\": {\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"doctor_id\": \"174159057723920\",\n \"patient_id\": \"174678912588458\",\n \"clinic_id\": \"67978400352a61001d64e9fb\",\n \"video_connect\": {\n \"host_link\": \"https://xyz.com\",\n \"meet_link\": \"https://xyz.com\",\n \"vendor\": \"abc\"\n }\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"service\": \"appointment\",\n \"event\": \"appointment.tele.dr_joined\",\n \"transaction_id\": \"8y3458734657\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"business_id\": \"174159057718553\",\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"data\": {\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"doctor_id\": \"174159057723920\",\n \"patient_id\": \"174678912588458\",\n \"clinic_id\": \"67978400352a61001d64e9fb\",\n \"video_connect\": {\n \"host_link\": \"https://xyz.com\",\n \"meet_link\": \"https://xyz.com\",\n \"vendor\": \"abc\"\n }\n }\n}"
response = http.request(request)
puts response.read_bodyDoctor Joined Video Call
This webhook is triggered when a doctor joins a scheduled video consultation.
Field Definitions
• event: string - The type of resource for which event is generated. When doctor joins video call, this will be appointment.tele.dr_joined.
• service: string - The type of service. For appointments, this will be appointment.
• business_id: string - The eka id of business.
• event_time: integer - Event occurrence timestamp.
• timestamp: integer - Event occurrence timestamp.
• client_id: string- Client ID for the appointment
• transaction_id: string - The id of the transaction.
• data: object - Contains detailed information about the appointment event.
• appointment_id: string - Unique identifier for the appointment.
• doctor_id: string - Unique identifier for the doctor.
• patient_id: string - Unique identifier for the patient.
• clinic_id: string - Unique identifier for the clinic.
• video_connect: object - Contains information about vendor, meet_link and host_link.
• host_link: string - Link for the doctor.
• meet_link: string - Link for the meeting patient.
• vendor: string - The video conferencing service provider.
Example Webhook Request
Endpoint: https://your-registered-webhook-url.com
Method: POST
curl --request POST \
--url https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events \
--header 'Content-Type: application/json' \
--data '
{
"service": "appointment",
"event": "appointment.tele.dr_joined",
"transaction_id": "8y3458734657",
"event_time": 1730189586,
"timestamp": 1730189586,
"business_id": "174159057718553",
"client_id": "67978400352a61001d64e9fb",
"data": {
"appointment_id": "api-abb67007-1e53-4f0f-b428-a4bc025468a4",
"doctor_id": "174159057723920",
"patient_id": "174678912588458",
"clinic_id": "67978400352a61001d64e9fb",
"video_connect": {
"host_link": "https://xyz.com",
"meet_link": "https://xyz.com",
"vendor": "abc"
}
}
}
'import requests
url = "https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events"
payload = {
"service": "appointment",
"event": "appointment.tele.dr_joined",
"transaction_id": "8y3458734657",
"event_time": 1730189586,
"timestamp": 1730189586,
"business_id": "174159057718553",
"client_id": "67978400352a61001d64e9fb",
"data": {
"appointment_id": "api-abb67007-1e53-4f0f-b428-a4bc025468a4",
"doctor_id": "174159057723920",
"patient_id": "174678912588458",
"clinic_id": "67978400352a61001d64e9fb",
"video_connect": {
"host_link": "https://xyz.com",
"meet_link": "https://xyz.com",
"vendor": "abc"
}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
service: 'appointment',
event: 'appointment.tele.dr_joined',
transaction_id: '8y3458734657',
event_time: 1730189586,
timestamp: 1730189586,
business_id: '174159057718553',
client_id: '67978400352a61001d64e9fb',
data: {
appointment_id: 'api-abb67007-1e53-4f0f-b428-a4bc025468a4',
doctor_id: '174159057723920',
patient_id: '174678912588458',
clinic_id: '67978400352a61001d64e9fb',
video_connect: {host_link: 'https://xyz.com', meet_link: 'https://xyz.com', vendor: 'abc'}
}
})
};
fetch('https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events")
.header("Content-Type", "application/json")
.body("{\n \"service\": \"appointment\",\n \"event\": \"appointment.tele.dr_joined\",\n \"transaction_id\": \"8y3458734657\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"business_id\": \"174159057718553\",\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"data\": {\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"doctor_id\": \"174159057723920\",\n \"patient_id\": \"174678912588458\",\n \"clinic_id\": \"67978400352a61001d64e9fb\",\n \"video_connect\": {\n \"host_link\": \"https://xyz.com\",\n \"meet_link\": \"https://xyz.com\",\n \"vendor\": \"abc\"\n }\n }\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"service\": \"appointment\",\n \"event\": \"appointment.tele.dr_joined\",\n \"transaction_id\": \"8y3458734657\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"business_id\": \"174159057718553\",\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"data\": {\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"doctor_id\": \"174159057723920\",\n \"patient_id\": \"174678912588458\",\n \"clinic_id\": \"67978400352a61001d64e9fb\",\n \"video_connect\": {\n \"host_link\": \"https://xyz.com\",\n \"meet_link\": \"https://xyz.com\",\n \"vendor\": \"abc\"\n }\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://{partner_host}/registered_url_for_appointment_tele_dr_joined_webhook_events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"service\": \"appointment\",\n \"event\": \"appointment.tele.dr_joined\",\n \"transaction_id\": \"8y3458734657\",\n \"event_time\": 1730189586,\n \"timestamp\": 1730189586,\n \"business_id\": \"174159057718553\",\n \"client_id\": \"67978400352a61001d64e9fb\",\n \"data\": {\n \"appointment_id\": \"api-abb67007-1e53-4f0f-b428-a4bc025468a4\",\n \"doctor_id\": \"174159057723920\",\n \"patient_id\": \"174678912588458\",\n \"clinic_id\": \"67978400352a61001d64e9fb\",\n \"video_connect\": {\n \"host_link\": \"https://xyz.com\",\n \"meet_link\": \"https://xyz.com\",\n \"vendor\": \"abc\"\n }\n }\n}"
response = http.request(request)
puts response.read_bodyBody
Response
Was this page helpful?

