cURL
curl --request GET \
--url https://api.salvy.com.br/api/v1/assets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salvy.com.br/api/v1/assets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salvy.com.br/api/v1/assets', 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.salvy.com.br/api/v1/assets",
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.salvy.com.br/api/v1/assets"
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.salvy.com.br/api/v1/assets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salvy.com.br/api/v1/assets")
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{
"assets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"enrollmentId": "SLY-12345",
"status": "in-use",
"createdAt": "2025-01-01T00:00:00.000Z",
"source": "desktop-client",
"customFields": [
{
"label": "teste",
"type": "text",
"value": "teste"
}
],
"category": "notebook",
"brand": "Dell",
"model": "XPS 13",
"vendorName": "Tech Supplier Inc.",
"serialNumber": "SN1234567890",
"deviceId": "8A1D30F4-8C87-44CD-A663-2229DE6F64BD",
"acquisitionDate": "2025-12-10T03:00:00.000Z",
"acquisitionType": "bought",
"priceCents": 250000,
"nfeNumber": "000123456789",
"contractId": "CT-2024-0001",
"warrantyExpirationDate": "2025-12-24T03:00:00.000Z",
"allocatedLocation": "Sala do RH",
"employeeId": "123e4567-e89b-12d3-a456-426614174000",
"employeeAttachedAt": "2025-01-01T00:00:00.000Z"
}
]
}{
"code": "unauthorized",
"message": "<string>",
"publicDetails": {}
}{
"message": "<string>",
"publicDetails": {}
}{
"code": "resource-not-found",
"message": "<string>",
"publicDetails": {}
}{
"code": "payload-too-large",
"message": "<string>",
"publicDetails": {}
}{
"message": "<string>",
"publicDetails": {}
}{
"code": "unknown",
"message": "<string>",
"publicDetails": {}
}Equipamentos
Listar equipamentos
Lista todos os equipamentos da empresa
GET
/
api
/
v1
/
assets
cURL
curl --request GET \
--url https://api.salvy.com.br/api/v1/assets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salvy.com.br/api/v1/assets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salvy.com.br/api/v1/assets', 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.salvy.com.br/api/v1/assets",
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.salvy.com.br/api/v1/assets"
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.salvy.com.br/api/v1/assets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salvy.com.br/api/v1/assets")
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{
"assets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"enrollmentId": "SLY-12345",
"status": "in-use",
"createdAt": "2025-01-01T00:00:00.000Z",
"source": "desktop-client",
"customFields": [
{
"label": "teste",
"type": "text",
"value": "teste"
}
],
"category": "notebook",
"brand": "Dell",
"model": "XPS 13",
"vendorName": "Tech Supplier Inc.",
"serialNumber": "SN1234567890",
"deviceId": "8A1D30F4-8C87-44CD-A663-2229DE6F64BD",
"acquisitionDate": "2025-12-10T03:00:00.000Z",
"acquisitionType": "bought",
"priceCents": 250000,
"nfeNumber": "000123456789",
"contractId": "CT-2024-0001",
"warrantyExpirationDate": "2025-12-24T03:00:00.000Z",
"allocatedLocation": "Sala do RH",
"employeeId": "123e4567-e89b-12d3-a456-426614174000",
"employeeAttachedAt": "2025-01-01T00:00:00.000Z"
}
]
}{
"code": "unauthorized",
"message": "<string>",
"publicDetails": {}
}{
"message": "<string>",
"publicDetails": {}
}{
"code": "resource-not-found",
"message": "<string>",
"publicDetails": {}
}{
"code": "payload-too-large",
"message": "<string>",
"publicDetails": {}
}{
"message": "<string>",
"publicDetails": {}
}{
"code": "unknown",
"message": "<string>",
"publicDetails": {}
}Este endpoint retorna todos os equipamentos associados à sua empresa, exceto os arquivados. A resposta inclui todos os resultados, sem paginação.
⌘I