Skip to content

Nest phone numbers inside their parent WhatsApp Business Accounts in MetaOptions#387

Merged
kzu merged 1 commit intomainfrom
dev/accounts
Apr 13, 2026
Merged

Nest phone numbers inside their parent WhatsApp Business Accounts in MetaOptions#387
kzu merged 1 commit intomainfrom
dev/accounts

Conversation

@kzu
Copy link
Copy Markdown
Member

@kzu kzu commented Apr 13, 2026

This provides a more intuitive configuration and more easily allows multi-tenancy. VerifyToken also moved down to the specific Account.

New config shape:
Meta:Accounts:{accountId}:Token =
Meta:Accounts:{accountId}:PrivateKey = # optional, for Flows
Meta:Accounts:{accountId}:Numbers:0 =

Removes the flat Meta:Numbers and root Meta:PrivateKey; the token for a given phone number ID is found by iterating account entries.

Flow data decryption strategy:

  • If the webhook URL includes /{accountId}, use that account's key
  • Otherwise, try all configured account keys until one decrypts

Azure Functions: two [Function] methods per route (optional params unsupported)
ASP.NET Core: single handler with optional accountId parameter on both routes

…MetaOptions

This provides a more intuitive configuration and more easily allows multi-tenancy. VerifyToken also moved down to the specific Account.

New config shape:
  Meta:Accounts:{accountId}:Token = <bearer-token>
  Meta:Accounts:{accountId}:PrivateKey = <PEM key>    # optional, for Flows
  Meta:Accounts:{accountId}:Numbers:0 = <numberId>

Removes the flat Meta:Numbers and root Meta:PrivateKey; the token
for a given phone number ID is found by iterating account entries.

Flow data decryption strategy:
- If the webhook URL includes /{accountId}, use that account's key
- Otherwise, try all configured account keys until one decrypts

Azure Functions: two [Function] methods per route (optional params unsupported)
ASP.NET Core: single handler with optional accountId parameter on both routes
@kzu kzu added the enhancement New feature or request label Apr 13, 2026
@kzu
Copy link
Copy Markdown
Member Author

kzu commented Apr 13, 2026

194 passed 194 passed 22 skipped

🧪 Details on Ubuntu 24.04.4 LTS

from retest v1.1.0 on .NET 10.0.5 with 💜 by @devlooped

@kzu kzu merged commit 697f082 into main Apr 13, 2026
4 checks passed
@kzu kzu deleted the dev/accounts branch April 13, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant