Add new message to existing Thread

Hello everyone!

I hope you’re doing well. :blush:

I’m trying to add messages to an existing thread but have run into a bit of an issue. When I follow all the steps—Create Thread, Create Message, Run, and Retrieve—everything works perfectly.

However, when I skip the “Create Thread” step and use the ThreadID of an existing thread, nothing seems to happen. I’ve checked both the debug file and the Thread Dashboard, but there’s no activity.

I also tried creating a message separately, without including the previous or subsequent steps, by using the following cURL command:

curl https://api.openai.com/v1/threads/thread_existing/messages \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "OpenAI-Beta: assistants=v2" \
  -d '{
      "role": "user",
      "content": "How does AI work? Explain it in simple terms."
    }'

In the URL, I’ve made sure to include the ThreadID of the existing thread.

Does anyone have an idea of what might be causing this issue or what I might be doing wrong? Any help would be greatly appreciated!

Thank you so much in advance!

If the thread has been closed, archived, or marked as inactive, it might not accept new messages.

I have tried adding messages to an just created Thread.

I have run through all the steps: Create Thread, Create Message, Run and Retrieve.

After that i have took the ThreadID and tried to sent a message, but nothing is working.

I dont think that the Thread is archived or marked as inactive. However, i am not sure. Where can i check if a Thread was closed, archived or marked as inactive?