Skip to main content
GET
/
v1
/
datasets
List Attested Datasets
curl --request GET \
  --url https://api.truthlocks.com/v1/datasets \
  --header 'X-API-Key: <api-key>'
{
  "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
}
Returns a paginated list of dataset attestations within the tenant scope. Use query parameters to filter by agent, dataset name, or apply pagination controls.

Authentication

X-API-Key
string
required
API key with datasets:read scope. Alternatively, pass a Bearer JWT token in the Authorization header.
X-Tenant-ID
string
required
Tenant identifier for multi-tenant isolation.

Query Parameters

agent_id
string
Filter datasets by the attesting agent identifier.
name
string
Filter datasets by exact name match.
limit
integer
Maximum number of results to return. Defaults to 20, maximum 100.
offset
integer
Number of results to skip for pagination. Defaults to 0.

Response

datasets
array
Array of dataset attestation objects. Each object contains id, agent_id, name, version, hash, record_count, schema_version, source_uri, status, receipt_id, metadata, and created_at.
total
integer
Total number of dataset attestations matching the filter criteria.

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Query Parameters

agent_id
string<uuid>

Filter by attesting agent

format
string

Filter by data format

limit
integer
default:25
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0

Response

Paginated dataset list

items
object[]
total
integer