---
title: Why does the Authorization header fail even with a valid token?
description: Learn why the Authorization header may fail despite using a valid token, how to correctly format the Bearer token, and common troubleshooting steps to fix API authentication errors in FreJun.
---

[Skip to content](https://knowledge.frejun.com/why-does-the-authorization-header-fail-even-with-a-valid-token#main-content)

![FreJun-4](https://knowledge.frejun.com/hs-fs/hubfs/FreJun-4.png?width=265&height=114&name=FreJun-4.png)

Open main navigation

Close main navigation

- [Go to frejun.com](https://frejun.com/)

[Go to frejun.com](https://frejun.com/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Customer Support](https://knowledge.frejun.com/?hsLang=en)
2. [APIs and SDKs FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en)
3. [FreJun SDK – Edge Case FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#frejun-sdk-edge-case-faqs)

# Why does the Authorization header fail even with a valid token?

## A quick guide to fixing Authorization header errors by correctly using the Bearer token format and avoiding common API authentication mistakes.

Many API requests fail even when the access token is valid because the Authorization header is not formatted correctly. The most common issue is missing the **“Bearer” prefix** before the token. This article explains the correct structure of the Authorization header and how to troubleshoot authentication failures in FreJun APIs.

The token must be prefixed with `Bearer` . Example: `Authorization: Bearer <access_token>`.

 

If you have any more questions or need assistance, feel free to reach out to us at Hello@frejun.com. We’re here to help!

🚀 **New to FreJun?** Create your account: https://product.frejun.com/signup

- [Support FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#main-content)

    - [Dashboard FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#dashboard-faqs)
    - [Call Logs FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#call-logs-faqs)
    - [Contact List FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#contact-list-faqs)
    - [Campaigns FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#campaigns-faqs)
    - [Autodial FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#autodial-faqs)
    - [Surveys FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#surveys-faqs)
    - [Users and Teams FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#users-and-teams-faqs)
    - [User Management Access FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#user-management-access-faqs)
    - [Settings FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#settings-faqs)
    - [Chrome Extension FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#chrome-extension-faqs)
    - [Mobile App FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#mobile-app-faqs)
    - [Virtual Numbers FAQs](https://knowledge.frejun.com/support-faqs?hsLang=en#virtual-numbers-faqs)
- [General Queries FAQs](https://knowledge.frejun.com/general-queries-faqs?hsLang=en)
- [Sales FAQs](https://knowledge.frejun.com/sales-faqs?hsLang=en#main-content)

    - [Trial FAQs](https://knowledge.frejun.com/sales-faqs?hsLang=en#trial-faqs)
    - [Plans & Pricing FAQs](https://knowledge.frejun.com/sales-faqs?hsLang=en#plans-pricing-faqs)
    - [Virtual number FAQs](https://knowledge.frejun.com/sales-faqs?hsLang=en#virtual-number-faqs)
    - [UAE calling FAQs](https://knowledge.frejun.com/sales-faqs?hsLang=en#uae-calling-faqs)
    - [AI Insights FAQs](https://knowledge.frejun.com/sales-faqs?hsLang=en#ai-insights-faqs)
    - [SMS & MMS FAQs](https://knowledge.frejun.com/sales-faqs?hsLang=en#sms-mms-faqs)
- [Troubleshooting FAQs](https://knowledge.frejun.com/troubleshooting-faqs?hsLang=en)
- [Usage Policies](https://knowledge.frejun.com/usage-policies?hsLang=en)
- [Integration FAQs](https://knowledge.frejun.com/integration-faqs?hsLang=en#main-content)

    - [Hubspot Integration FAQs](https://knowledge.frejun.com/integration-faqs?hsLang=en#hubspot-integration-faqs)
    - [Pipedrive Integration FAQs](https://knowledge.frejun.com/integration-faqs?hsLang=en#pipedrive-integration-faqs)
    - [Salesforce Integration FAQs](https://knowledge.frejun.com/integration-faqs?hsLang=en#salesforce-integration-faqs)
    - [Deskera Integration FAQs](https://knowledge.frejun.com/integration-faqs?hsLang=en#deskera-integration-faqs)
    - [Dynamic 365 Integration FAQs](https://knowledge.frejun.com/integration-faqs?hsLang=en#dynamic-365-integration-faqs)
    - [Zoho Integration FAQs](https://knowledge.frejun.com/integration-faqs?hsLang=en#zoho-integration-faqs)
    - [LeadSquare Integration FAQs](https://knowledge.frejun.com/integration-faqs?hsLang=en#leadsquare-integration-faqs)
    - [Freshworks Integration FAQs](https://knowledge.frejun.com/integration-faqs?hsLang=en#freshworks-integration-faqs)
- [Virtual Numbers](https://knowledge.frejun.com/virtual-numbers?hsLang=en#main-content)

    - [Indian Virtual number](https://knowledge.frejun.com/virtual-numbers?hsLang=en#indian-virtual-number)
    - [Virtual Numbers :- Singapore/Australia/New Zealand](https://knowledge.frejun.com/virtual-numbers?hsLang=en#virtual-numbers-singapore-australia-new-zealand)
    - [UAE Virtual Number](https://knowledge.frejun.com/virtual-numbers?hsLang=en#uae-virtual-number)
    - [Virtual Number- Others](https://knowledge.frejun.com/virtual-numbers?hsLang=en#virtual-number-others)
    - [US Messaging and 10 DLC](https://knowledge.frejun.com/virtual-numbers?hsLang=en#us-messaging-and-10-dlc)
- [Finance and Billing FAQs](https://knowledge.frejun.com/finance-and-billing-faqs?hsLang=en)
- [APIs and SDKs FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#main-content)

    - [Authentication & API Access FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#authentication-api-access-faqs)
    - [Calling Features FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#calling-features-faqs)
    - [User Management – Detailed FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#user-management-detailed-faqs)
    - [Call Logs & Analytics FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#call-logs-analytics-faqs)
    - [Webhooks FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#webhooks-faqs)
    - [Managing Webhooks FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#managing-webhooks-faqs)
    - [Supported Webhook Events FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#supported-webhook-events-faqs)
    - [Additional Tools FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#additional-tools-faqs)
    - [FreJun Softphone Web SDK – FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#frejun-softphone-web-sdk-faqs)
    - [FreJun SDK – Edge Case FAQs](https://knowledge.frejun.com/apis-and-sdks-faqs?hsLang=en#frejun-sdk-edge-case-faqs)
- [Partners and Resellers FAQs](https://knowledge.frejun.com/partners-and-resellers-faqs?hsLang=en)
- [FreJun Plans and Pricing](https://knowledge.frejun.com/frejun-plans-and-pricing?hsLang=en#main-content)

    - [FreJun Non India Plans and Pricing](https://knowledge.frejun.com/frejun-plans-and-pricing?hsLang=en#frejun-non-india-plans-and-pricing)
    - [FreJun India Plans and Pricing](https://knowledge.frejun.com/frejun-plans-and-pricing?hsLang=en#frejun-india-plans-and-pricing)
    - [FreJun UAE Plans and Pricing](https://knowledge.frejun.com/frejun-plans-and-pricing?hsLang=en#frejun-uae-plans-and-pricing)
    - [FreJun Teler Pricing for India & UAE](https://knowledge.frejun.com/frejun-plans-and-pricing?hsLang=en#frejun-teler-pricing-for-india-uae)
    - [SIP Trunking Pricing](https://knowledge.frejun.com/frejun-plans-and-pricing?hsLang=en#sip-trunking-pricing)
- [WhatsApp Business Integration FAQs](https://knowledge.frejun.com/whatsapp-business-integration-faqs?hsLang=en)
- [IVR FAQs](https://knowledge.frejun.com/ivr-faqs?hsLang=en)
- [Teler FAQs](https://knowledge.frejun.com/teler-faqs?hsLang=en#main-content)

    - [General](https://knowledge.frejun.com/teler-faqs?hsLang=en#general)
    - [Getting Started & SDKs](https://knowledge.frejun.com/teler-faqs?hsLang=en#getting-started-sdks)
    - [Billing & Credits](https://knowledge.frejun.com/teler-faqs?hsLang=en#billing-credits)
    - [Pricing](https://knowledge.frejun.com/teler-faqs?hsLang=en#pricing)
    - [Coverage & Telephony](https://knowledge.frejun.com/teler-faqs?hsLang=en#coverage-telephony)
    - [Security & Compliance](https://knowledge.frejun.com/teler-faqs?hsLang=en#security-compliance)
    - [Roadmap / Upcoming Features](https://knowledge.frejun.com/teler-faqs?hsLang=en#roadmap-upcoming-features)
    - [Developer Support & SLAs](https://knowledge.frejun.com/teler-faqs?hsLang=en#developer-support-slas)
    - [Integration & Extensibility](https://knowledge.frejun.com/teler-faqs?hsLang=en#integration-extensibility)
    - [Migration & Compatibility](https://knowledge.frejun.com/teler-faqs?hsLang=en#migration-compatibility)
- [Gong Integration](https://knowledge.frejun.com/gong-integration?hsLang=en)

[![Chill listening crop-3](https://knowledge.frejun.com/hs-fs/hubfs/FreJun%20Logo.png?width=163&height=34&name=FreJun%20Logo.png "Chill listening crop-3")](http://frejun.com)

Copyright © 2026, FreJun