Inspect a customer session's uploads and proofs
const url = 'https://api.pixonaut.app/v1/admin/sessions/example';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://api.pixonaut.app/v1/admin/sessions/example \ --header 'Authorization: Bearer <token>'Operation ID: customerSessions.get
Lists every upload and proof one designer session left behind, with when each was made and when each proof expires. retained is 1 for one that a committed design or a published template uses, which is kept for as long as that use lasts and which a wipe does not delete, and 0 for one that expires on its own. For support, and for checking what a wipe kept; a storefront does not need it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The session’s assets and proofs
object
object
object
Examples
Example
{ "assets": [ { "createdAt": 1760000000000, "id": "b7e2c4a1-9d3f-4a6b-8e5c-2f1d0a9b8c7e", "layerId": "motif", "mime": "image/png", "retained": 0, "sizeBytes": 482113, "templateId": "tshirt-basic@2" } ], "proofs": [ { "createdAt": 1760000060000, "docHash": "3f8a1c5d9e2b7a40c6d1e8f35b9a2c74d0e6f1a8b3c5d7e9f2a4b6c8d0e1f3a5", "expiresAt": 1760086400000, "id": "prf_9c1e2d3f4a5b6c7d8e9f0a1b", "retained": 0, "templateId": "tshirt-basic@2" } ]}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: unauthorized
object
Examples
unauthorized
{ "error": "unauthorized"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: origin_forbidden, secret_key_required, feature_disabled
object
The feature the tenant does not have. Always sent with feature_disabled.
Examples
feature_disabled
{ "error": "feature_disabled", "feature": "api"}origin_forbidden
{ "error": "origin_forbidden"}secret_key_required
{ "error": "secret_key_required"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: db_error. A request that failed unexpectedly answers as text instead.
object
Examples
db_error
{ "error": "db_error"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Questions? Write to [email protected].