Skip to content

Reference

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",
json={
"messaging_product": "whatsapp",
"to": "15551234567",
"type": "text",
"text": {"body": "Hello from Alter"},
},
)
  • Temporary tokens expire after 24 hours. For production, create a System User token in Business Settings.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
messages/sendsendPOST/{api_version}/{phone_number_id}/messages
media/uploadwritePOST/{api_version}/{phone_number_id}/media
media/deletedeleteDELETE/{api_version}/{media_id}
business_profile/getreadGET/{api_version}/{phone_number_id}/whatsapp_business_profile
business_profile/updatewritePOST/{api_version}/{phone_number_id}/whatsapp_business_profile
message_templates/createwritePOST/{api_version}/{waba_id}/message_templates
message_templates/listreadGET/{api_version}/{waba_id}/message_templates
message_templates/deletedeleteDELETE/{api_version}/{waba_id}/message_templates
phone_numbers/listreadGET/{api_version}/{waba_id}/phone_numbers
phone_numbers/registeradminPOST/{api_version}/{phone_number_id}/register
phone_numbers/deregisteradminPOST/{api_version}/{phone_number_id}/deregister
phone_numbers/request_codeadminPOST/{api_version}/{phone_number_id}/request_code
phone_numbers/verify_codeadminPOST/{api_version}/{phone_number_id}/verify_code
subscribed_apps/createadminPOST/{api_version}/{waba_id}/subscribed_apps
subscribed_apps/listreadGET/{api_version}/{waba_id}/subscribed_apps

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.