Morpheus API Gateway LogoMorpheus API Gateway
Auth

Store Private Key

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

POST
/api/v1/auth/private-key

Authorization

AuthorizationRequiredBearer <token>

Enter the JWT token you received from the login endpoint (without 'Bearer' prefix)

In: header

Request Body

application/jsonRequired
[key: string]any

Response Body

Successful Response

TypeScript Definitions

Use the response body type in TypeScript.

[key: string]any
curl -X POST "http://api.mor.org/api/v1/auth/private-key" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{}'
{}

How is this guide?