This API call returns PGP key metadata for a given contact ID. If the ID is of the logged-in contact, private and public parts are returned, otherwise only public part is returned.
Key body is base64 encoded string of armored or binary key value.
Resource URL
/api/1.0/contact/pgp-key/<ID>
Resource Information
Response formats | JSON |
Response code | 200 |
Requires authentication? | Yes |
HTTP Method | GET |
Example Request URL
Example Result
{ "id": <uuid>, "name": <string>, "created": <timestamp>, "modified": <timestamp>, "public": <base64 string>, "private": <base64 string>, "email": <string> }
Add Comment