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

# Send to an Individual Subscriber

This endpoint is used to send a notification to an individual 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.

# 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": {
    "/web/send": {
      "post": {
        "tags": [
          "web"
        ],
        "summary": "Send to an Individual Subscriber",
        "description": "This endpoint is used to send a notification to an individual 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.",
        "operationId": "webSend",
        "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/webSend"
              }
            }
          },
          "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": {
      "webSend": {
        "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 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 is required"
          },
          "notification_id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique id that is assigned while creating a push notification.Any one from user_id or subscription_id is required"
          },
          "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 55 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": "Call to action url"
          },
          "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 600 * 400 Pixels. Works only for chrome subscribers"
          },
          "mobile_hero_image_url": {
            "type": "string",
            "format": "string",
            "description": "Maximum size for mobile hero image URL must be 512 * 256 Pixels"
          },
          "template": {
            "type": "string",
            "format": "string",
            "description": "1 -> chrome, 2 -> mozilla firefox, 5 -> Safari, 6 -> Microsoft Edge (comma seprated value Ex : 1,2,5)"
          },
          "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_image": {
            "type": "string",
            "format": "string",
            "description": "Action buttons allowed only in chrome version 48 and above"
          },
          "button_one_url": {
            "type": "string",
            "format": "string",
            "description": "Works only for chrome subscribers"
          },
          "button_two_title": {
            "type": "string",
            "format": "string",
            "description": "Allowed only in chrome version 48 and above"
          },
          "button_two_image": {
            "type": "string",
            "format": "string",
            "description": "Action buttons allowed only in chrome version 48 and above"
          },
          "button_two_url": {
            "type": "string",
            "format": "string",
            "description": "Works only for chrome subscribers"
          }
        }
      },
      "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
    }
  }
}
```