Skip to main content

[GET] - List All Subscriptions

  • Updated

Use this API allows to view all notification subscriptions. 

Endpoint

GET https://api.insideview.com/api/v1/subscriptions

Request

HTTP Headers

Header Name Type Required Description
accessToken String Yes

Valid access token.
See Authentication and Authorization Overview for more details.

Accept String No Selects the response's content type.  
Valid values are application/json and application/xml (default)

Responses

HTTP 200

Type: application/json

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "/",
  "type": "object",
  "properties": {
    "subscriptions": {
      "id": "subscriptions",
      "type": "array",
      "items": {
        "id": "0",
        "type": "object",
        "properties": {
          "subscriptionType": {
            "id": "subscriptionType",
            "type": "string"
          },
           "subscriptionId": {
            "id": "subscriptionId",
            "type": "string"
          },
           "name": {
            "id": "name",
            "type": "string"
          },
          "description": {
            "id": "description",
            "type": "string"
          }
        }
      }
    }
  }
}

Example

{
  "subscriptions": [
    {
      "name": "Sub1",
      "description": "DESC",
      "subscriptionType": "company",
      "subscriptionId": "v7rc53mab1rlnh78fgsb"
    },
    {
      "subscriptionType": "companynews",
      "subscriptionId": "j8ovn57m01upo3nf5df7"
    },
  ]
}

Type: application/xml