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

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

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

Returns all publickeys linked to contact

## Path parameters

- `contact_id` string, required

## Response `200`

List of public keys

- object
  - `total` integer — number of keys found
  - `pubkeys` 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

---

[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)
