We’ve been running a production application on the Assistants API for several months with no issues. Starting recently, we’re seeing intermittent spikes of 401 errors with the following message:
Error code: 401 - {‘error’: {‘message’: “You have insufficient permissions for this operation.
Missing scopes: api.threads.read.”, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}
What makes this strange:
The API key shows “All” permissions in the OpenAI platform UI
The key has been working correctly for months
No changes were made to the key, the project, or any account settings
The errors are intermittent — the app runs fine most of the time, then spikes (e.g. thousands of errors in a short window around 10:00 AM UTC today, April 11 2026)
Verified the key shows “All” permissions in the UI
Created new API Keys
Confirmed only one key is in use (logging last-4 of the key on every request)
Question: Is this a known platform-side issue where project-level keys intermittently lose their granted scopes? We saw a similar incident reported by other users in August 2025.
I have actually found my issue on my side, an uncatched exception in an asyncio task did actually create a corrupted client which then made the 401 Error
{“error”=>
{“message”=> “You have insufficient permissions for this operation. Missing scopes: api.threads.read. Check that you have the correct role in your organization (Reader, Writer, Owner) and project (Viewer, Member, Owner), and if you’re using a restricted API key, that it has the necessary scopes.”, “type”=>“invalid_request_error”, “param”=>nil, “code”=>nil}}
api key (user api key) have all permission and the error is intermittent
Same issue here, starting last night and happening again today. Created a new api key, it worked for a few minutes on the new api key, then started failing again.
Same api scope issues like:
“401 You have insufficient permissions for this operation. Missing scopes: api.batch.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.”
Thanks for your help! Quick question why this is not tracked in the status page too as it has been up for almost 24h and it is a critical issue impacting many users in prod?
“Missing scopes: api.files.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.”
SAME ERROR: You have insufficient permissions for this operation. Missing scopes: api.batch.read. Check that you have the correct role in your organization (Reader, Writer, Owner) and project (Viewer, Member, Owner), and if you’re using a restricted API key, that it has the necessary scopes.
Permissions ALL
same 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’: None, ‘code’: None}}
I am having the same issue when trying to perform vector store searches:
AuthenticationError: Error code: 401 - {‘error’: {‘message’:
“You have insufficient permissions for this operation.
Missing scopes: vector_store.read. 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’: None, ‘code’:
None}}