Sections ▾

GET ​/api​/subscriptions

Gets the subscriptions that this device is interested in. The current device will get notified when a beacon, geo fence, or vault tagged with one of the tags that this device has subscribed to changes.

  
  curl -X GET "https://app.contexthub.com/api/subscriptions" \
       -H "Content-Type: application/json" \
       -H "CONTEXTHUB_DEVICE_ID: DB4E6157-D64F-43EE-B114-39A13D2B9BC7" \
       -H "Authorization: Token token=\"534e565f-335a-469d-974e-e18a85f00d2d\"" \
       -v \
  

Request

Example Request

{
}

Example Parameters

Response

Example Response

[
  {
    "GeofenceSubscription": {
      "tags": [
        "foo"
      ]
    },
    "VaultSubscription": {
      "tags": [
        "foo"
      ]
    },
    "BeaconSubscription": {
      "tags": [
        "foo"
      ]
    },
    "DeviceSubscription": {
      "tags": [
        "foo"
      ]
    }
  }
]

Response Parameters

Response Codes

Successful Response Codes

Failure Response Codes