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