curl --request GET \
--url https://dashboard.hologram.io/api/1/devices/tags \
--header 'Authorization: Basic <encoded-value>'{
"success": true,
"data": {
"tags": [
{
"name": "East Coast",
"id": 1234,
"deviceids": [
1234567,
1234568
]
},
{
"name": "West Coast",
"id": 1235,
"deviceids": [
1234569
]
},
{
"name": "Southeast",
"id": 1236,
"deviceids": [
1234570,
1234571,
1234572,
1234573,
1234574,
1234575,
1234576,
1234577,
1234578,
1234579
]
},
{
"name": "Europe West",
"id": 1237,
"deviceids": [
1234580
]
},
{
"name": "Europe East",
"id": 1238,
"deviceids": [
1234581,
1234582,
1234583,
1234584,
1234585,
1234586,
1234587,
1234588
]
},
{
"name": "UK",
"id": 1238,
"deviceids": [
1234589,
1827299,
1234591,
1234592,
1234593,
1234594,
1234595,
1234596,
1234597,
1234598,
1234599,
1234600,
1234601
]
},
{
"name": "Canada",
"id": 1239,
"deviceids": [
1234602
]
},
{
"name": "LATAM",
"id": 1240,
"deviceids": [
1234603
]
},
{
"name": "Sensor test v1",
"id": 1241,
"deviceids": [
1234604
]
},
{
"name": "Sensor test v2",
"id": 1242,
"deviceids": [
1234605
]
}
]
}
}Get all tags. If you specify an org, this will only return the tags for the org.
curl --request GET \
--url https://dashboard.hologram.io/api/1/devices/tags \
--header 'Authorization: Basic <encoded-value>'{
"success": true,
"data": {
"tags": [
{
"name": "East Coast",
"id": 1234,
"deviceids": [
1234567,
1234568
]
},
{
"name": "West Coast",
"id": 1235,
"deviceids": [
1234569
]
},
{
"name": "Southeast",
"id": 1236,
"deviceids": [
1234570,
1234571,
1234572,
1234573,
1234574,
1234575,
1234576,
1234577,
1234578,
1234579
]
},
{
"name": "Europe West",
"id": 1237,
"deviceids": [
1234580
]
},
{
"name": "Europe East",
"id": 1238,
"deviceids": [
1234581,
1234582,
1234583,
1234584,
1234585,
1234586,
1234587,
1234588
]
},
{
"name": "UK",
"id": 1238,
"deviceids": [
1234589,
1827299,
1234591,
1234592,
1234593,
1234594,
1234595,
1234596,
1234597,
1234598,
1234599,
1234600,
1234601
]
},
{
"name": "Canada",
"id": 1239,
"deviceids": [
1234602
]
},
{
"name": "LATAM",
"id": 1240,
"deviceids": [
1234603
]
},
{
"name": "Sensor test v1",
"id": 1241,
"deviceids": [
1234604
]
},
{
"name": "Sensor test v2",
"id": 1242,
"deviceids": [
1234605
]
}
]
}
}HTTP Basic authentication using API keys. Set the username to apikey and the password to your API key.
You can find your API key on the Hologram Dashboard under Account Settings.
144
Was this page helpful?