code: public ApiResponse<ApiSuccessResponse> inviteWithHttpInfo(String id, InviteData inviteData) throws ApiException {
          com.squareup.okhttp.Call call = inviteValidateBeforeCall(id, inviteData, null, null);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Invite another agent to a chat
  Invite another agent to join the specified chat conference. The customer is notified when the invited agent joins the chat. The agents can communicate with the customer or they can communicate with each other without the customer seeing their messages, depending on the value you set for the **visibility** parameter when you call [/media/chat/interactions/{id}/send-message](/reference/workspace/Media/index.html#sendMessage).
  @param id The ID of the chat interaction. (required)
  @param inviteData  (required)
  @return ApiResponse&lt;ApiSuccessResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body