code: public ApiSuccessResponse initializeWorkspace(String code, String redirectUri, String state, String authorization) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = initializeWorkspaceWithHttpInfo(code, redirectUri, state, authorization);
          return resp.getData();
      }
docs: Get and register an auth token
  Retrieve the authorization token using the authorization code. Workspace then registers the token and prepares the user&#39;s environment.
  @param code The authorization code. You must include this parameter for the [Authorization Code Grant flow](/reference/authentication/). (optional)
  @param redirectUri The same redirect URI you used in the initial login step. You must include this parameter for the [Authorization Code Grant flow](/reference/authentication/). (optional)
  @param state The state parameter provide by the auth service on redirect that should be used to validate. This parameter must be provided if the include_state parameter is sent with the /login request. (optional)
  @param authorization Bearer authorization. For example, \&quot;Authorization&amp;colon; Bearer access_token\&quot;. (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body