Documentation Index

Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt

Use this file to discover all available pages before exploring further.

Delete Single Web Pushes

Prev Next

Insider One's Web Push API allows you to delete Single Web Push notifications from your back-end without using the InOne panel.

Endpoint and Headers

DELETE https://web-push.api.useinsider.com/v1/single/campaign_id

Visit our Postman collection to test this request.

Headers

Header

Sample Value

Description

Authorization

Bearer 1a2b3c4d5e6f

This key is required to authorize your request. Refer to API Authentication Tokens to generate your token.

Content-Type

application/json

This header specifies the media type of the resource.

Body Parameters

Parameter

Description

Data Type

Required

partner_id

This is your partner identification number, which is available in Inone Settings > Account Settings.

String

Yes

Sample Request

The sample below displays a request to delete a Single Web Push campaign.

Before sending the request, make sure:

  • To replace the authorization value with your  API key.

  • To add your partner ID in partner_id.

When you send the request, you will receive a campaign_id in the response. This campaign_id is used to launch or delete the campaign.

When you send this request, the campaign identified by the provided campaign_id will be permanently deleted from the system.

curl --location --request DELETE 'https://web-push.api.useinsider.com/v1/single/campaign_id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1a2b3c4d5e6f' \
--data-raw '{
  "partner_id": "100000001",
}'

Sample Responses

200 OK

You can see this kind of response when you successfully delete your campaign.

{
  "success": true,
  "campaign_id": 1697300275
}

401 Unauthorized

{
"message": "Unauthorized"
}

424 Failed Dependency

{
  "message": "SERVICE:-"
}

Error Codes

  • 400 Bad Request

  • 401 Unauthorized Request

  • 424 Failed Dependency

  • 429 Request limit exceeded

Limitations

  • All functions must be executed with an HTTPS DELETE request.

  • The API key should be provided as the authorization key in the request header. If the key is incorrect, the operation will not be executed, and an authorization error will return in the response.

  • The rate limit is 30 requests per minute.

The default limit shown here is a standard baseline. If your use case requires higher capacity, feel free to reach out to the Insider One team — we can adjust it to fit your needs.