This function returns whether the cPanel account has shell access and the account's shell path.
uapi --output=jsonpretty \ --user=username \ SSH \ get_shell
{- "apiversion": 3,
- "func": "get_shell",
- "module": "SSH",
- "result": {
- "data": {
- "has_terminal_access": true,
- "shell": "/bin/bash"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}