Skip to content
Registry StackDocsLatest

List records

GET
/v1/datasets/{dataset_id}/entities/{entity}/records
curl -sS \
-H 'Authorization: Bearer $REGISTRY_RELAY_TOKEN' \
'http://localhost:4242/v1/datasets/social_registry/entities/household/records?limit=10'

List household records from dataset social_registry. Registered household.

Supports pagination via limit+cursor, projection via fields, relationship expansion via expand, and configured filters.

dataset_id
required
string

Dataset identifier

entity
required
string

Entity name

limit
integer format: int32
>= 1

Maximum records to return. Capped by the entity’s api.max_limit.

Examples
Exampledefault
10
cursor
string

Opaque pagination cursor returned in a prior response’s pagination.next_cursor.

fields
string

Comma-separated list of entity fields to project. Unknown fields are rejected.

expand
string
Allowed values: members

Comma-separated relationships to expand inline. Limited to the entity’s configured allowed_expansions.

id
string

Filter by exact match on id.

id.in
string

Filter by inclusion in a comma-separated list of id values.

region
string

Filter by exact match on region.

region.in
string

Filter by inclusion in a comma-separated list of region values.

Data-Purpose
required
string
>= 1 characters

Purpose-of-use IRI or controlled string. When require_purpose_header is set on this entity, the header must be present; a missing value returns 400 auth.purpose_required. The value is always recorded verbatim in the audit trail when present; purpose values are not enforced or validated at the consultation layer. Registry Notary is the purpose-certification layer. Header names are case-insensitive (Data-Purpose and data-purpose are equivalent).

Example
https://demo.example.gov/purpose/demo-review

Successful response

Media typeapplication/json
object
data
required
Array<object>

Registered household.

object
area_geometry

Optional string field.

string | null
id
required

Required string field.

string
members
Array<object>
object
age

Optional integer field.

integer | null format: int64
household

Registered household.

object
area_geometry

Optional string field.

string | null
id
required

Required string field.

string
members
Array<object> recursive
region

Optional string field. Codelist: https://example.test/vocab/codelists/Region.

string | null
household_id
required

Required string field.

string
id
required

Required string field.

string
region

Optional string field. Codelist: https://example.test/vocab/codelists/Region.

string | null
pagination
required
object
has_more
required

True when more pages remain after this one.

boolean
next_cursor

Opaque cursor for the next page; null when has_more is false.

string | null
Example
{
"data": [
{
"area_geometry": "<area_geometry>",
"id": "01HZX9...",
"region": "north"
}
],
"pagination": {
"has_more": false,
"next_cursor": null
}
}

Missing or invalid bearer credential.

Media typeapplication/problem+json

RFC 9457 Problem Details, returned for every non-2xx response.

object
code
required
string
detail
required
string
request_id
required
string
status
required
integer format: int32
title
required
string
type
required
string format: uri
key
additional properties
any
Example
{
"code": "auth.missing_credential",
"detail": "no credential provided in Authorization or x-api-key header",
"request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"status": 401,
"title": "Missing credential",
"type": "https://registry-relay.dev/problems/auth/missing_credential"
}

Authenticated principal lacks the scope required for this operation.

Media typeapplication/problem+json

RFC 9457 Problem Details, returned for every non-2xx response.

object
code
required
string
detail
required
string
request_id
required
string
status
required
integer format: int32
title
required
string
type
required
string format: uri
key
additional properties
any
Example
{
"code": "auth.missing_credential",
"detail": "no credential provided in Authorization or x-api-key header",
"request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"status": 401,
"title": "Missing credential",
"type": "https://registry-relay.dev/problems/auth/missing_credential"
}

Problem Details error response.

Media typeapplication/problem+json

RFC 9457 Problem Details, returned for every non-2xx response.

object
code
required
string
detail
required
string
request_id
required
string
status
required
integer format: int32
title
required
string
type
required
string format: uri
key
additional properties
any
Example
{
"code": "auth.missing_credential",
"detail": "no credential provided in Authorization or x-api-key header",
"request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"status": 401,
"title": "Missing credential",
"type": "https://registry-relay.dev/problems/auth/missing_credential"
}