Logging Questions and Responses for My Created GPT Model

I want to log the questions asked to the GPT model I’ve created and their responses. Also, I haven’t fully understood the API part within the model. How can we use it and for what purpose? Additionally, how will people discover the public GPT model I’ve created?