List proof packs
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.enfinitos.com/v1/proof-packs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true,
"data": {
"proofPacks": [
{
"envelopeVersion": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"orgId": "<string>",
"packId": "<string>",
"label": "<string>",
"records": [
{
"payload": {
"version": "<string>",
"receiptId": "<string>",
"correlationId": "<string>",
"spatialAnchorId": "<string>",
"spatialPlacementId": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"renderedAt": "2023-11-07T05:31:56Z",
"dwellMs": 123,
"nonce": "<string>",
"witness": "<string>"
},
"keyId": "<string>",
"algorithm": "<string>",
"signature": "<string>",
"payloadCanonical": "<string>",
"beforeHash": "<string>",
"afterHash": "<string>"
}
],
"metering": {
"schemaVersion": "<string>",
"orgId": "<string>",
"periodStart": "2023-11-07T05:31:56Z",
"periodEnd": "2023-11-07T05:31:56Z",
"records": [
{
"idemKey": "<string>",
"proofReceiptId": "<string>",
"unitCount": "<string>",
"weight": "<string>",
"spatialAnchorId": "<string>",
"spatialPlacementId": "<string>",
"observedAt": "2023-11-07T05:31:56Z"
}
],
"totals": {}
},
"settlement": {
"schemaVersion": "<string>",
"orgId": "<string>",
"periodStart": "2023-11-07T05:31:56Z",
"periodEnd": "2023-11-07T05:31:56Z",
"currency": "<string>",
"meterGross": {},
"lines": [
{
"idemKey": "<string>",
"meterRecordIdemKey": "<string>",
"share": "<string>",
"ledgerAccountCode": "<string>",
"amountCents": 123,
"currency": "<string>"
}
],
"totals": {
"grossCents": 123,
"netToTenantCents": 123,
"platformFeeCents": 123,
"vatCents": 123,
"passThroughFeeLedgerCodes": [
"<string>"
]
}
}
}
],
"nextCursor": 123,
"total": 123
},
"contractVersion": "<string>"
}Proof
List proof packs
List signed proof packs for this tenant, newest first. A proof pack is the externally-shareable, Ed25519-signed bundle of receipts that downstream verifiers consume. Requires scope proof:read.
GET
/
v1
/
proof-packs
List proof packs
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.enfinitos.com/v1/proof-packs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true,
"data": {
"proofPacks": [
{
"envelopeVersion": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"orgId": "<string>",
"packId": "<string>",
"label": "<string>",
"records": [
{
"payload": {
"version": "<string>",
"receiptId": "<string>",
"correlationId": "<string>",
"spatialAnchorId": "<string>",
"spatialPlacementId": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"renderedAt": "2023-11-07T05:31:56Z",
"dwellMs": 123,
"nonce": "<string>",
"witness": "<string>"
},
"keyId": "<string>",
"algorithm": "<string>",
"signature": "<string>",
"payloadCanonical": "<string>",
"beforeHash": "<string>",
"afterHash": "<string>"
}
],
"metering": {
"schemaVersion": "<string>",
"orgId": "<string>",
"periodStart": "2023-11-07T05:31:56Z",
"periodEnd": "2023-11-07T05:31:56Z",
"records": [
{
"idemKey": "<string>",
"proofReceiptId": "<string>",
"unitCount": "<string>",
"weight": "<string>",
"spatialAnchorId": "<string>",
"spatialPlacementId": "<string>",
"observedAt": "2023-11-07T05:31:56Z"
}
],
"totals": {}
},
"settlement": {
"schemaVersion": "<string>",
"orgId": "<string>",
"periodStart": "2023-11-07T05:31:56Z",
"periodEnd": "2023-11-07T05:31:56Z",
"currency": "<string>",
"meterGross": {},
"lines": [
{
"idemKey": "<string>",
"meterRecordIdemKey": "<string>",
"share": "<string>",
"ledgerAccountCode": "<string>",
"amountCents": 123,
"currency": "<string>"
}
],
"totals": {
"grossCents": 123,
"netToTenantCents": 123,
"platformFeeCents": 123,
"vatCents": 123,
"passThroughFeeLedgerCodes": [
"<string>"
]
}
}
}
],
"nextCursor": 123,
"total": 123
},
"contractVersion": "<string>"
}Authorizations
API key sent as Authorization: Bearer <api-key>.
Query Parameters
Zero-indexed pagination cursor (slice start). Echo nextCursor from the previous page.
Required range:
x >= 0Max items per page, clamped to [1, 200]. Defaults to 50.
Required range:
1 <= x <= 200⌘I