I am not able to communicate with my customgpt that i have created though api

This question appears to come up a lot. Consider using search. You can’t access a GPT via API.