The api endpoint: GET https://api.openai.com/v1/threads exists; the playground uses it to list all threads. But there is no mention of this in the docs.
I need this to clean up abandoned threads. Very helpful function for data management.
The api endpoint: GET https://api.openai.com/v1/threads exists; the playground uses it to list all threads. But there is no mention of this in the docs.
I need this to clean up abandoned threads. Very helpful function for data management.
OK - Iāve done further testing and my postman tests were insufficient. The reason there is no documentation is that this endpoint can only be accessed if there is a browser session key present. Postman must emulate this.
If you try to call from the API directly you get:
Your request to GET /v1/threads must be made with a session key (that is, it can only be made from the browser). You made it with the following key type: secret.
So the doc is missing because this is unsupported. Can we please support this?
It has no authentication support other than by an organization member that can log in. Listing threads is basically the key to eavesdropping on everything ever said in a platform using this endpoint.
If you are clever enough to get the Oauth2 token from the platform site, this will get the browser session token for you. list all orgs and projects, navigate them to list threads, etcā¦