Tracr XPS API V1
Search for diamonds matching the given query.
Diamonds can be searched by Tracr ID, Report number or Inscription number.
Page number
1100Successful Response
The URL for the next page.
The number of the current page.
The total number of pages.
The URL of the previous page.
The total number of results across all pages.
Unauthorized: The request has not been applied because it lacks valid authentication credentials for the target resource.
Forbidden: The application does not have sufficient permissions for this operation.
Validation Error
GET /v1/diamonds/?search=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"next": "text",
"page": 1,
"pages": 1,
"previous": "text",
"results": [
{
"diamond": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"identity_type": "diamond_id"
}
],
"total": 1
}Look up a single diamond in Tracr and return its data if it exists.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Successful Response
Detailed data of a diamond.
Represents the assurance level for a diamond.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Lab eligibility status of the diamond, exactly mirroring values displayed in the UI
falseRepresents the unlock status of a diamond, as returned by the API.
Unauthorized: The request has not been applied because it lacks valid authentication credentials for the target resource.
Forbidden: The application does not have sufficient permissions for this operation.
Diamond not found.
It was not possible to determine which Tracr instance holds this diamond.
Validation Error
GET /v1/diamonds/{diamond_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Fetch a single file's pre-signed URL and return a Response.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Successful Response
Unauthorized: The request has not been applied because it lacks valid authentication credentials for the target resource.
Forbidden: The application does not have sufficient permissions for this operation.
Diamond or file not found.
It was not possible to determine which Tracr instance holds this diamond.
The file was found in the Tracr network but a pre-signed URL could not be generated.
Validation Error
An unexpected response was received from the participant's API.
GET /v1/diamonds/{diamond_id}/files/{file_hash} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Look up a single diamond in Tracr and return its history.
e1mv3nn4n10kd1lw6mde6sumsPattern: ^[a-z\d]{20,98}$Successful Response
A version of FullReadView containing only traceability data.
Unauthorized: The request has not been applied because it lacks valid authentication credentials for the target resource.
Forbidden: The application does not have sufficient permissions for this operation.
Diamond not found.
It was not possible to determine which Tracr instance holds this diamond.
Validation Error
GET /v1/diamonds/{diamond_id}/history HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated