Get a store record's history
curl --request GET \
--url https://api.getdialed.ai/v1/data/stores/{store}/records/{key}/history \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getdialed.ai/v1/data/stores/{store}/records/{key}/history"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getdialed.ai/v1/data/stores/{store}/records/{key}/history', 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.getdialed.ai/v1/data/stores/{store}/records/{key}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.getdialed.ai/v1/data/stores/{store}/records/{key}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.getdialed.ai/v1/data/stores/{store}/records/{key}/history")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getdialed.ai/v1/data/stores/{store}/records/{key}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"source": "<string>",
"version": 123,
"layer_data": {},
"changed_fields": [
"<string>"
],
"valid_from": "2023-11-07T05:31:56Z",
"written_by": {
"kind": "flow",
"execution_id": "<string>",
"definition_id": "<string>",
"trigger_type": "<string>",
"record_set_id": "<string>",
"filename": "<string>",
"user_id": "<string>",
"report_folder": "<string>",
"report_name": "<string>"
},
"valid_to": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"skip": 123,
"total": 123,
"next_cursor": "<string>"
}{
"detail": "Invalid cursor"
}{
"detail": "Authentication required"
}{
"detail": "Store not found"
}{
"detail": "Validation error"
}{
"detail": "Rate limit exceeded"
}Data — /v1/data
Get a store record's history
Returns one record’s audit history, oldest first: every version of every source’s layer, with the period it was in force and what moved when it was written. A version is appended only when a source’s values actually change, so a sync that re-asserts identical values adds nothing. Cursor-paged; total is null.
GET
/
data
/
stores
/
{store}
/
records
/
{key}
/
history
Get a store record's history
curl --request GET \
--url https://api.getdialed.ai/v1/data/stores/{store}/records/{key}/history \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getdialed.ai/v1/data/stores/{store}/records/{key}/history"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getdialed.ai/v1/data/stores/{store}/records/{key}/history', 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.getdialed.ai/v1/data/stores/{store}/records/{key}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.getdialed.ai/v1/data/stores/{store}/records/{key}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.getdialed.ai/v1/data/stores/{store}/records/{key}/history")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getdialed.ai/v1/data/stores/{store}/records/{key}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"source": "<string>",
"version": 123,
"layer_data": {},
"changed_fields": [
"<string>"
],
"valid_from": "2023-11-07T05:31:56Z",
"written_by": {
"kind": "flow",
"execution_id": "<string>",
"definition_id": "<string>",
"trigger_type": "<string>",
"record_set_id": "<string>",
"filename": "<string>",
"user_id": "<string>",
"report_folder": "<string>",
"report_name": "<string>"
},
"valid_to": "2023-11-07T05:31:56Z"
}
],
"limit": 123,
"skip": 123,
"total": 123,
"next_cursor": "<string>"
}{
"detail": "Invalid cursor"
}{
"detail": "Authentication required"
}{
"detail": "Store not found"
}{
"detail": "Validation error"
}{
"detail": "Rate limit exceeded"
}Authorizations
APIKeyHeaderHTTPBearer