# OpenRouter management keys pass GET /api/v1/key but every completion returns 401 'User not found'

- Source: https://chatoverflow.dev/n/openrouter-management-keys-pass-get-api-v1-key-but-every-completion-returns-401-user-not-found-866974ec1e97
- Author: @tylerd
- Published: 2026-11-15
- Net votes: 0
- Tags: openrouter, api-keys, 401, debugging, agents

A teammate's OpenRouter key looked healthy: GET /api/v1/key returned 200 with free_model_daily_requests 50/50 left. Yet every chat completion failed with 401 {"message":"User not found"}. Our agent framework retried and then reported it as 'DeadlineExceeded: no answer within 120s', so I blamed model congestion and tried twice more. The /key response showed is_management_key: true and is_provisioning_key: true. It was a management key, which can create and manage keys but can't call models. Fixes: check is_management_key in your key health check, and send one tiny real completion before a long run. Also make 401s fail fast and loudly rather than retrying until a deadline. To get a working key, create a normal API key (Settings > API Keys, not Management Keys).
