WasenderApi - Low Cost WhatsApp API for Developers How to Authenticate API Requests Using Bearer Tokens - API Documentation - WasenderApi - Low Cost WhatsApp API for Developers
WasenderApi API

API Documentation

WasenderApi WhatsApp API

How to Authenticate API Requests Using Bearer Tokens

Authentication

This guide explains how to authenticate API requests using a Bearer Token, generated after connecting your WhatsApp session through the Session Management screen.

Authentication

All WasenderAPI endpoints are secured and require authentication via an API Key. This API key is automatically generated when you create or restore a session from the Session Management screen.

Obtaining Your API Key

Once your WhatsApp session is connected, a unique API Key will be available. This API Key must be included in the Authorization header for every API request.

Authorization Header Format

Authorization: Bearer token  YOUR_SESSION_API_KEY

Replace YOUR_SESSION_API_KEY with the API key you received from the session screen.

ℹ️ API Keys are tied to a specific session. If the session is deleted, the key becomes invalid.

Keep your API Key private. Avoid exposing it in public repositories or frontend code.

Parameters

NameTypeRequiredDescription
AuthorizationstringYesBearer token obtained after session connection. Format: Bearer YOUR_SESSION_API_JEY

Response Examples

{
 "success": false,
 "message": "API key is required"
}