Recover the API key for a settled bundle

Re-issue the API key for a bundle you already paid for but whose key you lost. The key is shown only once, in the buy response. Only bundles settled on the tempo rail can be recovered here, because recovery proves control of the wallet that funded them: EIP-191 personal_sign the exact UTF-8 message 'Reletter API key recovery for <payment_intent_id>' with that wallet, then POST the PaymentIntent id and signature. The response carries the same api_key the purchase returned. An SPT/card bundle has no wallet to sign with; re-POST /api/payments/buy for the same PaymentIntent to get its key back instead.

post/api/payments/recover

Request

  • Base URL: https://api.reletter.com
  • URL: https://api.reletter.com/api/payments/recover
  • Auth: none required

Request body

payment_intent_idstring required

payment_intent_id from the original buy response (the Payment-Receipt header value without the stripe: prefix).

signaturestring required

0x-hex EIP-191 personal_sign of the recovery message by the funding wallet.

Response

Signature verified. Body carries the API key.

api_keystring

Send as the x-reletter-api-key header.

api_key_headerstring
base_urlstring
quotainteger
usedinteger
remaininginteger
bundle_idinteger
payment_intent_idstring
recoveredboolean

Changes

No recorded changes to this operation across all 1 revision of this API.