Create Vector Store restricted API key permissions bug

We are using the responses API with a file search tool and our system, that was working well, has suddenly started throwing 401 errors quoting a missing vector_store.write scope. We use a restricted API key however permissions have not changed within the last month.

I am able to produce a minimal reproduction using CURL.

curl https://api.openai.com/v1/vector_stores \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Support FAQ"
  }'

If I create an API key with permissions ‘All’ and make the request, the request succeeds.

If I create an API key with permissions ‘Restricted’, but every single permission enabled (set to write), the request fails with the following error:

{
  "error": {
    "message": "You have insufficient permissions for this operation. Missing scopes: vector_store.write. Check that you have the correct role in your organization (Reader, Writer, Owner) and project (Member, Owner), and if you're using a restricted API key, that it has the necessary scopes.",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

How can it be that this has changed? Is anyone else experiencing this?

3 Likes

Same bug since some hours

1 Like

We continue with the same bug intermittently 3 days ago. It is unacceptable that this continues to happen. Is there any status or answer as to when it will be resolved? Otherwise we will have to change supplier

1 Like

again … has been fixed and again its not working
retrieve and create vector…
Error: Unauthorized. …. seriously ?

We encountered this problem a week ago. I found no info about the problem and no additional permissions in the API key edit dialog. Today I checked again and there here it is: a dedicated permission
Vector Stores: None Read Write
/v1/vector_stores

I changed it to Write and now it works as expected

2 Likes