1โœ“
Connect
2โœ“
Phone ID
3โœ“
Token
4โœ“
API Key
Step 1 of 2 ยท Connect

Connect WhatsApp in one click

No developer console required. Just log in with Meta and your number is configured automatically โ€” like magic.

Used as your account identifier. Your API key will be tied to this email.
Step 2 of 4 ยท Meta Developer Console

Find your Phone Number ID

Your Phone Number ID and WhatsApp Business Account (WABA) ID are in the Meta Developer Console โ€” not in WhatsApp itself.

developers.facebook.com โ†’ Your App โ†’ WhatsApp โ†’ API Setup
App Name My Business App
WhatsApp Business Account 2858436544498712 WABA ID โ† copy this
This is your WhatsApp Business Account ID โ€” a long number
Phone Number ID 970776842795623 Phone ID โ† copy this
NOT the same as your phone number โ€” it's a numeric ID
Phone Number +44 20 7946 0123
๐Ÿ“ Where to find it: Go to developers.facebook.com โ†’ select your app โ†’ WhatsApp in left sidebar โ†’ API Setup. Both IDs are shown at the top.
A long numeric ID โ€” looks like 970776842795623. Not your actual phone number.
Also a long numeric ID, found just above Phone Number ID in the console.
Step 3 of 4 ยท Access Token

Generate your access token

Choose how you'll authenticate. If you're just testing, grab a quick 24-hour token. For production, create a permanent System User token.

  • 1In the Meta Developer Console, go to WhatsAppโ†’API Setup
  • 2Under Step 1: Add phone number, click Generate access token
  • 3A temporary token appears โ€” copy it and paste it below. It expires in 24 hours.
โฑ This token expires after 24 hours. Use it for testing, then upgrade to a permanent token when you're ready for production.
  • 1Go to Meta Business Settingsโ†’Usersโ†’System Users
  • 2Click Add, give it a name (e.g. WhatAgent Bot), set role to Admin
  • 3Click Generate new token on that system user
  • 4Select your WhatsApp app from the dropdown
  • 5Grant these scopes:
    whatsapp_business_messaging whatsapp_business_management
  • 6Copy the generated token โ€” this one never expires.
โœ… Recommended for production. System user tokens don't expire and aren't tied to a personal Facebook account.
Starts with EAA. Paste the full token, including the prefix.
Step 4 of 4 ยท Connect to WhatAgent

Connect your number

First, get a WhatAgent API key โ€” then we'll wire everything together in one click.

or paste an existing key
Already have a key? Paste it here and skip registration.
Connect command โ€” auto-filled with your values
curl -X POST https://api.whatagent.dev/v1/accounts \ -H 'Authorization: Bearer wha_your_api_key' \ -H 'Content-Type: application/json' \ -d '{ "phone_number_id": "YOUR_PHONE_NUMBER_ID", "waba_id": "YOUR_WABA_ID", "access_token": "YOUR_ACCESS_TOKEN" }'
๐ŸŽ‰

You're live.

Your WhatsApp number is connected to WhatAgent and ready to send messages.

โœ… +44 20 7946 0123 connected

Send your first message

curl -X POST https://api.whatagent.dev/v1/messages \ -H 'Authorization: Bearer wha_...' \ -H 'Content-Type: application/json' \ -d '{ "to": "+14155552671", "text": "Hello from WhatAgent! ๐Ÿš€" }'