Sections ▾

Context Hub REST API

Build contextual capabilities into your applications with just a few lines of code.

Authentication

All endpoints require authentication. API requests are authenticated by sending your app uuid, and device id in the headers.
You can get your app uuid off the ContextHub Developer Portal page.

Example headers:

  Authorization: Token token="dead16e-757f-461d-978e-21cbeeee3cd2"
  CONTEXTHUB_DEVICE_ID: A891CAC7-978E-4693-DEAD-4D6E4138E3B2

Sample Request

curl -H 'Authorization: Token token="49f76a62-013a-4bfb-870d-ed04d040254e"' -H "CONTEXTHUB_DEVICE_ID: A891CAC7-978E-4693-DEAD-4D6E4138E3B2" https://app.contexthub.com/api/manifest

API Versioning

You can specify a particular version of the api to use by setting an Accept header. If the Accept header is not sent,
the lastest version of the api will be used.

Example header:

Accept: application/vnd.contexthub.v1

Current API Versions

beacons

devices

events

geofences

logs

manifest

push_notifications

subscriptions

triggers

vaults