Dear samer,alisaleh,
Good day, thanks for querying in this forum.
From your description, it seems that you want to know how to use Copilot API to send Prompt.
If my understanding is right, we’d also love to help you, since our category focus on general troubleshooting and built-in features in Microsoft 365 business products, the question you mentioned is related to Copilot API, we’d suggest you go to related community
Microsoft Copilot - Microsoft Q&A to post a new thread, which is specific channel to handle such situation.
If my understanding above is not consistent with yours, you can also post back and point that.
Your understanding and patience will be highly appreciated. I hope that you are keeping safe and well!
Sincerely,
Sukie | Microsoft Community Moderator