Skip to main content

Integrating Surfact via API

Get started with the Surfact API to access real-time sensor data from Emma Smart Trackers and power smarter logistics decisions.

Updated over 3 weeks ago

TL;DR: Surfactโ€™s API allows you to pull real-time sensor data from Emma Smart Trackers into your own systems. Itโ€™s easy to use, reliable, and designed to make your cold-chain monitoring, temperature compliance and trailer tracking smarter. We support REST, Webhooks and MQTT Fill out the form to get your ClientID and Access Token today.
โ€‹

โ€‹
๐Ÿ““ See our full API Reference: docs.surfact.com

๐Ÿš€ Getting Started with the Surfact API

Surfactโ€™s API gives your product and engineering teams seamless access to real-time and historical data from Emma Smart Trackers. Whether youโ€™re building a dashboard, automating cold-chain compliance, or integrating sensor data into your platform, our API is built to empower data-driven decision-making.


๐ŸŒŸ Why Use the Surfact API?

With a few simple calls, your team can:

  • Gain instant visibility into the condition and location of goods in transit.

  • Power proactive decision-making by integrating temperature, location data and more directly into your systems.

  • Reduce risk by setting up alerts and analytics based on live sensor values.

  • Automate workflows around asset tracking, cold-chain monitoring, and compliance reporting.


๐Ÿ”ง Overview

Here are the most common endpoints youโ€™ll need:

Action

Endpoint

What It Does

๐Ÿ”„ Get last values

GET /devices/{DEVICE_LABEL}

Latest sensor readings from a device

๐Ÿ“ฆ List all devices

GET /devices/

View all devices under your account

๐Ÿ“ Get single device

GET /devices/{DEVICE_LABEL}/

Metadata & data links for a device

๐Ÿ“Š Single variable data

GET /variables/{VARIABLE_ID}/

Metadata + most recent value

๐Ÿ•’ Historical values

GET /variables/{VARIABLE_ID}/values/

Past values of a variable

๐Ÿ“† Values by date range

GET /variables/{VARIABLE_ID}/values/?start=X&end=Y

Time-based filtering

๐Ÿงญ Get latest value

GET /variables/{VARIABLE_ID}/values/latest/

Most recent single value

Each endpoint supports secure access using your API token and returns clean, JSON-formatted responses.


๐Ÿ” Example: Fetch Latest Data from a Device

curl -X GET "https://api.surfact.com/api/v1.6/devices/{DEVICE_LABEL}" \ -H "X-Auth-Token: YOUR_TOKEN" \ -H "Content-Type: application/json"

This call returns the most recent values (e.g., temperature, humidity) from the specified tracker.

Example response:

{
"temperature": {
"value": 23.5,
"timestamp": 1678371834000,
"context": { "unit": "C" },
"created_at": 1678371834179
},
"humidity": {
"value": 56.8,
"timestamp": 1678371834000,
"context": null,
"created_at": 1678371834179
}
}

See further examples in our API docs:


โœ… Contact us today at [email protected] to get your ClientID and access token set up.

By embedding Surfactโ€™s IoT data directly into your systems you unlock:

  • Operational efficiency โ€” fewer manual checks, less downtime.

  • Customer transparency โ€” real-time updates and audit trails.

  • Predictive insights โ€” act before issues escalate.

Did this answer your question?