Read the trust receipt reference for an invocation
const url = 'https://example.com/v1/invocations/example/receipt';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/invocations/example/receipt \ --header 'Authorization: Bearer <token>'Reports which Treeship artifact this gateway signed for one invocation, and the command that verifies it.
It deliberately returns no verdict. The gateway signed the artifact; a gateway that also reported it as valid would be asserting exactly what invariant #6 forbids. Verification is performed against the artifact by the party relying on it.
attested: false is not proof that no receipt exists. Emission is fail-open and runs off the request path, so an artifact can be signed and its reference lost; reason distinguishes receipts_disabled from not_recorded.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The inv_<uuidv7> invocation ID.
Responses
Section titled “Responses”The receipt reference, or an explicit statement that none is recorded.
Which Treeship artifact was signed for an invocation, and how to verify it. Carries no verdict: the gateway signed this artifact and does not also vouch for it (invariant #6).
object
Whether an artifact reference is recorded. False is not proof that no receipt exists — emission is fail-open and off the request path.
Why no reference is recorded. Absent when attested is true.
The Treeship artifact identifier.
The actor URI the artifact was signed as.
The command that verifies the artifact against its signing key.
Example
{ "reason": "receipts_disabled"}The invocation id is missing.
The uniform error body for all 4xx responses that carry one.
object
A coarse, caller-safe message. Never contains internal state (invariant
Examplegenerated
{ "error": "example"}Missing or invalid bearer token, or the token’s tenant/user claims are absent. No body.
No resource with this ID exists in the caller’s tenant.
The uniform error body for all 4xx responses that carry one.
object
A coarse, caller-safe message. Never contains internal state (invariant
Examplegenerated
{ "error": "example"}An unexpected server-side error. No body (internal detail is never returned to callers, invariant