API

Logger Export (API)

Exporting raw Ceres-tag logger data via the Tauro Cloud API.

Export raw logger data already uploaded from a Ceres tag. Requests do not trigger a new sync from the tag.

Endpoints

MethodPathPurpose
GET/cerestags/{idType}/{id}/logger/exportDownload all available data or an inclusive block range as a .bin file.
GET/cerestags/{idType}/{id}/logger/export/planGet selected block bounds, block count, and byte size before downloading.

The examples below use the development API at https://api.dev.taurocollar.com/v1. Use the API host for your environment and include the /v1 prefix.

See the interactive API documentation for the full schema.

Tag Identifier and Authentication

Both endpoints require idType and id:

idTypeid value
vidThe tag’s VID.
infuseIdThe tag’s Infuse device ID, as a hexadecimal string.
esnThe tag’s ESN.
bluetoothMacAddressThe tag’s Bluetooth MAC address.

Use the identifier exactly as shown in the Dashboard and URL-encode it when inserting it into the path. For example, /cerestags/vid/123456/logger/export selects a tag by VID.

Requests require an API key in the X-API-Key header. See Authentication for creating and using a key.

For the shell examples, set TAURO_API_KEY to your API key and replace 123456 with your tag’s VID.

Download All Available Data

curl --fail --show-error \
  "https://api.dev.taurocollar.com/v1/cerestags/vid/123456/logger/export" \
  -H "X-API-Key: ${TAURO_API_KEY}" \
  --output logger.bin

The response is application/octet-stream, with a suggested filename in Content-Disposition and the byte size in Content-Length. The example saves it as logger.bin.

With no block bounds, this exports the same available data as the Dashboard. Blocks are written in ascending block-number order. Data still waiting to sync is not included.

Download a Block Range

The export endpoint accepts two optional query parameters:

ParameterMeaning
startBlockInclusive first block number. Defaults to the earliest available block.
endBlockInclusive last block number. Defaults to the latest available block.

Both are unsigned 32-bit integers (0 to 4294967295). When both are supplied, startBlock must be less than or equal to endBlock. Bounds refer to block numbers, not timestamps or row counts. Missing block numbers do not create data in the export.

curl --fail --show-error \
  "https://api.dev.taurocollar.com/v1/cerestags/vid/123456/logger/export?startBlock=4000&endBlock=4999" \
  -H "X-API-Key: ${TAURO_API_KEY}" \
  --output logger-range.bin

Plan an Export by Size or Block Count

Call /logger/export/plan to check the available size or select a smaller export. It accepts startBlock and endBlock with the same inclusive meanings, plus:

ParameterMeaning
sizeBlocksMaximum number of available blocks to select; a positive integer. Missing block numbers do not count toward this limit.
sizeBytesMaximum raw byte size; a positive integer. Only whole blocks are selected, so the actual size may be smaller.
startFromstart (default) selects from the beginning of the range; end selects from the end. This only affects selection when a size limit is supplied.

If both size limits are supplied, both apply. With neither size limit, the plan covers all available blocks within the bounds. Omitting the bounds covers all available logger data.

For example, plan an export of up to the latest 1,000 available blocks:

curl --fail --show-error \
  "https://api.dev.taurocollar.com/v1/cerestags/vid/123456/logger/export/plan?sizeBlocks=1000&startFrom=end" \
  -H "X-API-Key: ${TAURO_API_KEY}"

An illustrative response is:

{
  "totalBlocks": 1000,
  "totalBytes": 512000,
  "startBlock": 4000,
  "endBlock": 4999
}

totalBlocks and totalBytes are the actual selected totals. startBlock and endBlock are nullable; only start a download when the plan contains data and both bounds are present.

Pass the returned bounds to /logger/export, as in the block-range example above. sizeBlocks, sizeBytes, and startFrom are plan parameters; they are not supported directly on the download endpoint. Even when selecting from the end, the downloaded blocks are written in ascending order.

Using the Interactive Documentation

  1. Open the API documentation.
  2. Authenticate with apiKeyAuth and your API key.
  3. Select the identifier type and enter the tag identifier.
  4. Optionally set startBlock and endBlock.

Send the export request, then click Download in the response panel to save the binary file.

For size-limited selections, call the plan endpoint first and copy its returned bounds into the export request.

Errors and Decoding

  • 400: invalid request parameters, including a start block greater than the end block.
  • 401: missing or invalid authentication.
  • 404: the tag could not be found or accessed, or no logger data was found for the selection.
  • 500: the service could not complete the export.

The curl examples use --fail so HTTP errors are reported instead of being saved as a successful binary download. Check the command’s exit status and confirm that the download completed before decoding.

Follow Decode the Logger File to convert the raw .bin file into CSV files.