HTTP status 403. An API key request can get this code.
API keys cannot call this route. You manage it in the Affinity app.
Recovery
Make the change in the app, for example API keys in Settings → API or members in Settings → Members.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.