GET Check Push Status

This endpoint is used to check status of a push campaign. The request method of this call needs to be "GET".

The campaign ID needs to be passed as part of the endpoint URL below. You will receive this ID anytime you create a new campaign using our REST API.

Endpoint URL

https://app.webpushr.com/api/v1/notification/status/id/

Examples

curl -X GET \
-H "webpushrKey: <YOUR REST API KEY>" \
-H "webpushrAuthToken: <YOUR AUTHENTICATION TOKEN>" \
-H "Content-Type: application/json" \
https://app.webpushr.com/api/v1/notification/status/id/117
	$end_point = 'https://app.webpushr.com/api/v1/notification/status/id/117';
	$http_header = array( 
		"Content-Type: Application/Json", 
		"webpushrKey: <YOUR REST API KEY>", 
		"webpushrAuthToken: <YOUR AUTHENTICATION TOKEN>"
	);
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_HTTPHEADER, $http_header);
	curl_setopt($ch, CURLOPT_URL, $end_point );
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	$response = curl_exec($ch);
	echo $response;

Result Format

{
	"notification_status":"Sent",
	"notification_id":"117",
	"count":{
				"total_attempts":"11643",
				"successfully_sent":"11528",
				"failed_to_send":"115",
				"delivered":"7672",
				"clicked":"95",
				"closed":"2051"
				}
}
{
    "status": "failure",
    "type" : "header_invalid",
    "description": "Missing webpushrKey in header"
}
{
    "status": "failure",
    "type" : "bad_request",
    "description": "Invalid JSON request"
}
{
    "status": "failure",
    "type" : "authentication_failure",
    "description": "You are not authorized"
}
{
    "status": "failure",
    "type" : "rate_limit",
    "description": "Too many requests"
}
{
    "status": "failure",
    "description": "Something went wrong. Please try again after some time"
}
{
    "status": "failure",
    "type": "invalid_value",
    "description": "Invalid notification ID"
}