Get Permanent Identities
curl --request GET \
--url https://app.essentry.com/api/v2/permanent-identities \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.essentry.com/api/v2/permanent-identities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.essentry.com/api/v2/permanent-identities', 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://app.essentry.com/api/v2/permanent-identities",
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://app.essentry.com/api/v2/permanent-identities"
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://app.essentry.com/api/v2/permanent-identities")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.essentry.com/api/v2/permanent-identities")
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{
"permanentIdentities": [
{
"sourceId": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"customFields": {},
"company": {
"id": 123,
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": "2023-11-07T05:31:56Z",
"companyName": "<string>",
"accessControl": {
"credentials": [
{
"id": 123,
"cardNumberKiosk": "<string>",
"cardNumberReception": "<string>",
"cardNumberAccessControlSystem": "<string>"
}
],
"profiles": [
{
"sourceId": "<string>",
"name": "<string>",
"accessProfileGroup": {
"sourceId": "<string>",
"name": "<string>"
},
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": "2023-11-07T05:31:56Z"
}
]
}
}
],
"pageInfo": {
"totalCount": 123
}
}Permanent Identities
Get Permanent Identities
GET
/
permanent-identities
Get Permanent Identities
curl --request GET \
--url https://app.essentry.com/api/v2/permanent-identities \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.essentry.com/api/v2/permanent-identities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.essentry.com/api/v2/permanent-identities', 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://app.essentry.com/api/v2/permanent-identities",
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://app.essentry.com/api/v2/permanent-identities"
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://app.essentry.com/api/v2/permanent-identities")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.essentry.com/api/v2/permanent-identities")
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{
"permanentIdentities": [
{
"sourceId": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"customFields": {},
"company": {
"id": 123,
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": "2023-11-07T05:31:56Z",
"companyName": "<string>",
"accessControl": {
"credentials": [
{
"id": 123,
"cardNumberKiosk": "<string>",
"cardNumberReception": "<string>",
"cardNumberAccessControlSystem": "<string>"
}
],
"profiles": [
{
"sourceId": "<string>",
"name": "<string>",
"accessProfileGroup": {
"sourceId": "<string>",
"name": "<string>"
},
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": "2023-11-07T05:31:56Z"
}
]
}
}
],
"pageInfo": {
"totalCount": 123
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Pagination - How many results to return
Required range:
x <= 50Pagination - How many results to skip
Landlord tokens may filter to one tenant company; without it, everything the token sees is returned.
Expensive; omitted by default.
Available options:
accessControl.credentials, accessControl.profiles ⌘I