Create a new app for a partner

Creates a new WhatsApp app under the given partner account with the supplied name, wallet, and optional phone number.

Request parameters

Path parameters

KeyDescriptionValuesData TypeRequired/Optional
partnerIdIdentifier of the partner account. Must be the partner the token authenticates.13824IntegerRequired

Body

KeyDescriptionValuesData TypeRequired/Optional
nameName for the new app. Must be unique across the partner's apps.acme-support—Required
phonePhone number to onboard, in international format without the plus sign.91XXXXXXXX10—Optional
customerIdCustomer the app belongs to. Taken from the wallet when walletId is supplied.90000123—Optional
walletIdWallet the app's usage is billed to. Must be one of this partner's wallets. Required unless walletName is given; if both are given they must name the same wallet. There is no default-wallet fallback.1234567—Optional
metadataJSON object of app metadata. Include service=whatsapp to provision a WhatsApp app.{"service":"whatsapp"}—Optional
bypassSolutionIdSet true to create the app without attaching the partner's approved solution id.false—Optional
walletNameName of one of this partner's own wallets (not a brand/customer wallet), matched case-insensitively; an alternative to walletId. Required unless walletId is given.acme-main—Optional
businessAccessHow much of a business the app may act for: NONE, PARTIAL or FULL, matched case-insensitively. Optional; defaults to NONE.NONE—Optional

Sample cURL — Create a new app for a partner.

curl --request POST \
  --url 'https://partner.gupshup.io/partner/bizgate/partner/13824/app' \
  --header 'Authorization: Bearer <UT>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "name" : "acme-support",
  "phone" : "91XXXXXXXX10",
  "walletName" : "acme-main",
  "metadata" : "{\"service\":\"whatsapp\"}",
  "businessAccess" : "PARTIAL"
}'

Sample success response (200)

{
  "status": "success",
  "data": {
    "id": "39ebad1e-7eab-4f07-aaee-d454e0cf00ac",
    "name": "AcmeSupport",
    "phone": "91XXXXXXXX10",
    "customerId": "1000123456",
    "walletId": "50000838",
    "live": false,
    "partnerId": 13824,
    "createdOn": 1720203204000,
    "modifiedOn": 1720203204000,
    "partnerCreated": true,
    "cxpEnabled": false,
    "partnerUsage": false,
    "stopped": false,
    "healthy": false,
    "cap": 0.0,
    "businessAccess": "NONE"
  }
}
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required

Identifier of the partner account. Must be the partner the token authenticates.

Body Params

Create a WhatsApp app under the partner

string
required

Name for the new app. Must be unique across the partner's apps.

string

Phone number to onboard, in international format without the plus sign.

string

Customer the app belongs to. Taken from the wallet when walletId is supplied.

string

Wallet the app's usage is billed to. Must be one of this partner's wallets. Required unless walletName is given; if both are given they must name the same wallet. There is no default-wallet fallback.

string

JSON object of app metadata. Include service=whatsapp to provision a WhatsApp app.

string

Set true to create the app without attaching the partner's approved solution id.

string

Name of one of this partner's own wallets (not a brand/customer wallet), matched case-insensitively; an alternative to walletId. Required unless walletId is given.

string
enum

How much of a business the app may act for: NONE, PARTIAL or FULL, matched case-insensitively. Optional; defaults to NONE.

Allowed:
Responses

Language
Credentials
Bearer
Universal Token (UT)
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json