---
agentTools:
  projectIndex: https://docs.nvecta.com/llms.txt
---

# Send to Bulk Subscriber

This endpoint is used to send a notification to bulk subscriber on the basis of subscriberID or userID. The title, message, url of the notification and the subscriberID or userID of the individual subscriber have to be sent as POST parameters to the API endpoint.NotificationID is required and notification data like title, message, notification url etc will override if you pass this parameters in post api otherwise it will take data from notification Panel.
  > `Max 1000 messages allowed in one request`

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "<h2>This Push REST API can be used to :</h2> <p>Send notification to all subscribers/a list of subscribers/subscribers belonging to a particular segment, or even an individual subscriber</p>\n<p>Add or remove subscribers to/from segments.</p>\n<p>All requests to the API will be authenticated by an authentication token in a request header, as explained in the next section.</p>",
    "version": "1.0.0",
    "title": "Push Notification API",
    "termsOfService": "http://swagger.io/terms/",
    "contact": {
      "email": "info@notifyvisitors.com"
    }
  },
  "paths": {
    "/android/send/bulk": {
      "post": {
        "tags": [
          "android"
        ],
        "summary": "Send to Bulk Subscriber",
        "description": "This endpoint is used to send a notification to bulk subscriber on the basis of subscriberID or userID. The title, message, url of the notification and the subscriberID or userID of the individual subscriber have to be sent as POST parameters to the API endpoint.NotificationID is required and notification data like title, message, notification url etc will override if you pass this parameters in post api otherwise it will take data from notification Panel.\n  > `Max 1000 messages allowed in one request`",
        "operationId": "androidBulk",
        "parameters": [
          {
            "name": "x-brand-id",
            "in": "header",
            "description": "Brand id of notifyvisitors account",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "description": "Api key of notifyvisitors",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/androidBulk"
              }
            }
          },
          "description": "Body Parameter",
          "required": true
        },
        "responses": {
          "200": {
            "description": "status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inline_response_200"
                }
              }
            }
          },
          "400": {
            "description": "status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inline_response_400"
                }
              }
            }
          },
          "401": {
            "description": "status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inline_response_401"
                }
              }
            }
          },
          "403": {
            "description": "status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inline_response_403"
                }
              }
            }
          },
          "500": {
            "description": "status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inline_response_500"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://push.notifyvisitors.com/api/v1"
    }
  ],
  "components": {
    "schemas": {
      "androidSend": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string",
            "format": "string",
            "description": "Unique identification id of the user / Unique id of the user when user subscribed for the push notification.Any one from user_id or subscription_id or android_id is required"
          },
          "subscription_id": {
            "type": "string",
            "format": "string",
            "description": "Push Subscription id of the user generated when user subscribed for the push notification.Any one from user_id or subscription_id or android_id is required"
          },
          "android_id": {
            "type": "string",
            "format": "string",
            "description": "Android id of the user's device from where the user has subscribed for the push notification. Any one from user_id or subscription_id or android_id is required"
          },
          "notification_id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique id that is assigned while creating a push notification"
          },
          "tag": {
            "type": "string",
            "format": "string",
            "description": "Tags are assigned to the users to segment them on the basis of specific factors"
          },
          "time": {
            "type": "integer",
            "format": "int64",
            "description": "Send notification after x no of seconds"
          },
          "title": {
            "type": "string",
            "format": "string",
            "description": "Maximum character limit for the title must be 70 characters"
          },
          "message": {
            "type": "string",
            "format": "string",
            "description": " Maximum character limit for the push notification message should be 130 characters"
          },
          "url": {
            "type": "string",
            "format": "string",
            "description": "0 -> Android Activity, 1 -> Url, 2 -> Package Name, 3 -> Share, 4 -> Call"
          },
          "target": {
            "type": "string",
            "format": "string",
            "description": "Target users while sending push notifications on the basis of their source and location (0 -> Navigate in App , 1 -> Navigate to Webpage , 2 -> Navigate to Third party App, 3 -> Share, 4 -> Call)."
          },
          "image_url": {
            "type": "string",
            "format": "string",
            "description": "Image URL must be on HTTPs. Image URL size must be 200 * 200 Pixels"
          },
          "hero_image_url": {
            "type": "string",
            "format": "string",
            "description": "URL needs to be on HTTPs. Hero image URL size must be 512 * 256 Pixels. Works only for chrome subscribers"
          },
          "summary": {
            "type": "string",
            "format": "string",
            "description": "An overview of the sent notifications"
          },
          "button_one_title": {
            "type": "string",
            "format": "string",
            "description": "Maximum Length of the call-to-action button must be 12 characters. Works only for chrome subscribers"
          },
          "button_one_url": {
            "type": "string",
            "format": "string",
            "description": "0 -> Android Activity, 1 -> Url, 2 -> Package Name, 3 -> Share, 4 -> Call , 5 -> Remind me Later (Seconds)"
          },
          "button_one_target": {
            "type": "string",
            "format": "string",
            "description": "0 -> Navigate in App , 1 -> Navigate to Webpage , 2 -> Navigate to Third party App, 3 -> Share, 4 -> Call, 5 -> snooze"
          },
          "button_two_title": {
            "type": "string",
            "format": "string",
            "description": "Allowed only in chrome version 48 and above"
          },
          "button_two_url": {
            "type": "string",
            "format": "string",
            "description": "0 -> Android Activity, 1 -> Url, 2 -> Package Name, 3 -> Share, 4 -> Call , 5 -> Remind me Later (Seconds)"
          },
          "button_two_target": {
            "type": "string",
            "format": "string",
            "description": "0 -> Navigate in App , 1 -> Navigate to Webpage , 2 -> Navigate to Third party App, 3 -> Share, 4 -> Call, 5 -> snooze"
          }
        }
      },
      "androidBulk": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/androidSend"
        }
      },
      "inline_response_200": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Success",
            "description": "Success"
          },
          "status": {
            "type": "number",
            "example": 200,
            "description": "200"
          }
        }
      },
      "inline_response_400": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Bad Request",
            "description": "Bad Request"
          },
          "status": {
            "type": "number",
            "example": 400,
            "description": "400"
          }
        }
      },
      "inline_response_401": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Invalid Data",
            "description": "Invalid Data"
          },
          "status": {
            "type": "number",
            "example": 401,
            "description": "401"
          }
        }
      },
      "inline_response_403": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Require Parameters Missing",
            "description": "Require Parameters Missing"
          },
          "status": {
            "type": "number",
            "example": 403,
            "description": "403"
          }
        }
      },
      "inline_response_500": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Something Went Wrong",
            "description": "Something Went Wrong"
          },
          "status": {
            "type": "number",
            "example": 500,
            "description": "500"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true,
    "samples-languages": [
      "curl",
      "node",
      "ruby",
      "javascript",
      "python"
    ]
  },
  "_id": {
    "buffer": {
      "0": 95,
      "1": 60,
      "2": 219,
      "3": 215,
      "4": 188,
      "5": 141,
      "6": 101,
      "7": 3,
      "8": 11,
      "9": 46,
      "10": 149,
      "11": 191
    }
  }
}
```