# 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"}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.relictum.pro/developing/relictum-node-json-rpc-api/import-private-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
