Troubleshooting
What to do when your AI app says 401, an API isn't connected, a call waits for approval, or a key reached its daily limit.
My AI app says 401 or Unauthorized
The MCP server didn't accept the access key. Usually it's one of these:
- The header is missing or mistyped. It must be exactly Authorization: Bearer followed by your key, with a space after Bearer.
- Part of the key was cut off when pasting. Make a new key and paste it again.
- The key was turned off, or its end date has passed. Check it in Developers > API keys; make a new one if so.
- The URL is for a different workspace than the key. Use the URL Home shows for the workspace you made the key in.
After fixing it, restart the app or reconnect the server (for example /mcp in Claude Code).
"There's no key saved for this API" or "isn't connected"
Your AI reached programmable.run, but there's no key saved for the API it called (NO_CREDENTIALS), or your account for it isn't connected (OAUTH_NOT_CONNECTED). Open the API in the app and save its key, then ask again.
A call is waiting for approval
That's the key's rules working: the call changes data, and the rule for it is Asks you (APPROVAL_REQUIRED). Nothing ran. Open the link your AI gave you, or Approvals in the app, and approve or deny. After you approve, ask your AI to try again.
If you'd rather a kind of call never waits, change that key's rule to Runs in Developers > API keys.
"The key's rules don't allow this kind of call"
The rule for that kind of call is Blocked (deletes are, on a new key). Change it in Developers > API keys if you want to allow it.
"The key's daily limit was reached"
That key has made as many calls today as its daily limit allows (DAILY_CAP_REACHED), so nothing ran. Calls work again the next day, or raise the limit in Developers > API keys.
Seeing what happened
Every call is in Developers > Logs, with why it didn't run or failed, in plain words. Open a call for its details and error code.