---
title: "GET /v2/accounts/{account_id}/publickey"
method: GET
path: "/v2/accounts/{account_id}/publickey"
tags: ["Accounts"]
---

# GET /v2/accounts/{account_id}/publickey

`GET /v2/accounts/{account_id}/publickey`

## Request

- Base URL: `https://tonapi.io`
- URL: `https://tonapi.io/v2/accounts/{account_id}/publickey`
- Auth: none declared
- TypeScript: <https://skmtc.dev/tonapi/apis/rest-api-to-ton-blockchain-explorer/docs/v2/accounts/:account_id/publickey/get.ts> (a function with typed inputs; its response is checked against the schema)

Get public key by account id

## Path parameters

- `account_id` string, address, required

## Response `200`

account's public key

- object
  - `public_key` string, required

## Other responses

- `default`: Some error during request processing

---

[API](https://skmtc.dev/tonapi/apis/rest-api-to-ton-blockchain-explorer.md) - [All operations](https://skmtc.dev/tonapi/apis/rest-api-to-ton-blockchain-explorer/llms.txt) - [OpenAPI document](https://skmtc.dev/tonapi/apis/rest-api-to-ton-blockchain-explorer/revisions/fc4add7a71a0?raw)
