Problem type
Wrong environment
- Code
wrong_environment- HTTP status
- 401 Unauthorized
- Retry
- Only after a fix
type
https://api.tobie.team/problems/wrong_environmentWhat it means
A test key was sent to the live API, or a live key to a test environment.
Common causes
- A
tobie_sk_test_key was used againsthttps://api.tobie.team. - A
tobie_sk_live_key was used against a test or preview deployment.
What to do
Use the key that matches the environment. Live keys start with tobie_sk_live_ and test keys with tobie_sk_test_.
Retry: only after a fix. The same request fails the same way until you change the request, the credential or the resource.
This response also carries WWW-Authenticate, which says how to authenticate and where the sign-in metadata lives.
Over MCP, the same failure is a tool result with isError: true, the code wrong_environment and retryable: false.
Example
A response body for this problem. The detail and instance vary with the request.
application/problem+json
{
"type": "https://api.tobie.team/problems/wrong_environment",
"title": "Wrong environment",
"status": 401,
"detail": "A test key cannot be used against the live API",
"code": "wrong_environment",
"instance": "/v1/tasks",
"requestId": "01JC0S7Z5F3X9QK2M4N6P8R0TV"
}