v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
GPG
Signing and Encryption (GnuPG Keys)

Return current user's GnuPG secret keys

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

get/GPG/list_secret_keys

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "list_secret_keys",
  "module": "GPG",
  "result": {
    "data": [
      {
        "algorithm": "DSA",
        "bits": 2048,
        "created": 1559238435,
        "expires": 1590774435,
        "id": "738538C1",
        "type": "sec",
        "user_id": "username (John Doe) <username@example.com>"
      }
    ],
    "status": 1
  }
}