⚙️
API Docs
  • Welcome!
  • Quick Start
  • Reference
    • API Reference
      • Plaque Lookup API
      • Plaques Prepare API
      • Owner Username API
      • Featured Plaques API
      • Latest contract API
      • Plaques List API
      • Buy Plaque API
      • Stage Wallet Authentication API
      • Email Verification API
      • Request For Private Key API
      • Private Key API
      • Orders Statistics API
      • User Profile API
    • Blockchain Smart-Contract
      • Plaque Price Method
      • Check mintTranfer Method
      • MintTransfer method
      • Token Owners Method
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Request For Private Key API

This Request allows users to get an email two-factor code for getting their own private key.

Request For Private Key API

GET https://api.stagemeta.dev/metamask/request/private-key

{
  "id": 1,
  "createdAt": "2023-04-09T07:32:30.207Z",
  "updatedAt": "2023-04-15T17:38:33.396Z",
  "deletedAt": null,
  "email": "john@doe.com",
  "username": "johndoe",
  "image": null,
  "walletAddress": "0x8******************bd290",
  "receiveEmail": true,
  "canGetDeltaEnergy": false,
  "emailVerify": true,
  "emailVerificationCodeExpireTime": "2023-04-19T17:38:33.392Z",
  "access": [],
  "stripeCustomerId": "***",
  "totalEnergyReceived": 0,
  "totalPings": 0,
  "isStageWallet": true
}

curl -X 'GET' \
  'https://api.stagemeta.dev/metamask/request/private-key' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzE4LCJpYXQiOjE2ODE1NzkzODN9.IVwG13FW0sF8XicJJh8W7yMOxKp5Zhsyazju1qVLI04'
fetch('https://api.stagemeta.dev/metamask/request/private-key', {
  method: 'GET',
  headers: {
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  }
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));
PreviousEmail Verification APINextPrivate Key API

Last updated 2 years ago