For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tracr XPS API V2

Get Diamonds V2

get

Multi-value search returning a discriminated union of diamond results.

Mirrors v1's pagination and peer-fan-out, but instead of dropping locked diamonds (v1's behaviour), it surfaces them as RestrictedDiamondSearchResult entries (kind: locked) built from the locked_diamond payload PCS attaches to each locked search row. Ineligible uninscribed diamonds use the same wrapper with kind: uninscribed (which takes precedence over locked). data_access_event rows are recorded only for UnlockedDiamondSearchResult entries.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageinteger · min: 1Optional

Page number

Default: 1
sizeinteger · min: 1 · max: 1000OptionalDefault: 100
searchstringRequired
Responses
200

Successful Response

application/json
nextstring · nullableOptional

The URL for the next page.

pageinteger · min: 1 · nullableRequired

The number of the current page.

pagesinteger · nullableOptional

The total number of pages.

previousstring · nullableOptional

The URL of the previous page.

totalintegerRequired

The total number of results across all pages.

get/v2/diamonds/

Get Diamond History V2

get

Look up a diamond's history in Tracr.

Returns the full TraceabilityHistoryReadView for a diamond with full access, or a reduced RestrictedDiamondView (HTTP 200) when the diamond exists but full data is restricted for the caller. Returns HTTP 404 if the diamond cannot be found on any peer.

Data-access events are recorded only when the response is the full history view; reduced responses do not record an event.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
diamond_idstringRequiredExample: e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$
Responses
200

Full history for a diamond with full access, or a reduced RestrictedDiamondView when the diamond exists but full data is restricted for the caller.

application/json
or
get/v2/diamonds/{diamond_id}/history

Last updated