curl --request POST \
--url https://scribe-api.telepatia.ai/v1/institutional/branches \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": "Av. 7 #12-34",
"main": false,
"name": "Sede Norte",
"type": "single"
}
'import requests
url = "https://scribe-api.telepatia.ai/v1/institutional/branches"
payload = {
"address": "Av. 7 #12-34",
"main": False,
"name": "Sede Norte",
"type": "single"
}
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({address: 'Av. 7 #12-34', main: false, name: 'Sede Norte', type: 'single'})
};
fetch('https://scribe-api.telepatia.ai/v1/institutional/branches', 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/branches",
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([
'address' => 'Av. 7 #12-34',
'main' => false,
'name' => 'Sede Norte',
'type' => 'single'
]),
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/institutional/branches"
payload := strings.NewReader("{\n \"address\": \"Av. 7 #12-34\",\n \"main\": false,\n \"name\": \"Sede Norte\",\n \"type\": \"single\"\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/institutional/branches")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"Av. 7 #12-34\",\n \"main\": false,\n \"name\": \"Sede Norte\",\n \"type\": \"single\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe-api.telepatia.ai/v1/institutional/branches")
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 \"address\": \"Av. 7 #12-34\",\n \"main\": false,\n \"name\": \"Sede Norte\",\n \"type\": \"single\"\n}"
response = http.request(request)
puts response.read_body{
"address": "Av. 7 #12-34",
"id": "b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"main": false,
"name": "Sede Norte",
"order": 0,
"type": "single",
"visible": true
}Crear una sede
Crea una nueva sede para la institución autenticada. Solo name es obligatorio; los campos omitidos usan los valores por defecto del servidor. El nombre de la sede debe ser único dentro de la institución: un duplicado devuelve un 409. Una vez creada, la sede puede referenciarse como institutionalBranchName al crear cuentas.
curl --request POST \
--url https://scribe-api.telepatia.ai/v1/institutional/branches \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": "Av. 7 #12-34",
"main": false,
"name": "Sede Norte",
"type": "single"
}
'import requests
url = "https://scribe-api.telepatia.ai/v1/institutional/branches"
payload = {
"address": "Av. 7 #12-34",
"main": False,
"name": "Sede Norte",
"type": "single"
}
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({address: 'Av. 7 #12-34', main: false, name: 'Sede Norte', type: 'single'})
};
fetch('https://scribe-api.telepatia.ai/v1/institutional/branches', 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/branches",
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([
'address' => 'Av. 7 #12-34',
'main' => false,
'name' => 'Sede Norte',
'type' => 'single'
]),
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/institutional/branches"
payload := strings.NewReader("{\n \"address\": \"Av. 7 #12-34\",\n \"main\": false,\n \"name\": \"Sede Norte\",\n \"type\": \"single\"\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/institutional/branches")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"Av. 7 #12-34\",\n \"main\": false,\n \"name\": \"Sede Norte\",\n \"type\": \"single\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://scribe-api.telepatia.ai/v1/institutional/branches")
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 \"address\": \"Av. 7 #12-34\",\n \"main\": false,\n \"name\": \"Sede Norte\",\n \"type\": \"single\"\n}"
response = http.request(request)
puts response.read_body{
"address": "Av. 7 #12-34",
"id": "b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"main": false,
"name": "Sede Norte",
"order": 0,
"type": "single",
"visible": true
}Autorizaciones
Clave API enviada como token Bearer
Cuerpo
Request body for creating an institution branch.
Mirrors datalayer's branch input. Only name is required; omitted fields
fall back to datalayer defaults (visible=true, type=single,
main=false, order=0, IPS=[]). The branch id is generated
server-side.
255"Sede Norte"
Branch type — single site or multi-site.
single, multi "single"
true
false
x >= 00
1000500"Av. 7 #12-34"
Geographic coordinates of a branch.
Show child attributes
Show child attributes
x >= 0Wording the scribe clients use on the start-session button.
consultation, reading Respuesta
Successful Response
Response body after creating an institution branch.
Server-generated branch id.
"Sede Norte"
"single"
Geographic coordinates of a branch.
Show child attributes
Show child attributes