> For the complete documentation index, see [llms.txt](https://wiki.relictum.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.relictum.pro/developing/relictum-node-json-rpc-api/export-private-key.md).

# Export private key

POST <http://127.0.0.1/api/user/pkey/export>

```json
.config
{
	"webuser": {
		"enabled": true, 
		"rw_pkey": true,
		}
}
```

**rw\_pkey** - enable access to import/export private keys (for export, the value must be **true**)

```json
{ 
     "auth": "5b3c7fafaa75a3e95a70ca80de6b6888"
}
```

```json
success response (base64): {"success": true, "private_key": "AAIAAEgAAAAQAAA AAAABAAAABQAAABMO"}"}
```

```json
fail response: {"success":"false","error":"access to private keys is disabled"}
```
