Skip to content

Recovery

POST /wallets/recovery/introspect

If the recovery phrase is valid, the API returns the wallet address and creation time. Send the request to the wallet’s network.

Request

POST /wallets/recovery/introspect
Content-Type: application/json
{
"recovery": "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art"
}
Input Meaning and format
recovery Wallet recovery phrase. 24 lowercase English BIP-39 words separated by single spaces. Send exactly as issued.

Response: 200 OK

{
"meta": {
"network": "rehearsal",
"at": "2026-11-20T12:10:00.124000000Z"
},
"data": {
"public": {
"address": "01a1f8d3-ea7b-7a12-8b34-56789abcdef0",
"created_at": "2026-11-20T12:00:00.123000000Z"
}
}
}
Output Meaning and format
address Wallet address. UUIDv7 (RFC 9562), lowercase, 36 characters.
created_at Wallet creation time. RFC 3339, UTC (Z), exactly 9 fractional digits.
network Selected network. String.
at Response time. RFC 3339, UTC (Z), exactly 9 fractional digits.

Both recovery endpoints return 401 with Invalid recovery phrase. if the phrase does not match a wallet on the selected network. See Errors.

POST /wallets/recovery/rotate-token

Choose trade or transfer. Each successful request immediately invalidates the current token of that type. Save the replacement. If you rotate trade, your transfer token still works. If you rotate transfer, your trade token still works. Your recovery phrase stays valid and can’t be rotated.

Request

POST /wallets/recovery/rotate-token
Content-Type: application/json
{
"recovery": "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art",
"rotate": "trade"
}
Input Meaning and format
recovery Wallet recovery phrase. 24 lowercase English BIP-39 words separated by single spaces. Send exactly as issued.
rotate Token type to replace. Use "trade" or "transfer". The old token is not required.

Response: 200 OK

{
"meta": {
"network": "rehearsal",
"at": "2026-11-20T12:11:00.124000000Z"
},
"data": {
"public": {
"address": "01a1f8d3-ea7b-7a12-8b34-56789abcdef0",
"created_at": "2026-11-20T12:00:00.123000000Z"
},
"private": {
"tokens": {
"trade": "<new-trade-token>"
}
}
}
}
Output Meaning and format
address Wallet address. UUIDv7 (RFC 9562), lowercase, 36 characters.
created_at Wallet creation time. RFC 3339, UTC (Z), exactly 9 fractional digits.
tokens.trade or tokens.transfer New token. Only the selected field is present. Format: sk-{network}-{lookup}-{secret}. The lookup is 32 lowercase hex characters and the secret is 64.
network Selected network. String.
at Response time. RFC 3339, UTC (Z), exactly 9 fractional digits.