---
title: "PIN-gated custodial seed/key export"
method: POST
path: "/api/wallets/{address}/export"
tags: ["Wallets", "Wallet and web3"]
---

# PIN-gated custodial seed/key export

`POST /api/wallets/{address}/export`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/wallets/{address}/export`
- Auth: HTTP bearer

Replacement for deprecated POST /api/wallets/private-key. Reveals signing material after PIN check.

## Path parameters

- `address` string, required

## Request body

- object
  - `pin` string, required

## Response `200`

{ success: true, data: { privateKey, mnemonic } }

## Other responses

- `400`: INVALID_PIN (wrong wallet PIN) or VALIDATION_ERROR (malformed input, missing PIN, or PIN reset required)
- `401`: UNAUTHORIZED

## Changes

- **2026-08-16** `16bfbac187d7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/wallets/:address/export/post.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
