Missing Batch API permission for API Keys

I am using the Batch API to create embeddings. Everything works fine with an API key that has All permissions enabled in the developer console. However if I try to use a Restricted API key with the Embeddings and Files permissions granted, I get an error when I call the batch API: You have insufficient permissions for this operation. Missing scopes: "api.batch.write"

There is no way I found on the UI to grant this scope to an API key. My only option is to use a key without restrictions.

Hi and welcome to the community!

We have seen similar reports here before. Can you try creating a key with all permissions first, and then remove all permissions except the one you actually need?

I tried it. Fails with the same missing api.batch.write scope error.

I have informed the team, they are looking into it.

Has there been any progress on this?