curl --request GET \
--url https://api.salvy.com.br/api/v3/employees \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salvy.com.br/api/v3/employees"
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/v3/employees', 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/v3/employees",
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/v3/employees"
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/v3/employees")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salvy.com.br/api/v3/employees")
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": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"fullName": "João da Silva",
"socialName": "João",
"status": "active",
"workEmail": "joaosilva@empresa.com.br",
"personalEmail": "joaos04@gmail.com",
"workPhoneNumber": "+5541923456789",
"personalPhoneNumber": "+5541987654321",
"cpf": "198.099.750-07",
"cnpj": "82.530.339/0001-64",
"rg": "12.345.678-9",
"position": "Desenvolvedor",
"area": "Engenharia",
"managerFullName": "Maria dos Santos",
"birthDate": "1990-04-15",
"contractType": "clt",
"contractEndDate": "2023-12-31",
"admittedAt": "2020-05-27",
"terminatedAt": "2021-01-30",
"address": {
"zipCode": "12345-678",
"streetName": "Rua das Flores",
"streetNumber": "123",
"complement": "Apto 101",
"neighborhood": "Jardim das Flores",
"city": "São Paulo",
"state": "SP",
"country": "Brasil"
},
"bankAccount": {
"bank": "Banco do Brasil",
"branch": "1234",
"accountNumber": "123456",
"accountType": "checking",
"pixKey": "joao04@gmail.com"
},
"salaryCents": 500000,
"customFields": [
{
"label": "teste",
"type": "text",
"value": "teste"
}
],
"sources": [
{
"id": "123",
"platform": "api"
}
],
"createdAt": "2025-01-01T00:00:00.000Z",
"assetCount": 10,
"phoneAccountCount": 3,
"externalPhoneAccountCount": 5
}
],
"pagination": {
"page": 1,
"pageSize": 50,
"totalCount": 123,
"totalPages": 3
}
}{
"code": "unauthorized",
"message": "<string>"
}{
"code": "forbidden",
"message": "<string>"
}{
"code": "resource-not-found",
"message": "<string>"
}{
"code": "payload-too-large",
"message": "<string>"
}{
"code": "input-validation-error",
"message": "<string>",
"details": [
{
"key": "<string>",
"message": "<string>"
}
]
}{
"code": "unknown",
"message": "<string>"
}Listar colaboradores
Lista os colaboradores da empresa, ordenados por data de criação decrescente (createdAt) por padrão, com desempate por ID crescente. Use sortBy/sortOrder para alterar o campo e a direção da ordenação.
curl --request GET \
--url https://api.salvy.com.br/api/v3/employees \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salvy.com.br/api/v3/employees"
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/v3/employees', 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/v3/employees",
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/v3/employees"
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/v3/employees")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salvy.com.br/api/v3/employees")
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": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"fullName": "João da Silva",
"socialName": "João",
"status": "active",
"workEmail": "joaosilva@empresa.com.br",
"personalEmail": "joaos04@gmail.com",
"workPhoneNumber": "+5541923456789",
"personalPhoneNumber": "+5541987654321",
"cpf": "198.099.750-07",
"cnpj": "82.530.339/0001-64",
"rg": "12.345.678-9",
"position": "Desenvolvedor",
"area": "Engenharia",
"managerFullName": "Maria dos Santos",
"birthDate": "1990-04-15",
"contractType": "clt",
"contractEndDate": "2023-12-31",
"admittedAt": "2020-05-27",
"terminatedAt": "2021-01-30",
"address": {
"zipCode": "12345-678",
"streetName": "Rua das Flores",
"streetNumber": "123",
"complement": "Apto 101",
"neighborhood": "Jardim das Flores",
"city": "São Paulo",
"state": "SP",
"country": "Brasil"
},
"bankAccount": {
"bank": "Banco do Brasil",
"branch": "1234",
"accountNumber": "123456",
"accountType": "checking",
"pixKey": "joao04@gmail.com"
},
"salaryCents": 500000,
"customFields": [
{
"label": "teste",
"type": "text",
"value": "teste"
}
],
"sources": [
{
"id": "123",
"platform": "api"
}
],
"createdAt": "2025-01-01T00:00:00.000Z",
"assetCount": 10,
"phoneAccountCount": 3,
"externalPhoneAccountCount": 5
}
],
"pagination": {
"page": 1,
"pageSize": 50,
"totalCount": 123,
"totalPages": 3
}
}{
"code": "unauthorized",
"message": "<string>"
}{
"code": "forbidden",
"message": "<string>"
}{
"code": "resource-not-found",
"message": "<string>"
}{
"code": "payload-too-large",
"message": "<string>"
}{
"code": "input-validation-error",
"message": "<string>",
"details": [
{
"key": "<string>",
"message": "<string>"
}
]
}{
"code": "unknown",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Número da página, iniciando em 1.
1 <= x <= 90071992547409911
Tamanho da página. Máximo de 200.
1 <= x <= 20050
Filtra pela situação do colaborador. Repita o parâmetro para incluir múltiplos valores (?status=active&status=on-hold).
active, terminated, on-hold "active"
Filtra pelo tipo de contrato do colaborador. Repita o parâmetro para incluir múltiplos valores. Use __null__ para filtrar colaboradores sem tipo de contrato definido.
pj, clt, intern, apprentice, temporary, third-party "clt"
Filtra pelo CPF exato do colaborador. Aceita o valor formatado (com pontuação) ou apenas os dígitos.
"198.099.750-07"
Filtra colaboradores admitidos a partir desta data (inclusivo), em formato YYYY-MM-DD.
"2026-05-01"
Filtra colaboradores admitidos até esta data (exclusivo), em formato YYYY-MM-DD. Para incluir o dia inteiro, use a data seguinte (ex.: para incluir todo o dia 2026-05-31, use admittedAtTo=2026-06-01).
"2026-06-01"
Filtra colaboradores desligados a partir desta data (inclusivo), em formato YYYY-MM-DD.
"2026-05-01"
Filtra colaboradores desligados até esta data (exclusivo), em formato YYYY-MM-DD. Para incluir o dia inteiro, use a data seguinte (ex.: para incluir todo o dia 2026-05-31, use terminatedAtTo=2026-06-01).
"2026-06-01"
Campo usado para ordenar o resultado. Padrão: createdAt.
createdAt, fullName, admittedAt "createdAt"
Direção da ordenação. Padrão: desc.
asc, desc "desc"