put https://partner.gupshup.io/partner/app//callbackUrl
Use this API to set callback URL for your Gupshup App
Attention
This guide is no longer maintained from 31st Jan 2025. Please refer the updated one here.
Once set you will get DLR events on that callback URL.
Parameters
Parameters | Value | Description |
---|---|---|
Authorization | {{PARTNER_APP_TOKEN}} | Access Token for the application |
appId | {{APP_ID}} | Unique Identifier for Gupshup App |
callbackUrl | {{Callback_URL}} | Learn how you can successfully set a callback URL for an app. |
Sample Request
curl --location --request PUT 'https://partner.gupshup.io/partner/app/{{APP_ID}}/callbackUrl' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'callbackUrl={{CALLBACK_URL}}'
Sample Response
{
"status": "success"
}
Status Codes
Status Code | Response | Comments |
---|---|---|
Success | ||
200 | { "status": "success" } | |
Error | ||
429 | { "status": "error", "message": "Too Many Requests" } | 10 Requests per Minute |
500 | { "status": "error", "message": "Error updating callback URL" } | For any Internal Error |