---
title: "GET /v2/contacts/{contact_id}/publickeys/{pubkey_id}"
method: GET
path: "/v2/contacts/{contact_id}/publickeys/{pubkey_id}"
tags: ["keys", "pgp"]
---

# GET /v2/contacts/{contact_id}/publickeys/{pubkey_id}

`GET /v2/contacts/{contact_id}/publickeys/{pubkey_id}`

Retrieve publickey

## Path parameters

- `contact_id` string, required
- `pubkey_id` string, required

## Response `200`

Successful response with json object

- PublicKey
  - `alg` string
  - `crv` string
  - `date_insert` string, date-time
  - `date_update` string, date-time
  - `emails` string[]
  - `expire_date` string, date-time
  - `fingerprint` string
  - `kty` string
  - `key_id` string, required
  - `type` string
  - `resource_id` string, required
  - `resource_type` string
  - `size` integer
  - `use` string
  - `user_id` string, required
  - `x` integer
  - `y` integer
  - `key` string, required — DER or PEM key, base64 encoded
  - `label` string, required

## Other responses

- `401` — Unauthorized access

---

[API](https://skmtc.net/caliopen/apis/caliopen-http-rest-api.md) · [All operations](https://skmtc.net/caliopen/apis/caliopen-http-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/caliopen/caliopen-http-rest-api/revisions/f32b5d08284d/schema)
