{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreibaz4t2jc4ukauk4webbvxxxgmsq7xco4unsa766ecpzou7bsj2ee",
    "uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mjdv754mvqn2"
  },
  "path": "/t/you-dont-have-sufficient-permissions-for-this-operation-but-it-works-when-you-run-it-again/1378864#post_1",
  "publishedAt": "2026-04-13T02:07:24.000Z",
  "site": "https://community.openai.com",
  "textContent": "I’m having two types of problems. When making a request to /v1/threads/thread_6****/messages, the error below occurs, but when I send it again after a while, it works correctly without changing the API key:\n**Authorization failed - please check your credentials**\n\nYou have insufficient permissions for this operation. Missing scopes: api.threads.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.\n\nThis error occurs when I make a request to the assistants, but it also works if I wait a while and run it again; it’s intermittent.\n\n**401 You have insufficient permissions for this operation. Missing scopes: api.assistants.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.**",
  "title": "You don't have sufficient permissions for this operation, but it works when you run it again"
}