api_key_wrong_mode
HTTP Status: 401 Category: Authentication
When you see this
Sandbox key used on live endpoint, or live key on sandbox.
How to fix it
Use sk_test_<token> for sandbox calls and sk_live_<token> for live traffic. Modes are strictly enforced.
Example response
{
"error": {
"code": "api_key_wrong_mode",
"message": "Sandbox key used on live endpoint, or live key on sandbox.",
"hint": null,
"doc_url": "https://docs.valara.cloud/api-reference/errors/api_key_wrong_mode",
"request_id": "req_01H...",
"details": {
"errors": [],
"field_count": 0
}
}
}