code: public ApiResponse<ApiSuccessResponse> loginVoiceWithHttpInfo(LoginData loginData) throws ApiException {
          com.squareup.okhttp.Call call = loginVoiceValidateBeforeCall(loginData, null, null);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Log in on the voice channel
  Log in the current agent on the voice channel. When you make this request, Workspace uses the parameters you provided in [/activate-channels](/reference/workspace/Session/index.html#activateChannels). For most applications, you don&#39;t need to worry about logging in the agent on the voice channel because it&#39;s handled by the Workspace API when you call [/activate-channels](/reference/workspace/Session/index.html#activateChannels). However, if you make a [/voice/logout](/reference/workspace/Voice/index.html#logoutVoice) request, you can then use [/voice/login](/reference/workspace/Voice/index.html#loginVoice) to log in the agent on the voice channel. **Note&amp;colon;** This login /logout flow only applies to the voice channel, not to the agent&#39;s session.
  @param loginData  (optional)
  @return ApiResponse&lt;ApiSuccessResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body