How to list all threads in Azure OpenAI Assistant

Wang, Zheng 35 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.
2,644 questions
{count} votes

1 answer

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

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