Skip to content

Managed secret providers

WhatsApp Business

Connect WhatsApp Business to Alter Vault for secure API access

Use WhatsApp Business credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDwhatsapp-business
CategoryCommunication
Credential TypeBearer Token

Log in to Meta for Developers

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

Select the application

Select the application (or create one with WhatsApp product).

Go to WhatsApp → API Setup

Go to WhatsApp → API Setup in the left sidebar.

Generate an access token

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

Copy your access token

Copy the access token.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add WhatsApp Business

Go to Managed Secrets > Add Provider > WhatsApp Business.

Enter credentials

Paste your Access Token into the credential field.

Save

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

response = await alter_app.request(
HttpMethod.POST,
"https://graph.facebook.com/YOUR_API_VERSION/YOUR_PHONE_NUMBER_ID/messages",
grant_id="YOUR_GRANT_ID",
)
  • Temporary tokens expire after 24 hours. For production, create a System User token in Business Settings.