Skip to main content
GET
/
csr
/
data
List cloud messages
curl --request GET \
  --url https://dashboard.hologram.io/api/1/csr/data \
  --header 'Authorization: Basic <encoded-value>'
import requests

url = "https://dashboard.hologram.io/api/1/csr/data"

headers = {"Authorization": "Basic <encoded-value>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};

fetch('https://dashboard.hologram.io/api/1/csr/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
const url = 'https://dashboard.hologram.io/api/1/csr/data';
const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));
{
  "success": true,
  "limit": 123,
  "size": 123,
  "continues": true,
  "lastid": 123,
  "links": {
    "path": "<string>",
    "base": "<string>",
    "next": "<string>"
  },
  "data": [
    {
      "id": 123,
      "logged": "<string>",
      "expires": "<string>",
      "orgid": 123,
      "deviceid": 123,
      "record_id": "<string>",
      "device_metadata": "<string>",
      "data": "<string>",
      "tags": [
        "<string>"
      ],
      "matched_rules": [
        {
          "ruleid": 123,
          "error": true,
          "result_data": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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.

Query Parameters

deviceid
integer

Filter by device ID

deviceids
string

Comma-separated list of device IDs to filter by

timestart
integer

Filter messages logged after this timestamp (Unix epoch)

timeend
integer

Filter messages logged before this timestamp (Unix epoch)

topicname
string

Filter by a single topic name

topicnames
string

Filter by multiple topic names (comma-separated)

limit
integer

Maximum number of results to return

startafter
integer

Return results after the record with this ID (cursor-based pagination)

Response

OK

success
boolean

Indicates whether the request was successful.

Example:

true

limit
integer
size
integer
continues
boolean
lastid
integer

ID of the last record returned, for cursor-based pagination

data
object[]