Account
Export all of this account's data (wallet-verified, tenant-isolated)
/v1/account/exportReturns a complete, versioned JSON snapshot of everything this account owns: profile, API-key/session metadata (never token material), policies, delegations, intents, the double-entry ledger, prepaid credits and balance, events, webhook configuration and failures, auto-topup rule and authorization metadata (never the EIP-3009 signatures), venue credential metadata (never the sealed ciphertext), PM orders and positions, audit records, and an R2 statement object manifest. Authenticated ⇒ wallet-verified; RLS scopes it to your account. Unbounded sections are capped (see truncated).
Responses
export_versioninteger(required)generated_atstring(required)truncatedstring[](required)accountobject(required)api_keysobject[](required)sessionsobject[](required)policiesobject[](required)delegationsobject[](required)intentsobject[](required)ledger_entriesobject[](required)payment_creditsobject[](required)balanceobject,null(required)eventsobject[](required)webhooksobject(required)auto_topupobject,null(required)venue_credentialsobject[](required)pm_ordersobject[](required)pm_positionsobject[](required)audit_logobject[](required)statements_manifestobject(required)
Example
curl -X GET https://api.cofferline.com/v1/account/export \ -H "authorization: Bearer $TOKEN"
Offboard this account: type-to-confirm, revoke everything, scrub PII, retire in place
/v1/account/offboardWallet-verified account closure. Echo your wallet address in confirm_wallet_address (type-to-confirm). Suspends the account, revokes every API key AND session (including the calling credential), flips delegations to revoked with owner-submittable uninstall/invalidate calldata, zeroes every venue-credential ciphertext, removes the auto-topup rule and arrows (with cancellation instructions — deleting the row does NOT revoke the signatures on-chain), removes the webhook secret and dead-letters, scrubs the account's contact field, and marks the account offboarded. The row is NOT deleted: the append-only ledger, events and intents FK into it, and those books plus the audit trail of money movement are retained by design. R2 statement objects are deleted by the housekeeping sweep (they are regenerable re-derivations of the retained ledger). Idempotent: re-running an already-offboarded account is a no-op that returns the same retirement facts. Requires a session or admin-scoped key.
Request body
confirm_wallet_addressstring(required)reasonstring
Responses
offboardedtrue(required)addressstring(required)offboarded_atstring(required)deletedobject(required)retainedstring[](required)scheduledstring[](required)delegations_revokedobject[](required)cancellationobjectnotestring(required)
Example
curl -X POST https://api.cofferline.com/v1/account/offboard \
-H "authorization: Bearer $TOKEN" \
-H "content-type: application/json" \
-d '{"confirm_wallet_address":"…"}'