Sections ▾

GET ​/api​/beacons

Get all Beacons for an App.

  
  curl -X GET "https://app.contexthub.com/api/beacons" \
       -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

{
  "limit": 20,
  "tag": "foo",
  "tag_operator": [
    "ALL",
    "ANY"
  ]
}

Example Parameters

Response

Example Response

[
  {
    "id": 42,
    "name": "Beacon 6",
    "uuid": "AD0A19FF-72AF-4377-8C66-C93604EDAB9E",
    "major": 37,
    "minor": 87,
    "tags": [
      "office"
    ],
    "tag_string": "tag1,tag2,tag3"
  }
]

Response Parameters

Response Codes

Successful Response Codes

Failure Response Codes