Skip to main content
GET
/
devices
/
share
Listar enlaces compartidos
curl --request GET \
  --url https://api.locatebyteli.com/devices/share \
  --header 'Authorization: <authorization>'
import requests

url = "https://api.locatebyteli.com/devices/share"

headers = {"Authorization": "<authorization>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<authorization>'}};

fetch('https://api.locatebyteli.com/devices/share', 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.locatebyteli.com/devices/share",
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: <authorization>"
],
]);

$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.locatebyteli.com/devices/share"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "<authorization>")

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.locatebyteli.com/devices/share")
.header("Authorization", "<authorization>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.locatebyteli.com/devices/share")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'

response = http.request(request)
puts response.read_body
[
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "account": "660e8400-e29b-41d4-a716-446655440000",
    "devices": ["770e8400-e29b-41d4-a716-446655440000", "880e8400-e29b-41d4-a716-446655440000"],
    "acl": ["990e8400-e29b-41d4-a716-446655440000"],
    "revoked": false,
    "expires_at": "2026-03-20T00:00:00Z",
    "unique_views": 5,
    "last_accessed_at": "2026-03-18T12:00:00Z",
    "created_at": "2026-03-15T00:00:00Z",
    "token": "eyJhbGciOiJIUzI1NiJ9...",
    "original_url": "https://app.locatebyteli.com/share?token=eyJhbGciOiJIUzI1NiJ9..."
  }
]

Authorization

Authorization
string
default:"Bearer "
required
API Key. Formato: Bearer lbt_•••

Respuesta

id
uuid
ID del enlace de compartición
account
uuid
ID de la cuenta propietaria
devices
string[]
Lista de IDs de dispositivos compartidos
acl
string[]
Lista de UUIDs de permisos de acceso
revoked
boolean
Si el enlace fue revocado
expires_at
datetime
Fecha de expiración del enlace
unique_views
integer
Número de vistas únicas
last_accessed_at
datetime
Último acceso al enlace
created_at
datetime
Fecha de creación del enlace
token
string
Token del enlace de compartición
original_url
string
URL completa con token de compartición
[
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "account": "660e8400-e29b-41d4-a716-446655440000",
    "devices": ["770e8400-e29b-41d4-a716-446655440000", "880e8400-e29b-41d4-a716-446655440000"],
    "acl": ["990e8400-e29b-41d4-a716-446655440000"],
    "revoked": false,
    "expires_at": "2026-03-20T00:00:00Z",
    "unique_views": 5,
    "last_accessed_at": "2026-03-18T12:00:00Z",
    "created_at": "2026-03-15T00:00:00Z",
    "token": "eyJhbGciOiJIUzI1NiJ9...",
    "original_url": "https://app.locatebyteli.com/share?token=eyJhbGciOiJIUzI1NiJ9..."
  }
]