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