post
https://partner.gupshup.io/partner/bizgate/partner//tpp/app
Creates a WhatsApp app for the partner in the wallet named by walletName, embeds the WABA and phone, and sets the subscription URL (subscriptionUrl) when given.
Request parameters
Path parameters
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| partnerId | Identifier of the partner account. Must be the partner the token authenticates. | 13824 | Integer | Required |
Body
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| name | Name for the new app. Must be unique across the partner's apps. | northwind-support | — | Required |
| wabaId | WhatsApp Business Account id returned by the Embedded Signup. | 104857600123456 | — | Required |
| phone | Phone number registered in the Embedded Signup, in international format. A leading +, spaces, dashes and underscores are ignored. | +91XXXXXXXX10 | — | Required |
| walletName | Name of one of this partner's own wallets (not a brand/customer wallet), matched case-insensitively. The app's usage is billed to it. | northwind-main | — | Required |
| subscriptionUrl | URL the app's WhatsApp events are sent to. Not set when omitted. | https://hooks.northwind.example/whatsapp | — | Optional |
| storageRegion | Region the app's data is stored in. The app's default when omitted. | IN | — | Optional |
| force | Passed to WhatsApp as the force flag when the phone is embedded. Defaults to false. | false | — | Optional |
Sample cURL — Create a tech-provider onboarded app and make it live.
curl --request POST \
--url 'https://partner.gupshup.io/partner/bizgate/partner/13824/tpp/app' \
--header 'Authorization: Bearer <UT>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name" : "northwind-support",
"wabaId" : "104857600123456",
"phone" : "+91XXXXXXXX10",
"walletName" : "northwind-main",
"subscriptionUrl" : "https://hooks.northwind.example/whatsapp",
"storageRegion" : "IN",
"force" : false
}'Sample success response (200)
{
"status": "success",
"data": {
"appId": "4c6b1d2e-9f3a-4e5b-8c7d-0a1b2c3d4e5f",
"subscriptionUrlSet": true,
"message": null
}
}Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…