This function lists the GnuPG (GPG) public keys for the currently-authenticated account.
uapi --output=jsonpretty \ --user=username \ GPG \ list_public_keys
{- "apiversion": 3,
- "func": "list_public_keys",
- "module": "GPG",
- "result": {
- "data": [
- {
- "algorithm": "DSA",
- "bits": 2048,
- "created": "1559238435",
- "expires": "1590774435",
- "id": "C801294347601B8F",
- "type": "pub",
- "user_id": "bender (is great) <bender@example.com>"
}
], - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}