Skip to main content

api_key_malformed_length

HTTP Status: 401 Category: Authentication

When you see this

Prefix OK but total key length is outside allowed bounds.

How to fix it

The key looks truncated. Re-copy it from Settings > Developer and ensure no whitespace was lost.

Example response

{
"error": {
"code": "api_key_malformed_length",
"message": "Prefix OK but total key length is outside allowed bounds.",
"hint": null,
"doc_url": "https://docs.valara.cloud/api-reference/errors/api_key_malformed_length",
"request_id": "req_01H...",
"details": {
"errors": [],
"field_count": 0
}
}
}