Is it possible to get previous chat in NodeJS with the response or chat id in gpt4?

I want to get the previous chats without maintaining the previous chats into my own database, so it is possible that i store the response id of the gpt for each and every response, and then get the old chats using that id only?
is it possible