This function lists the GnuPG (GPG) secret keys for the currently-authenticated account.
uapi --output=jsonpretty \ --user=username \ GPG \ list_secret_keys
{- "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
}
}