Listar llamadas
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/voice/calls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/voice/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.linahealthcareplatform.com/api/v1/voice/calls', 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.linahealthcareplatform.com/api/v1/voice/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.linahealthcareplatform.com/api/v1/voice/calls"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.linahealthcareplatform.com/api/v1/voice/calls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/voice/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "call_abc123",
"patientId": "pat_xyz789",
"status": "completed",
"purpose": "Seguimiento post-operatorio día 3",
"language": "es",
"duration": 187,
"creditsConsumed": 55,
"createdAt": "2026-05-14T10:30:00Z",
"completedAt": "2026-05-14T10:33:07Z"
},
{
"id": "call_def456",
"patientId": "pat_abc123",
"status": "failed",
"purpose": "Recordatorio de medicación",
"language": "es",
"duration": 0,
"creditsConsumed": 5,
"failureReason": "no_answer",
"createdAt": "2026-05-14T11:00:00Z"
}
],
"pagination": {
"cursor": "eyJpZCI6ImNhbGxfZGVmNDU2In0=",
"hasMore": true,
"limit": 20
}
}
Llamadas
Listar llamadas
Obtiene una lista paginada de llamadas realizadas.
GET
/
voice
/
calls
Listar llamadas
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/voice/calls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/voice/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.linahealthcareplatform.com/api/v1/voice/calls', 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.linahealthcareplatform.com/api/v1/voice/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.linahealthcareplatform.com/api/v1/voice/calls"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.linahealthcareplatform.com/api/v1/voice/calls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/voice/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "call_abc123",
"patientId": "pat_xyz789",
"status": "completed",
"purpose": "Seguimiento post-operatorio día 3",
"language": "es",
"duration": 187,
"creditsConsumed": 55,
"createdAt": "2026-05-14T10:30:00Z",
"completedAt": "2026-05-14T10:33:07Z"
},
{
"id": "call_def456",
"patientId": "pat_abc123",
"status": "failed",
"purpose": "Recordatorio de medicación",
"language": "es",
"duration": 0,
"creditsConsumed": 5,
"failureReason": "no_answer",
"createdAt": "2026-05-14T11:00:00Z"
}
],
"pagination": {
"cursor": "eyJpZCI6ImNhbGxfZGVmNDU2In0=",
"hasMore": true,
"limit": 20
}
}
Query Parameters
Filtra por paciente.
Filtra por estado. Valores:
queued, ringing, in-progress, completed, failed.Fecha inicio en formato ISO 8601.
Fecha fin en formato ISO 8601.
Número de resultados por página (máximo 100).
Cursor de paginación.
{
"data": [
{
"id": "call_abc123",
"patientId": "pat_xyz789",
"status": "completed",
"purpose": "Seguimiento post-operatorio día 3",
"language": "es",
"duration": 187,
"creditsConsumed": 55,
"createdAt": "2026-05-14T10:30:00Z",
"completedAt": "2026-05-14T10:33:07Z"
},
{
"id": "call_def456",
"patientId": "pat_abc123",
"status": "failed",
"purpose": "Recordatorio de medicación",
"language": "es",
"duration": 0,
"creditsConsumed": 5,
"failureReason": "no_answer",
"createdAt": "2026-05-14T11:00:00Z"
}
],
"pagination": {
"cursor": "eyJpZCI6ImNhbGxfZGVmNDU2In0=",
"hasMore": true,
"limit": 20
}
}
Lista de llamadas. No incluye transcripción ni resumen — usa obtener estado para ver los detalles completos.
Authorizations
Token JWT obtenido via POST /auth/token
⌘I

