# Delete alert Source: https://integrations.truecold.io/api-reference/alerts/delete-alert delete /alert/{id} # Delete multiple alerts Source: https://integrations.truecold.io/api-reference/alerts/delete-multiple-alerts delete /alert/many # Get alert by ID Source: https://integrations.truecold.io/api-reference/alerts/get-alert-by-id get /alert/{id} # List alerts Source: https://integrations.truecold.io/api-reference/alerts/list-alerts get /alert # Update alert Source: https://integrations.truecold.io/api-reference/alerts/update-alert put /alert/{id} # Create carrier Source: https://integrations.truecold.io/api-reference/carriers/create-carrier post /carrier # Create multiple carriers Source: https://integrations.truecold.io/api-reference/carriers/create-multiple-carriers post /carrier/many # Delete carrier Source: https://integrations.truecold.io/api-reference/carriers/delete-carrier delete /carrier/{id} # Delete multiple carriers Source: https://integrations.truecold.io/api-reference/carriers/delete-multiple-carriers delete /carrier/many # Get carrier by ID Source: https://integrations.truecold.io/api-reference/carriers/get-carrier-by-id get /carrier/{id} # List carriers Source: https://integrations.truecold.io/api-reference/carriers/list-carriers get /carrier # Update carrier Source: https://integrations.truecold.io/api-reference/carriers/update-carrier put /carrier/{id} # Create delivery Source: https://integrations.truecold.io/api-reference/deliveries/create-delivery post /delivery # Create multiple deliverys Source: https://integrations.truecold.io/api-reference/deliveries/create-multiple-deliverys post /delivery/many # Delete delivery Source: https://integrations.truecold.io/api-reference/deliveries/delete-delivery delete /delivery/{id} # Delete multiple deliverys Source: https://integrations.truecold.io/api-reference/deliveries/delete-multiple-deliverys delete /delivery/many # Get delivery by ID Source: https://integrations.truecold.io/api-reference/deliveries/get-delivery-by-id get /delivery/{id} # List deliverys Source: https://integrations.truecold.io/api-reference/deliveries/list-deliverys get /delivery # Update delivery Source: https://integrations.truecold.io/api-reference/deliveries/update-delivery put /delivery/{id} # Create delivery_item Source: https://integrations.truecold.io/api-reference/delivery-items/create-delivery_item post /delivery_item # Create multiple delivery_items Source: https://integrations.truecold.io/api-reference/delivery-items/create-multiple-delivery_items post /delivery_item/many # Delete delivery_item Source: https://integrations.truecold.io/api-reference/delivery-items/delete-delivery_item delete /delivery_item/{id} # Delete multiple delivery_items Source: https://integrations.truecold.io/api-reference/delivery-items/delete-multiple-delivery_items delete /delivery_item/many # Get delivery_item by ID Source: https://integrations.truecold.io/api-reference/delivery-items/get-delivery_item-by-id get /delivery_item/{id} # List delivery_items Source: https://integrations.truecold.io/api-reference/delivery-items/list-delivery_items get /delivery_item/delivery/{delivery_id} # Update delivery_item Source: https://integrations.truecold.io/api-reference/delivery-items/update-delivery_item put /delivery_item/{id} # Get handling_unit_history by ID Source: https://integrations.truecold.io/api-reference/handling-unit-history/get-handling_unit_history-by-id get /handling_unit_history/{id} # List handling_unit_historys Source: https://integrations.truecold.io/api-reference/handling-unit-history/list-handling_unit_historys get /handling_unit_history/handling_unit/{huid} # Create handling_unit Source: https://integrations.truecold.io/api-reference/handling-units/create-handling_unit post /handling_unit # Create multiple handling_units Source: https://integrations.truecold.io/api-reference/handling-units/create-multiple-handling_units post /handling_unit/many # Delete handling_unit Source: https://integrations.truecold.io/api-reference/handling-units/delete-handling_unit delete /handling_unit/{id} # Delete multiple handling_units Source: https://integrations.truecold.io/api-reference/handling-units/delete-multiple-handling_units delete /handling_unit/many # Get handling_unit by ID Source: https://integrations.truecold.io/api-reference/handling-units/get-handling_unit-by-id get /handling_unit/{id} # List handling_units Source: https://integrations.truecold.io/api-reference/handling-units/list-handling_units get /handling_unit # Update handling_unit Source: https://integrations.truecold.io/api-reference/handling-units/update-handling_unit put /handling_unit/{id} # Create location Source: https://integrations.truecold.io/api-reference/locations/create-location post /location # Create multiple locations Source: https://integrations.truecold.io/api-reference/locations/create-multiple-locations post /location/many # Delete location Source: https://integrations.truecold.io/api-reference/locations/delete-location delete /location/{id} # Delete multiple locations Source: https://integrations.truecold.io/api-reference/locations/delete-multiple-locations delete /location/many # Get location by ID Source: https://integrations.truecold.io/api-reference/locations/get-location-by-id get /location/{id} # List locations Source: https://integrations.truecold.io/api-reference/locations/list-locations get /location # Update location Source: https://integrations.truecold.io/api-reference/locations/update-location put /location/{id} # Create material Source: https://integrations.truecold.io/api-reference/materials/create-material post /material # Create multiple materials Source: https://integrations.truecold.io/api-reference/materials/create-multiple-materials post /material/many # Delete material Source: https://integrations.truecold.io/api-reference/materials/delete-material delete /material/{id} # Delete multiple materials Source: https://integrations.truecold.io/api-reference/materials/delete-multiple-materials delete /material/many # Get material by ID Source: https://integrations.truecold.io/api-reference/materials/get-material-by-id get /material/{id} # List materials Source: https://integrations.truecold.io/api-reference/materials/list-materials get /material # Update material Source: https://integrations.truecold.io/api-reference/materials/update-material put /material/{id} # Quickstart Source: https://integrations.truecold.io/api-reference/quickstart Welcome to the **TrueCold Public API** Quickstart! This guide will help you get started with automating your logistics processes by connecting to TrueCold's API. Whether you're tracking shipments, managing sensors, or streamlining your delivery workflows, this API provides the tools you need. > **Note:** Check the end of this page for asditional resources, testing capabilities, and saved responses. *** ## Example Request Here’s an example of how to fetch your shipments using `curl`: As seen on the Documentation section, make sure to obtain your API key from the TrueCold platform and replace `YOUR_API_KEY` in the example below with your actual API key. ```bash theme={null} curl -X GET "http://localhost:3009/api/v1/shipments" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" ``` **Response:** ```json theme={null} "error": false, "data": [ { "id": "382bc9c0-6a3b-4255-97f4-98e91ceab047", "code": "152670", "account_id": "47dff1b8-f83e-4085-b71f-7223b71101c7", "created_at": "2025-02-10T16:26:12.746Z" } ] ``` *** ## Additional Resources ### Postman Documentation For more detailed documentation, testing capabilities, and pre-saved responses, visit our Postman documentation: [Postman Documentation](https://documenter.getpostman.com/view/39198020/2sAYX3sixE) ### Swagger UI Explore the API schema interactively: [Swagger](https://api.truecold.io/api-docs/) *** Feel free to reach out to our support team if you have any questions or encounter any issues while integrating the API. Happy automating! # Link sensors to delivery Source: https://integrations.truecold.io/api-reference/sensor-links/link-sensor-to-delivery post /sensor_link/link/delivery # Link sensors to handling unit Source: https://integrations.truecold.io/api-reference/sensor-links/link-sensor-to-handling-unit post /sensor_link/link/handling-unit # Link sensors to shipment Source: https://integrations.truecold.io/api-reference/sensor-links/link-sensor-to-shipment post /sensor_link/link/shipment # Pause sensors by deliveries Source: https://integrations.truecold.io/api-reference/sensor-links/pause-sensor-by-deliveries put /sensor_link/pause/deliveries # Pause sensors by handling units Source: https://integrations.truecold.io/api-reference/sensor-links/pause-sensor-by-handling-units put /sensor_link/pause/handling-units # Pause sensors Source: https://integrations.truecold.io/api-reference/sensor-links/pause-sensor-by-sensors put /sensor_link/pause/sensors # Pause sensors by shipments Source: https://integrations.truecold.io/api-reference/sensor-links/pause-sensor-by-shipments put /sensor_link/pause/shipments # Resume sensors by deliveries Source: https://integrations.truecold.io/api-reference/sensor-links/resume-sensor-by-deliveries put /sensor_link/resume/deliveries # Resume sensors by handling units Source: https://integrations.truecold.io/api-reference/sensor-links/resume-sensor-by-handling-units put /sensor_link/resume/handling-units # Resume sensors Source: https://integrations.truecold.io/api-reference/sensor-links/resume-sensor-by-sensors put /sensor_link/resume/sensors # Resume sensors by shipments Source: https://integrations.truecold.io/api-reference/sensor-links/resume-sensor-by-shipments put /sensor_link/resume/shipments # Stop sensors by deliveries Source: https://integrations.truecold.io/api-reference/sensor-links/stop-sensor-by-deliveries put /sensor_link/stop/deliveries # Stop sensors by handling units Source: https://integrations.truecold.io/api-reference/sensor-links/stop-sensor-by-handling-units put /sensor_link/stop/handling-units # Stop sensors Source: https://integrations.truecold.io/api-reference/sensor-links/stop-sensor-by-sensors put /sensor_link/stop/sensors # Stop sensors by shipments Source: https://integrations.truecold.io/api-reference/sensor-links/stop-sensor-by-shipments put /sensor_link/stop/shipments # Delete multiple sensors Source: https://integrations.truecold.io/api-reference/sensors/delete-multiple-sensors delete /sensor/many # Delete sensor Source: https://integrations.truecold.io/api-reference/sensors/delete-sensor delete /sensor/{id} # Get sensor by ID Source: https://integrations.truecold.io/api-reference/sensors/get-sensor-by-id get /sensor/{id} # List available sensors Source: https://integrations.truecold.io/api-reference/sensors/list-available-sensors get /sensor/available # List sensors Source: https://integrations.truecold.io/api-reference/sensors/list-sensors get /sensor # Create multiple shipments Source: https://integrations.truecold.io/api-reference/shipments/create-multiple-shipments post /shipment/many # Create shipment Source: https://integrations.truecold.io/api-reference/shipments/create-shipment post /shipment # Delete multiple shipments Source: https://integrations.truecold.io/api-reference/shipments/delete-multiple-shipments delete /shipment/many # Delete shipment Source: https://integrations.truecold.io/api-reference/shipments/delete-shipment delete /shipment/{id} # Get shipment by ID Source: https://integrations.truecold.io/api-reference/shipments/get-shipment-by-id get /shipment/{id} # List shipments Source: https://integrations.truecold.io/api-reference/shipments/list-shipments get /shipment # Update shipment Source: https://integrations.truecold.io/api-reference/shipments/update-shipment put /shipment/{id} # Create multiple sites Source: https://integrations.truecold.io/api-reference/sites/create-multiple-sites post /site/many # Create site Source: https://integrations.truecold.io/api-reference/sites/create-site post /site # Delete multiple sites Source: https://integrations.truecold.io/api-reference/sites/delete-multiple-sites delete /site/many # Delete site Source: https://integrations.truecold.io/api-reference/sites/delete-site delete /site/{id} # Get site by ID Source: https://integrations.truecold.io/api-reference/sites/get-site-by-id get /site/{id} # List sites Source: https://integrations.truecold.io/api-reference/sites/list-sites get /site # Update site Source: https://integrations.truecold.io/api-reference/sites/update-site put /site/{id} # Create multiple temperature_ranges Source: https://integrations.truecold.io/api-reference/temperature-ranges/create-multiple-temperature_ranges post /temperature_range/many # Create temperature_range Source: https://integrations.truecold.io/api-reference/temperature-ranges/create-temperature_range post /temperature_range # Delete multiple temperature_ranges Source: https://integrations.truecold.io/api-reference/temperature-ranges/delete-multiple-temperature_ranges delete /temperature_range/many # Delete temperature_range Source: https://integrations.truecold.io/api-reference/temperature-ranges/delete-temperature_range delete /temperature_range/{id} # Get temperature_range by ID Source: https://integrations.truecold.io/api-reference/temperature-ranges/get-temperature_range-by-id get /temperature_range/{id} # List temperature_ranges Source: https://integrations.truecold.io/api-reference/temperature-ranges/list-temperature_ranges get /temperature_range # Update temperature_range Source: https://integrations.truecold.io/api-reference/temperature-ranges/update-temperature_range put /temperature_range/{id} # Create multiple zones Source: https://integrations.truecold.io/api-reference/zones/create-multiple-zones post /zone/many # Create zone Source: https://integrations.truecold.io/api-reference/zones/create-zone post /zone # Delete multiple zones Source: https://integrations.truecold.io/api-reference/zones/delete-multiple-zones delete /zone/many # Delete zone Source: https://integrations.truecold.io/api-reference/zones/delete-zone delete /zone/{id} # Get zone by ID Source: https://integrations.truecold.io/api-reference/zones/get-zone-by-id get /zone/{id} # List zones Source: https://integrations.truecold.io/api-reference/zones/list-zones get /zone/site/{site_id} # Update zone Source: https://integrations.truecold.io/api-reference/zones/update-zone put /zone/{id} # Introduction Source: https://integrations.truecold.io/documentation/introduction Easy to follow guide to connect with Public TrueCold's API ### Getting started Welcome! Read this page to learn a bit more about TrueCold Public API and how to integrate your data-input tools with our platform. If you want to book a demo, get in contact with [support@truecold.io](mailto:support@truecold.io). ### 1. Security At TrueCold we take security very seriously, so our API validates every request. We make sure that the right scope is returned every time. To do so, we use **private API keys**. To get one, log in at [truecold.io](https://truecold.io) and head to the *account* page. Under the *Api credentials* page, you will be able to generate or delete your api keys. Due to security reasons, you **will only see your api key once**. Make sure you save it properly. You will need to have the role **ADMIN** to be able to manage API keys. If you have any questions, get in contact with our [Support Team](mailto:support@truecold.io). In every request, you will need to provide an API key in the headers: ``` x-api-key: tc_your-api-key ``` ### 2. Rate limits To ensure that everyone can use our API, we allow up to **5 requests every 10 seconds** (sliding window). If you think you need more requests per 10 seconds, please, contact with our [Support Team](mailto:support@truecold.io) and we will study your case individually. If you exceed that amount of requests, you will receive a `429 Too Many Requests` response, with the following structure: ``` { isError: true, message: "Rate limit exceeded", limit: 5, reset: 4 } ``` | property | type | description | | -------- | ------- | ------------------------------------------------------------------------------ | | isError | boolean | If *true*, api calls exceeded limits. | | message | string | Gives information about the error. | | limit | number | Maximum api calls per 10 seconds. | | reset | number | Time in seconds until you sliding window finishes and you can make a new call. | # Quickstart Source: https://integrations.truecold.io/documentation/quickstart Test TrueCold public API in under five minutes Follow this steps to generate your API credentials and make your first call in under five minutes. ### 1. Generate API credentials Log in TrueCold and head to *Account* page. Under *API credentials* tab, click on the button that says *Generate token*. Give it a name and click on *Generate*. You will see the **API key**. Make sure you save it, because this will be the only time you will see it. ### 2. Test your credentials \[WIP] We are currently working on an in-docs interactive playground so you can test your keys and all of the API's endpoints without leaving the docs. ### All done Congrats! You’ve set up your TrueCold API credentials and made your first authenticated API call. Need support or want to give some feedback? Drop an email to our CTO [support@truecold.io](mailto:support@truecold.io). # Alert Source: https://integrations.truecold.io/webhooks/alert/alert-webhook Receive real-time notifications about important events in your alerts The Alert Webhook allows you to receive real-time notifications about important events in your system. This document provides an overview of how to set up and use the Alert Webhook. ## Alert Event types The Alert Webhook sends notifications for the following event types: * `alerts.created` : Triggered when a new alert has been generated on some entity linked with a sensor. * `alerts.updated` : Triggered when an existing alert has been updated. ## Event Payload When an alert is triggered, the app will send request to your webhook endpoint with the following payload: ```json theme={null} { "event": "alerts.created", "data": { "id": "33afebfa-14da-4ce8-add9-597b63e2bdd8", "account_id" : "33afebfa-14da-4ce8-add9-597b63e2bdd8", "created_at": "2021-10-01T12:00:00Z", "delivery_id" : "33afebfa-14da-4ce8-add9-597b63e2bdd8", "code": "292", "status": "OPEN", "max_temp": "21.148438", "min_temp": "36.433594", "excursion_minutes": "5", "temperature_range_id": "c1b8403c-f9b5-4e55-933f-a7c723e65fcc" } } ``` # Quickstart Source: https://integrations.truecold.io/webhooks/quickstart Create your first webhook in under five minutes ## Overview The TrueCold Webhook allows you to receive real-time notifications about important events in your system. In this quickstart guide, you will learn how to set up a webhook and receive notifications for new alerts. TrueCold allows you to create different types of webhooks fot different events. By now, the app supports the following webhooks: * [Alerts](./alert/alert-webhook) : Triggered when an alert has been generated or updated on some entity linked with a sensor. ## Setting Up the Webhook To set up a Webhook, follow these steps: 1. **Create a Webhook Endpoint**: Set up an endpoint on your server to receive webhook events. This endpoint should be able to handle HTTP requests. 2. **Register the Webhook**: Register your webhook endpoint in the TrueCold app. You can do this by clicking on the *Add new Webhook* located in the *Integrations* tab from the *Account* page. 3. **Verify the Webhook**: You can test your webhook by clicking on the *Test* button. This will send a test payload to your endpoint.