Listar Conjuntos de Dados Atestados
curl --request GET \
--url https://api.truthlocks.com/v1/datasets \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/datasets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/datasets"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/datasets"
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))
}{
"items": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"hash": "<string>",
"format": "<string>",
"size_bytes": 123,
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}
],
"total": 123
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Conjuntos de Dados e Modelos
Listar Atestados de Conjunto de Dados
Recupere uma lista paginada de atestados de conjunto de dados com filtros opcionais.
GET
/
v1
/
datasets
Listar Conjuntos de Dados Atestados
curl --request GET \
--url https://api.truthlocks.com/v1/datasets \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/datasets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/datasets"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/datasets"
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))
}{
"items": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"hash": "<string>",
"format": "<string>",
"size_bytes": 123,
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}
],
"total": 123
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Retorna uma lista paginada de atestações de conjunto de dados dentro do escopo do inquilino. Use parâmetros de consulta para filtrar por agente, nome do conjunto de dados ou aplicar controles de paginação.
Resposta
Array de objetos de atestação de conjunto de dados. Cada objeto contém
id, agent_id,
name, version, hash, record_count, schema_version, source_uri,
status, receipt_id, metadata, e created_at.
