Preview release.These docs are a work in progress. Pages are still being written, links may break, and structure may shift without notice. Treat everything here as a draft and report issues onGitHub.
List records
curl -sS \ -H 'Authorization: Bearer $REGISTRY_RELAY_TOKEN' \ 'http://localhost:4242/v1/datasets/social_registry/entities/household/records?limit=10'import os, httpx
token = os.environ['REGISTRY_RELAY_TOKEN']resp = httpx.get( 'http://localhost:4242/v1/datasets/social_registry/entities/household/records', params={'limit': 10}, headers={'Authorization': f'Bearer {token}'})resp.raise_for_status()page = resp.json()for row in page['data']: print(row)next_cursor = page['pagination'].get('next_cursor')List household records from dataset social_registry. Registered household.
Supports pagination via limit+cursor, projection via fields, relationship expansion via expand, and configured filters.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Dataset identifier
Entity name
Query Parameters
Section titled “Query Parameters”Maximum records to return. Capped by the entity’s api.max_limit.
Examples
10Opaque pagination cursor returned in a prior response’s pagination.next_cursor.
Comma-separated list of entity fields to project. Unknown fields are rejected.
Comma-separated relationships to expand inline. Limited to the entity’s configured allowed_expansions.
Filter by exact match on id.
Filter by inclusion in a comma-separated list of id values.
Filter by exact match on region.
Filter by inclusion in a comma-separated list of region values.
Header Parameters
Section titled “Header Parameters”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-reviewResponses
Section titled “Responses”Successful response
object
Registered household.
object
Optional string field.
Required string field.
object
Optional integer field.
Registered household.
object
Optional string field.
Required string field.
Optional string field. Codelist: https://example.test/vocab/codelists/Region.
Required string field.
Required string field.
Optional string field. Codelist: https://example.test/vocab/codelists/Region.
object
True when more pages remain after this one.
Opaque cursor for the next page; null when has_more is false.
Example
{ "data": [ { "area_geometry": "<area_geometry>", "id": "01HZX9...", "region": "north" } ], "pagination": { "has_more": false, "next_cursor": null }}Missing or invalid bearer credential.
RFC 9457 Problem Details, returned for every non-2xx response.
object
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.
RFC 9457 Problem Details, returned for every non-2xx response.
object
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"}default
Section titled “default”Problem Details error response.
RFC 9457 Problem Details, returned for every non-2xx response.
object
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"}