curl --request POST \
--url https://scribe-api.telepatia.ai/v1/appointments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"consultationInternalId": "CONSULT-12345",
"end": "2026-09-01T14:30:00.000Z",
"idCountry": "COLOMBIA",
"idType": "CC",
"idValue": "1024567890",
"medicalRecordConfigurationId": "mrc_a1b2c3d4e5f6g7h8",
"name": "John Doe",
"reason": "Follow-up",
"scribeSessionModality": "IN_PERSON",
"serviceType": "cardiology",
"start": "2026-09-01T14:00:00.000Z"
}
'import requests
url = "https://scribe-api.telepatia.ai/v1/appointments"
payload = {
"consultationInternalId": "CONSULT-12345",
"end": "2026-09-01T14:30:00.000Z",
"idCountry": "COLOMBIA",
"idType": "CC",
"idValue": "1024567890",
"medicalRecordConfigurationId": "mrc_a1b2c3d4e5f6g7h8",
"name": "John Doe",
"reason": "Follow-up",
"scribeSessionModality": "IN_PERSON",
"serviceType": "cardiology",
"start": "2026-09-01T14:00:00.000Z"
}
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({
consultationInternalId: 'CONSULT-12345',
end: '2026-09-01T14:30:00.000Z',
idCountry: 'COLOMBIA',
idType: 'CC',
idValue: '1024567890',
medicalRecordConfigurationId: 'mrc_a1b2c3d4e5f6g7h8',
name: 'John Doe',
reason: 'Follow-up',
scribeSessionModality: 'IN_PERSON',
serviceType: 'cardiology',
start: '2026-09-01T14:00:00.000Z'
})
};
fetch('https://scribe-api.telepatia.ai/v1/appointments', 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://scribe-api.telepatia.ai/v1/appointments",
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([
'consultationInternalId' => 'CONSULT-12345',
'end' => '2026-09-01T14:30:00.000Z',
'idCountry' => 'COLOMBIA',
'idType' => 'CC',
'idValue' => '1024567890',
'medicalRecordConfigurationId' => 'mrc_a1b2c3d4e5f6g7h8',
'name' => 'John Doe',
'reason' => 'Follow-up',
'scribeSessionModality' => 'IN_PERSON',
'serviceType' => 'cardiology',
'start' => '2026-09-01T14:00:00.000Z'
]),
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://scribe-api.telepatia.ai/v1/appointments"
payload := strings.NewReader("{\n \"consultationInternalId\": \"CONSULT-12345\",\n \"end\": \"2026-09-01T14:30:00.000Z\",\n \"idCountry\": \"COLOMBIA\",\n \"idType\": \"CC\",\n \"idValue\": \"1024567890\",\n \"medicalRecordConfigurationId\": \"mrc_a1b2c3d4e5f6g7h8\",\n \"name\": \"John Doe\",\n \"reason\": \"Follow-up\",\n \"scribeSessionModality\": \"IN_PERSON\",\n \"serviceType\": \"cardiology\",\n \"start\": \"2026-09-01T14:00:00.000Z\"\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://scribe-api.telepatia.ai/v1/appointments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"consultationInternalId\": \"CONSULT-12345\",\n \"end\": \"2026-09-01T14:30:00.000Z\",\n \"idCountry\": \"COLOMBIA\",\n \"idType\": \"CC\",\n \"idValue\": \"1024567890\",\n \"medicalRecordConfigurationId\": \"mrc_a1b2c3d4e5f6g7h8\",\n \"name\": \"John Doe\",\n \"reason\": \"Follow-up\",\n \"scribeSessionModality\": \"IN_PERSON\",\n \"serviceType\": \"cardiology\",\n \"start\": \"2026-09-01T14:00:00.000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe-api.telepatia.ai/v1/appointments")
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 \"consultationInternalId\": \"CONSULT-12345\",\n \"end\": \"2026-09-01T14:30:00.000Z\",\n \"idCountry\": \"COLOMBIA\",\n \"idType\": \"CC\",\n \"idValue\": \"1024567890\",\n \"medicalRecordConfigurationId\": \"mrc_a1b2c3d4e5f6g7h8\",\n \"name\": \"John Doe\",\n \"reason\": \"Follow-up\",\n \"scribeSessionModality\": \"IN_PERSON\",\n \"serviceType\": \"cardiology\",\n \"start\": \"2026-09-01T14:00:00.000Z\"\n}"
response = http.request(request)
puts response.read_body{
"appointmentType": "follow-up",
"consultationInternalId": "CONSULT-12345",
"createdAt": "2026-08-28T12:00:00.000Z",
"end": "2026-09-01T14:30:00.000Z",
"id": "apt_a1b2c3d4e5f6g7h8",
"medicalRecordConfigurationId": "mrc_a1b2c3d4e5f6g7h8",
"minutesDuration": 30,
"reason": "Follow-up",
"scribeSessionModality": "TELEMEDICINE",
"serviceType": "cardiology",
"start": "2026-09-01T14:00:00.000Z",
"status": "booked"
}Agendar una cita
Crea una consulta agendada (idempotente por consultationInternalId).
Obligatorios: consultationInternalId, start, end, y exactamente una referencia al paciente: patientId, internalCode o la identidad inline completa (name + idCountry + idType + idValue).
Opcionales: los demás campos de agenda (minutesDuration, serviceType, appointmentType, reason, description) y una plantilla (medicalRecordConfigurationId) que precarga el contexto de consulta antes de la visita.
Devuelve la cita con su id público estable (apt_...).
curl --request POST \
--url https://scribe-api.telepatia.ai/v1/appointments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"consultationInternalId": "CONSULT-12345",
"end": "2026-09-01T14:30:00.000Z",
"idCountry": "COLOMBIA",
"idType": "CC",
"idValue": "1024567890",
"medicalRecordConfigurationId": "mrc_a1b2c3d4e5f6g7h8",
"name": "John Doe",
"reason": "Follow-up",
"scribeSessionModality": "IN_PERSON",
"serviceType": "cardiology",
"start": "2026-09-01T14:00:00.000Z"
}
'import requests
url = "https://scribe-api.telepatia.ai/v1/appointments"
payload = {
"consultationInternalId": "CONSULT-12345",
"end": "2026-09-01T14:30:00.000Z",
"idCountry": "COLOMBIA",
"idType": "CC",
"idValue": "1024567890",
"medicalRecordConfigurationId": "mrc_a1b2c3d4e5f6g7h8",
"name": "John Doe",
"reason": "Follow-up",
"scribeSessionModality": "IN_PERSON",
"serviceType": "cardiology",
"start": "2026-09-01T14:00:00.000Z"
}
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({
consultationInternalId: 'CONSULT-12345',
end: '2026-09-01T14:30:00.000Z',
idCountry: 'COLOMBIA',
idType: 'CC',
idValue: '1024567890',
medicalRecordConfigurationId: 'mrc_a1b2c3d4e5f6g7h8',
name: 'John Doe',
reason: 'Follow-up',
scribeSessionModality: 'IN_PERSON',
serviceType: 'cardiology',
start: '2026-09-01T14:00:00.000Z'
})
};
fetch('https://scribe-api.telepatia.ai/v1/appointments', 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://scribe-api.telepatia.ai/v1/appointments",
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([
'consultationInternalId' => 'CONSULT-12345',
'end' => '2026-09-01T14:30:00.000Z',
'idCountry' => 'COLOMBIA',
'idType' => 'CC',
'idValue' => '1024567890',
'medicalRecordConfigurationId' => 'mrc_a1b2c3d4e5f6g7h8',
'name' => 'John Doe',
'reason' => 'Follow-up',
'scribeSessionModality' => 'IN_PERSON',
'serviceType' => 'cardiology',
'start' => '2026-09-01T14:00:00.000Z'
]),
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://scribe-api.telepatia.ai/v1/appointments"
payload := strings.NewReader("{\n \"consultationInternalId\": \"CONSULT-12345\",\n \"end\": \"2026-09-01T14:30:00.000Z\",\n \"idCountry\": \"COLOMBIA\",\n \"idType\": \"CC\",\n \"idValue\": \"1024567890\",\n \"medicalRecordConfigurationId\": \"mrc_a1b2c3d4e5f6g7h8\",\n \"name\": \"John Doe\",\n \"reason\": \"Follow-up\",\n \"scribeSessionModality\": \"IN_PERSON\",\n \"serviceType\": \"cardiology\",\n \"start\": \"2026-09-01T14:00:00.000Z\"\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://scribe-api.telepatia.ai/v1/appointments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"consultationInternalId\": \"CONSULT-12345\",\n \"end\": \"2026-09-01T14:30:00.000Z\",\n \"idCountry\": \"COLOMBIA\",\n \"idType\": \"CC\",\n \"idValue\": \"1024567890\",\n \"medicalRecordConfigurationId\": \"mrc_a1b2c3d4e5f6g7h8\",\n \"name\": \"John Doe\",\n \"reason\": \"Follow-up\",\n \"scribeSessionModality\": \"IN_PERSON\",\n \"serviceType\": \"cardiology\",\n \"start\": \"2026-09-01T14:00:00.000Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe-api.telepatia.ai/v1/appointments")
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 \"consultationInternalId\": \"CONSULT-12345\",\n \"end\": \"2026-09-01T14:30:00.000Z\",\n \"idCountry\": \"COLOMBIA\",\n \"idType\": \"CC\",\n \"idValue\": \"1024567890\",\n \"medicalRecordConfigurationId\": \"mrc_a1b2c3d4e5f6g7h8\",\n \"name\": \"John Doe\",\n \"reason\": \"Follow-up\",\n \"scribeSessionModality\": \"IN_PERSON\",\n \"serviceType\": \"cardiology\",\n \"start\": \"2026-09-01T14:00:00.000Z\"\n}"
response = http.request(request)
puts response.read_body{
"appointmentType": "follow-up",
"consultationInternalId": "CONSULT-12345",
"createdAt": "2026-08-28T12:00:00.000Z",
"end": "2026-09-01T14:30:00.000Z",
"id": "apt_a1b2c3d4e5f6g7h8",
"medicalRecordConfigurationId": "mrc_a1b2c3d4e5f6g7h8",
"minutesDuration": 30,
"reason": "Follow-up",
"scribeSessionModality": "TELEMEDICINE",
"serviceType": "cardiology",
"start": "2026-09-01T14:00:00.000Z",
"status": "booked"
}Cuerpo
Cuerpo de solicitud para crear una cita (upsert idempotente).
La identidad del paciente funciona igual que en set-consultation-context: referencia un paciente existente por patientId (sp_) o internalCode, o envía la identidad inline para crear uno. Envía una plantilla (medicalRecordConfigurationId) para precargar también el contexto de consulta, de modo que esté listo antes de la visita.
Nombre completo del paciente. Forma parte de la identidad inline. Envía la identidad inline completa (name + idCountry + idType + idValue) o referencia un paciente existente con patientId o internalCode: se requiere exactamente una de las tres opciones.
1 - 500"John Doe"
País del documento del paciente. Forma parte de la identidad inline (consulta name).
AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CX, CC, CO, KM, CK, CR, CI, HR, CU, CW, CY, CZ, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IQ, IE, IR, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, XK, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, KP, MP, NO, OM, PK, PW, PA, PG, PY, CN, PE, PH, PN, PL, PT, PR, QA, CG, GM, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, KR, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, US, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW "CO"
El médico a cuya agenda se agrega esta reserva: el publicId de una cuenta (acc_...) o tu propio internalCode para esa cuenta. Omítelo para reservar en la agenda de la API key que hace la llamada. Indicar otra cuenta requiere una API key institucional; una API key de médico siempre agenda para sí misma.
1 - 128"acc_a1b2c3d4e5f6g7h8"
Respuesta
Respuesta exitosa
Una cita. id es el id público estable (apt_...).