---
title: "Store Private Key"
method: POST
path: "/api/v1/auth/private-key"
tags: ["Auth"]
---

# Store Private Key

`POST /api/v1/auth/private-key`

Store an encrypted blockchain private key for the authenticated user.
Replaces any existing key.

## Request body

- PrivateKeyCreate — Schema for creating a private key entry
  - `private_key` string, required — User's blockchain private key

## Response `201`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/morpheusais/apis/morpheus-api-gateway.md) · [All operations](https://skmtc.net/morpheusais/apis/morpheus-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morpheusais/morpheus-api-gateway/versions/061297d1593b/schema)
