api_key_header_mismatch
HTTP Status: 401 Category: Authentication
When you see this
Caller sent Authorization: Bearer instead of X-API-Key.
How to fix it
Resend the same token under X-API-Key: sk_live_<token>. The Media Agency API uses a custom header, not Bearer auth.
Example response
{
"error": {
"code": "api_key_header_mismatch",
"message": "Caller sent Authorization: Bearer instead of X-API-Key.",
"hint": null,
"doc_url": "https://docs.valara.cloud/api-reference/errors/api_key_header_mismatch",
"request_id": "req_01H...",
"details": {
"errors": [],
"field_count": 0
}
}
}