Retrieving a List of All Runs Without Knowing the Run IDs

Hello everyone!

I’m new to using the OpenAI API and I’ve forgotten my thread IDs and run IDs. I created an assistant, started a thread, and ran multiple runs. Since I’ve been frequently recompiling my code, I’m certain that new threads and runs were created with each execution.

Now, I want to figure out how many runs and threads were created in total and if I can delete them. For this, I need the thread IDs and run IDs to identify and remove them specifically.

I’m using Node.js for my development. Could someone explain how I can retrieve this information and manage these resources effectively?

Thank you in advance for your help!

You’ll find your information here,

https://platform.openai.com/threads

https://platform.openai.com/docs/api-reference/runs/listRuns

2 Likes

Hi @elm , thanks for your Help!