# Return start_background_pkgacct session state This function returns the state of a  session. Endpoint: GET /get_pkgacct_session_state Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `session_id` (string, required) The  session ID. Example: "username20200323154328kDJ2Kx4xua2KtG" ## Response 200 fields (application/json): - `data` (object) - `data.state` (string) The session's state. * * * Enum: "COMPLETED", "FAILED", "RUNNING" - `metadata` (object) - `metadata.command` (string) The method name called. Example: "get_pkgacct_session_state" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * - Success * - Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1