Return current user's GnuPG secret keys

This function lists the GnuPG (GPG) secret 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_secret_keys
Request samples
uapi --output=jsonpretty \
  --user=username \
  GPG \
  list_secret_keys
Response samples
application/json
{
  • "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>"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}