List the institution's accounts
curl --request GET \
--url https://scribe-api.telepatia.ai/v1/institutional/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://scribe-api.telepatia.ai/v1/institutional/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://scribe-api.telepatia.ai/v1/institutional/accounts', 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/institutional/accounts",
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://scribe-api.telepatia.ai/v1/institutional/accounts"
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://scribe-api.telepatia.ai/v1/institutional/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe-api.telepatia.ai/v1/institutional/accounts")
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{
"items": [
{
"email": "dr.juan@clinica.com",
"id": "acc_a1b2c3d4e5f6g7h8",
"nameFull": "Dr. Juan Pérez"
}
],
"limit": 20,
"page": 1,
"total": 1
}{
"error": {
"type": "authentication_error",
"code": "authentication_required",
"message": "Invalid API key."
}
}{
"error": {
"type": "api_error",
"code": "service_unavailable",
"message": "Unable to generate verification code. Please try again later."
}
}Cuentas
List the institution's accounts
Returns id, nameFull, email, and disabledAt for every account in the authenticated institution. Paginated.
GET
/
v1
/
institutional
/
accounts
List the institution's accounts
curl --request GET \
--url https://scribe-api.telepatia.ai/v1/institutional/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://scribe-api.telepatia.ai/v1/institutional/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://scribe-api.telepatia.ai/v1/institutional/accounts', 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/institutional/accounts",
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://scribe-api.telepatia.ai/v1/institutional/accounts"
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://scribe-api.telepatia.ai/v1/institutional/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe-api.telepatia.ai/v1/institutional/accounts")
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{
"items": [
{
"email": "dr.juan@clinica.com",
"id": "acc_a1b2c3d4e5f6g7h8",
"nameFull": "Dr. Juan Pérez"
}
],
"limit": 20,
"page": 1,
"total": 1
}{
"error": {
"type": "authentication_error",
"code": "authentication_required",
"message": "Invalid API key."
}
}{
"error": {
"type": "api_error",
"code": "service_unavailable",
"message": "Unable to generate verification code. Please try again later."
}
}Autorizaciones
Clave API enviada como token Bearer
Parámetros de consulta
Rango requerido:
x >= 1Rango requerido:
1 <= x <= 100⌘I