Co-Existence - Closed Beta Phase - Enable for Onboarding APIs
Co-existence allows you to connect your existing WhatsApp Business App number to Gupshup.
The below API will help to enable API app level which is recommended when using Gupshup Onboarding APIs.
Request
curl --location --request PUT 'https://partner.gupshup.io/partner/app/:appId/config' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/json' \
--data '{
"coexistenceEnabled" : true
}'Params
| Key | Description | Constraints |
|---|---|---|
| Headers | ||
| PARTNER_APP_TOKEN | Partner app access token issued post partner login | Should be a valid Partner app access token belonging to the passed app ID |
| Request Params | ||
| coexistenceEnabled | Co Existence flag | Boolean. Value - true / false |
| Path Params | ||
| appId | App ID for the app | Valid app ID |
Response
Status Code | Response | Comments |
|---|---|---|
Success | ||
200 | "status": "success" | Successfully updated config |
Error | ||
400 | "status":"error", "messagedata":"Specific to API" | Error with respect to API |
401 | "status":"error", "message":"Unauthorized Access" | When authentication fails |
429 | Too Many Requests | When rate limit is hit |
500 | "status": "error", "message": "Internal Server Error" | For any Internal Error |