How to list all threads in Azure OpenAI Assistant

Wang, Zheng 40 Reputation points
2024-03-25T19:27:46.68+00:00

From the documentation, I have seen that we can retrieve the thread information given the thread_id.
GET https://YOUR_RESOURCE_NAME.openai.azure.com/openai/threads/{thread_id}?api-version=2024-02-15-preview
But if we don't know the thread_id, how to list all the threads under this resource.

In OpenAI, I can see some solution to GET https://api.openai.com/v1/threads/

Any way to do that through Azure OpenAI API?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,407 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Wang, Zheng 40 Reputation points
    2024-04-26T00:40:00.1566667+00:00

    Can you please share us how to use API to list threads? Thanks.


  2. Mohamed Hussein 360 Reputation points
    2024-11-18T01:13:36.3433333+00:00

    Following is working for me

    https://{{YourEndPoint}}.openai.azure.com/openai/threads?api-version=2024-05-01-preview

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.