> 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/import-private-key.md).

# Import private key

POST <http://127.0.0.1/api/user/key/import>

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

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

```json
{ 
	"private_key": "AAIAAEgAAAAQAAA     AAAABAAAABQAAABMO"
}
```

```json
success response: {"success": true, "id": 15, "mail": "test3@dex.ru", "address": "4q9gCwTnXXy7WF485rAhDxUoYY08XH6E"}
```

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