---
title: "Retrieves the public key"
method: POST
path: "/getPublicKey"
tags: ["HTTPWalletJSON"]
---

# Retrieves the public key

`POST /getPublicKey`

## Request body

- object
  - `seekPermission` boolean
  - `identityKey` boolean
  - `protocolID` unknown[]
    - unknown
  - `keyID` string
  - `privileged` boolean
  - `privilegedReason` string
  - `counterparty` string
  - `forSelf` boolean

## Response `200`

The public key

- object
  - `publicKey` string

## Other responses

- `400` — Invalid input
- `500` — Internal server error

---

[API](https://skmtc.dev/bsv-blockchain/apis/wallet-json-api.md) · [All operations](https://skmtc.dev/bsv-blockchain/apis/wallet-json-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bsv-blockchain/wallet-json-api/revisions/4b04a6edb128/schema)
