Trying to delete thread, keep getting

Hello all

I am trying to run a bunch of thread-related API but keep getting the following error:

“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.”,

Attaching a screenshot where I’m trying to run a simple delete thread

Any tips for what I may be doing wrong here?

There is no question mark of a query string in the URL

get https://api.openai.com/v1/threads/{thread_id}

Retrieves a thread.

You can also read the API reference, where “curl” shows the required beta header.

https://platform.openai.com/docs/api-reference/threads/getThread

Thank you! Can’t believe I missed that. Working now :slight_smile:

@Sherif

Is it OK if a moderator closes this topic?

1 Like

@EricGT

yes it is, thank you.