Return current user's GnuPG public keys

This function lists the GnuPG (GPG) public keys for the currently-authenticated account.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/GPG/list_public_keys
Request samples
uapi --output=jsonpretty \
  --user=username \
  GPG \
  list_public_keys
Response samples
application/json
{
  • "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
    }
}