Assistant api with idempotent?

Hello everyone, I need guidance on a problem with the Assistant API. My service creates a thread and sends a message using the API. Although the message creation is successful on OpenAI’s end, the response gets lost, leading my service to mistakenly believe the creation failed. Now, when I create a new, different message in this thread and execute it, OpenAI returns two responses, including the one that my code initially considered a failure. I would like to know if this is a known issue and, if so, how can I resolve it?
Thank you very much!

How do you mean the “response gets lost”?

You can create a thread with a message attached (optionally) in one step, or just create a thread, and then attach a message to it in two steps.