Generating a Meta system-user access token for the WhatsApp Cloud API
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from Meta’s own documentation: WhatsApp Cloud API get-started, Access tokens guide, Facebook Login for Business. Retrieved 2026-07-03.
System-user tokens are the production credential Meta’s Cloud API get-started guide recommends: the temporary token the App Dashboard issues “expires quickly and is not suitable” beyond initial testing, so you “create a permanent token for use across the WhatsApp Business Platform”.
- Create a Business-type app in the Meta App Dashboard, add the WhatsApp product, and connect the app to your Meta business portfolio.
- Open Business settings for that portfolio and go to Users → System users.
- Create a system user (admin role for full asset management, or employee with explicit asset assignments). System-user tokens “let your app perform programmatic, automated actions … without requiring input from an app user or re-authentication”.
- Assign assets to the system user: at minimum the app itself and the WhatsApp Business Account (WABA) it will operate on, with full control or the specific permissions needed.
- Click Generate token, select the app, and choose the token expiry — never-expiring is the documented default for server-to-server use (60 days is the alternative). Non-expiring tokens remain subject to invalidation for other reasons.
- Select the permissions to embed in the token:
whatsapp_business_messaging,whatsapp_business_management, andbusiness_management(the set the Cloud API get-started guide adds for production messaging plus asset management). - Copy the token immediately and store it as a secret — Meta shows it only once.
- Use it as a bearer token on Graph API calls, e.g.
POST https://graph.facebook.com/v23.0/{business-phone-number-id}/messageswithAuthorization: Bearer {access_token}. - Verify it at
GET https://graph.facebook.com/v25.0/debug_token?input_token={token}(authenticated with an app access token): the response confirmsis_valid, grantedscopes, andexpires_at(0 for never-expiring tokens).
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose Meta, and pick Meta system-user access token. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: Meta in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.