Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.alterauth.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Use WhatsApp Business credentials to make authenticated API calls through Alter Vault without exposing your API keys in code.
PropertyValue
Provider IDwhatsapp-business
CategoryCommunication
Credential TypeBearer Token

Step 1: Get Your Credentials

1

Log in to Meta for Developers

Log in to Meta for Developers at developers.facebook.com/apps/.
2

Select your app

Select your app (or create one with WhatsApp product).
3

Go to WhatsApp → API Setup

Go to WhatsApp → API Setup in the left sidebar.
4

Generate an access token

Generate a temporary access token or create a system user token for production.
5

Copy your access token

Copy the access token.
Never share your credentials publicly. Store them securely and only enter them in the Alter Vault Developer Portal.

Step 2: Add to Alter Vault

1

Open the Developer Portal

Go to portal.alterauth.com and navigate to your app.
2

Add WhatsApp Business

Go to Managed Secrets > Add Provider > WhatsApp Business.
3

Enter your credentials

Paste your Access Token into the credential field.
4

Save

Click Save. You’ll receive a grant_id to use with the SDK.

Using in Code

response = await vault.request(
    HttpMethod.POST,
    "https://graph.facebook.com/YOUR_API_VERSION/YOUR_PHONE_NUMBER_ID/messages",
    grant_id="YOUR_GRANT_ID",
)

Notes

  • Temporary tokens expire after 24 hours. For production, create a System User token in Business Settings.