Create Template
curl --request POST \
--url https://api.eka.care/voice/api/v1/template \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Cardiology OPD Note",
"desc": "Generate a cardiology outpatient note with these sections:\n## Chief Complaint\n## History of Present Illness\n## Examination (bullet points, include vitals table)\n## Assessment\n## Plan (numbered list with medications and follow-up date)\n",
"section_ids": []
}
'import requests
url = "https://api.eka.care/voice/api/v1/template"
payload = {
"title": "Cardiology OPD Note",
"desc": "Generate a cardiology outpatient note with these sections:
## Chief Complaint
## History of Present Illness
## Examination (bullet points, include vitals table)
## Assessment
## Plan (numbered list with medications and follow-up date)
",
"section_ids": []
}
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({
title: 'Cardiology OPD Note',
desc: 'Generate a cardiology outpatient note with these sections:\n## Chief Complaint\n## History of Present Illness\n## Examination (bullet points, include vitals table)\n## Assessment\n## Plan (numbered list with medications and follow-up date)\n',
section_ids: []
})
};
fetch('https://api.eka.care/voice/api/v1/template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/voice/api/v1/template")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Cardiology OPD Note\",\n \"desc\": \"Generate a cardiology outpatient note with these sections:\\n## Chief Complaint\\n## History of Present Illness\\n## Examination (bullet points, include vitals table)\\n## Assessment\\n## Plan (numbered list with medications and follow-up date)\\n\",\n \"section_ids\": []\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/voice/api/v1/template");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"title\": \"Cardiology OPD Note\",\n \"desc\": \"Generate a cardiology outpatient note with these sections:\\n## Chief Complaint\\n## History of Present Illness\\n## Examination (bullet points, include vitals table)\\n## Assessment\\n## Plan (numbered list with medications and follow-up date)\\n\",\n \"section_ids\": []\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/voice/api/v1/template")
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 \"title\": \"Cardiology OPD Note\",\n \"desc\": \"Generate a cardiology outpatient note with these sections:\\n## Chief Complaint\\n## History of Present Illness\\n## Examination (bullet points, include vitals table)\\n## Assessment\\n## Plan (numbered list with medications and follow-up date)\\n\",\n \"section_ids\": []\n}"
response = http.request(request)
puts response.read_body{
"msg": "created successfully",
"template_id": "tpl_7d1a2b3c4d5e"
}{
"error": {
"code": "invalid_audio_format",
"message": "Audio format 'audio/mp3' is not supported",
"details": {}
}
}{
"error": {
"code": "invalid_audio_format",
"message": "Audio format 'audio/mp3' is not supported",
"details": {}
}
}Templates
Create Template
Create a custom note template. Describe the exact structure, sections and style you want in desc using plain text or markdown — for example “SOAP note with Subjective, Objective, Assessment, Plan; use bullet points; include a medication table”. EkaScribe uses this description as the authoring instruction when generating notes. Pass the returned template_id in Create Session (templates) or Process Template.
POST
/
voice
/
api
/
v1
/
template
Create Template
curl --request POST \
--url https://api.eka.care/voice/api/v1/template \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Cardiology OPD Note",
"desc": "Generate a cardiology outpatient note with these sections:\n## Chief Complaint\n## History of Present Illness\n## Examination (bullet points, include vitals table)\n## Assessment\n## Plan (numbered list with medications and follow-up date)\n",
"section_ids": []
}
'import requests
url = "https://api.eka.care/voice/api/v1/template"
payload = {
"title": "Cardiology OPD Note",
"desc": "Generate a cardiology outpatient note with these sections:
## Chief Complaint
## History of Present Illness
## Examination (bullet points, include vitals table)
## Assessment
## Plan (numbered list with medications and follow-up date)
",
"section_ids": []
}
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({
title: 'Cardiology OPD Note',
desc: 'Generate a cardiology outpatient note with these sections:\n## Chief Complaint\n## History of Present Illness\n## Examination (bullet points, include vitals table)\n## Assessment\n## Plan (numbered list with medications and follow-up date)\n',
section_ids: []
})
};
fetch('https://api.eka.care/voice/api/v1/template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/voice/api/v1/template")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Cardiology OPD Note\",\n \"desc\": \"Generate a cardiology outpatient note with these sections:\\n## Chief Complaint\\n## History of Present Illness\\n## Examination (bullet points, include vitals table)\\n## Assessment\\n## Plan (numbered list with medications and follow-up date)\\n\",\n \"section_ids\": []\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/voice/api/v1/template");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"title\": \"Cardiology OPD Note\",\n \"desc\": \"Generate a cardiology outpatient note with these sections:\\n## Chief Complaint\\n## History of Present Illness\\n## Examination (bullet points, include vitals table)\\n## Assessment\\n## Plan (numbered list with medications and follow-up date)\\n\",\n \"section_ids\": []\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/voice/api/v1/template")
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 \"title\": \"Cardiology OPD Note\",\n \"desc\": \"Generate a cardiology outpatient note with these sections:\\n## Chief Complaint\\n## History of Present Illness\\n## Examination (bullet points, include vitals table)\\n## Assessment\\n## Plan (numbered list with medications and follow-up date)\\n\",\n \"section_ids\": []\n}"
response = http.request(request)
puts response.read_body{
"msg": "created successfully",
"template_id": "tpl_7d1a2b3c4d5e"
}{
"error": {
"code": "invalid_audio_format",
"message": "Audio format 'audio/mp3' is not supported",
"details": {}
}
}{
"error": {
"code": "invalid_audio_format",
"message": "Audio format 'audio/mp3' is not supported",
"details": {}
}
}Create a custom note template: just a
Use the returned
title and a desc describing your format in plain text or markdown (sections, bullets, tables, tone). Always pass section_ids: [].
{
"title": "Cardiology OPD Note",
"desc": "## Chief Complaint\n## History\n## Examination (bullets, vitals table)\n## Plan (numbered, with follow-up date)",
"section_ids": []
}
template_id in Create Session or Process Template.Authorizations
Body
application/json
Was this page helpful?

