# \#losant-api

**URL:** https://forums.losant.com/tag/losant-api/43.md

[Latest](https://forums.losant.com/latest.md) · [Categories](https://forums.losant.com/categories.md) · [Tags](https://forums.losant.com/tags.md)

---

## [API upload file size](https://forums.losant.com/t/api-upload-file-size/5804)

<div class="topic-metadata">

**Author:** [@Frank\_Krol](https://forums.losant.com/u/Frank_Krol)\
**Replies:** 1\
**Last updated:** [March 17, 2025, 2:42pm UTC](https://forums.losant.com/t/api-upload-file-size/5804 "2025-03-17T14:42:56Z")

</div>

Hello, We’re running into some limitation regarding the payload size to an API call. That’s why we resorted to a file upload as according to the documentation this can be 5GB. Couple of questions on uploading a file t…

---

## [Losant API Payload Breakdown](https://forums.losant.com/t/losant-api-payload-breakdown/5672)

<div class="topic-metadata">

**Author:** [@Tanner\_Williams](https://forums.losant.com/u/Tanner_Williams)\
**Replies:** 8\
**Last updated:** [November 5, 2024, 8:56pm UTC](https://forums.losant.com/t/losant-api-payload-breakdown/5672 "2024-11-05T20:56:43Z")

</div>

Trying to figure out the API params for “Device:Payload Counts Breakdown” but no matter what I put as the inputs for the start and end it always returns this same error message. Ive tried differnet devices and swappin…

---

## [Support for Service Credentials in the "Losant API" Node](https://forums.losant.com/t/support-for-service-credentials-in-the-losant-api-node/5636)

<div class="topic-metadata">

**Author:** [@Vander\_Maziero](https://forums.losant.com/u/Vander_Maziero)\
**Replies:** 1\
**Last updated:** [October 11, 2024, 12:29pm UTC](https://forums.losant.com/t/support-for-service-credentials-in-the-losant-api-node/5636 "2024-10-11T12:29:33Z")

</div>

Hi, It would be nice if possible add support for using Service Credentials in the “API Token Template” field of the Losant API node, with the scope of another application. Use Case: We have scenarios where we develop c…

---

## [Node Execution Time](https://forums.losant.com/t/node-execution-time/5593)

<div class="topic-metadata">

**Author:** [@Subrahmanyam\_Jonnala](https://forums.losant.com/u/Subrahmanyam_Jonnala)\
**Replies:** 1\
**Last updated:** [September 10, 2024, 11:58am UTC](https://forums.losant.com/t/node-execution-time/5593 "2024-09-10T11:58:37Z")

</div>

Hi All, Good morning. is there a way to see node execution times thru Losant API node. Thanks in advance Subrahmanyam

---

## [Time Series Query - Possible to Limit Decimal Places?](https://forums.losant.com/t/time-series-query-possible-to-limit-decimal-places/5563)

<div class="topic-metadata">

**Author:** [@April\_Jang](https://forums.losant.com/u/April_Jang)\
**Replies:** 4\
**Last updated:** [August 14, 2024, 10:29pm UTC](https://forums.losant.com/t/time-series-query-possible-to-limit-decimal-places/5563 "2024-08-14T22:29:48Z")

</div>

Hello, Is it possible to limit the number of decimal places in a Time Series Query using the Losant API node? Our devices are reporting measurements with just a few decimal places, but the mean received has 15 decimal p…

---

## [FlowVersion Flow:get](https://forums.losant.com/t/flowversion-flow-get/5553)

<div class="topic-metadata">

**Author:** [@Subrahmanyam\_Jonnal1](https://forums.losant.com/u/Subrahmanyam_Jonnal1)\
**Replies:** 3\
**Last updated:** [August 7, 2024, 6:38pm UTC](https://forums.losant.com/t/flowversion-flow-get/5553 "2024-08-07T18:38:09Z")

</div>

I am getting error for FlowVersion for Flow:get. Please let me know.

---

## [Losant REST Python API - No module named 'losantrest'](https://forums.losant.com/t/losant-rest-python-api-no-module-named-losantrest/5525)

<div class="topic-metadata">

**Author:** [@Logan\_Parker](https://forums.losant.com/u/Logan_Parker)\
**Replies:** 1\
**Last updated:** [July 16, 2024, 2:44pm UTC](https://forums.losant.com/t/losant-rest-python-api-no-module-named-losantrest/5525 "2024-07-16T14:44:08Z")

</div>

It appears the python package name has been updated. In all documentation (Github, PyPi) I could find related to the Losant rest api for python, it refers to the module as “losantrest”, and in all code examples it uses …

---

## [Losant API " Event Export" as attachment, not email link](https://forums.losant.com/t/losant-api-event-export-as-attachment-not-email-link/5473)

<div class="topic-metadata">

**Author:** [@Stewart\_McCallum](https://forums.losant.com/u/Stewart_McCallum)\
**Replies:** 13\
**Last updated:** [June 20, 2024, 2:13pm UTC](https://forums.losant.com/t/losant-api-event-export-as-attachment-not-email-link/5473 "2024-06-20T14:13:36Z")

</div>

Im trying to export event data on a 60-90 basis ( as part of a regulatory requirement ). I am able to get the required data in my workflow gathered and the generic LOSANT email sent to the client of my choosing, but can…

---

## [Ability to bypass the default behavior of the "banner" in organizations](https://forums.losant.com/t/ability-to-bypass-the-default-behavior-of-the-banner-in-organizations/5454)

<div class="topic-metadata">

**Author:** [@Vander\_Maziero](https://forums.losant.com/u/Vander_Maziero)\
**Replies:** 2\
**Last updated:** [May 15, 2024, 3:32pm UTC](https://forums.losant.com/t/ability-to-bypass-the-default-behavior-of-the-banner-in-organizations/5454 "2024-05-15T15:32:00Z")

</div>

Hi, I’m implementing a flow for notifying organizations that have exceeded the monthly configured payload limit. To do this, I would use the recently launched feature of banners in organizations, which allows displayin…

---

## [OpenAPI Specification for Losant Platform APIs](https://forums.losant.com/t/openapi-specification-for-losant-platform-apis/5402)

<div class="topic-metadata">

**Author:** [@Vander\_Maziero](https://forums.losant.com/u/Vander_Maziero)\
**Replies:** 1\
**Last updated:** [February 1, 2024, 3:40pm UTC](https://forums.losant.com/t/openapi-specification-for-losant-platform-apis/5402 "2024-02-01T15:40:21Z")

</div>

Hi, I would like to verify if there is a way to obtain the API specs of the platform in the OpenAPI standard? The available platform documentation (https://docs.losant.com/rest-api/overview/) and SDKs cover many use ca…

---

## [Device State History for a time duration](https://forums.losant.com/t/device-state-history-for-a-time-duration/4979)

<div class="topic-metadata">

**Author:** [@Nishit\_Saurabh](https://forums.losant.com/u/Nishit_Saurabh)\
**Replies:** 5\
**Last updated:** [March 21, 2023, 6:02pm UTC](https://forums.losant.com/t/device-state-history-for-a-time-duration/4979 "2023-03-21T18:02:33Z")

</div>

I did not see a way to query device state for a time duration. If I try using experience API workflow for the same, assuming I would need to use Data: Time Series Option, I don’t see any option to pass start and end time…

---

## [Add additional triggers to a workflow by REST API](https://forums.losant.com/t/add-additional-triggers-to-a-workflow-by-rest-api/4646)

<div class="topic-metadata">

**Author:** [@Jonas\_Helmstetter](https://forums.losant.com/u/Jonas_Helmstetter)\
**Replies:** 3\
**Last updated:** [July 18, 2022, 2:21pm UTC](https://forums.losant.com/t/add-additional-triggers-to-a-workflow-by-rest-api/4646 "2022-07-18T14:21:04Z")

</div>

Hi there. Since it is possible to create new integrations via REST API, I was wondering if it is possible to create new triggers for workflows by the REST API in order to use the newly created integrations. I found the F…

---

## [API Node: devices get return tags and attributes as objects and composite state](https://forums.losant.com/t/api-node-devices-get-return-tags-and-attributes-as-objects-and-composite-state/4681)

<div class="topic-metadata">

**Author:** [@Igo\_Monteiro](https://forums.losant.com/u/Igo_Monteiro)\
**Replies:** 2\
**Last updated:** [August 9, 2022, 5:59pm UTC](https://forums.losant.com/t/api-node-devices-get-return-tags-and-attributes-as-objects-and-composite-state/4681 "2022-08-09T17:59:53Z")

</div>

Would be nice if in API Node: Devices get there was an option to return tags/attributes as objects map and composite state values. I have a workflow that I need to access every device composite state, to do that I use t…

---

## [Is it possible to use the losant rest api from inside a custom html dashboard block?](https://forums.losant.com/t/is-it-possible-to-use-the-losant-rest-api-from-inside-a-custom-html-dashboard-block/4206)

<div class="topic-metadata">

**Author:** [@Wesley\_Manning](https://forums.losant.com/u/Wesley_Manning)\
**Replies:** 10\
**Last updated:** [November 19, 2021, 12:23pm UTC](https://forums.losant.com/t/is-it-possible-to-use-the-losant-rest-api-from-inside-a-custom-html-dashboard-block/4206 "2021-11-19T12:23:51Z")

</div>

Is it possible to use the losant API inside of a custom html dashboard block? We have a need for a button that triggers a workflow to send a command to a device. I know there is this API: The other way we’re thinking…

---

## [Losant API Data Export Email Error - Schemas for email](https://forums.losant.com/t/losant-api-data-export-email-error-schemas-for-email/4141)

<div class="topic-metadata">

**Author:** [@IoT\_Hub](https://forums.losant.com/u/IoT_Hub)\
**Replies:** 2\
**Last updated:** [October 26, 2021, 12:39pm UTC](https://forums.losant.com/t/losant-api-data-export-email-error-schemas-for-email/4141 "2021-10-26T12:39:51Z")

</div>

Good morning. I open this thread to see if someone can help me regarding how to provide an email in the Losant API Data Export node. Specifically, the format looks like this: The problem is that the email field only …

---

## [Events Get - experienceUserId: Cannot resolve to more than 1000 devices](https://forums.losant.com/t/events-get-experienceuserid-cannot-resolve-to-more-than-1000-devices/4122)

<div class="topic-metadata">

**Author:** [@Vander\_Maziero](https://forums.losant.com/u/Vander_Maziero)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 7:17pm UTC](https://forums.losant.com/t/events-get-experienceuserid-cannot-resolve-to-more-than-1000-devices/4122 "2021-10-18T19:17:49Z")

</div>

Hi, We are developing a multi tenant application, and this error - experienceUserId: Cannot resolve to more than 1000 devices - is occurring for users who have access to many devices, when I use the filter by experience…

---

## [Losant API Data Export Error](https://forums.losant.com/t/losant-api-data-export-error/4050)

<div class="topic-metadata">

**Author:** [@IoT\_Hub](https://forums.losant.com/u/IoT_Hub)\
**Replies:** 7\
**Last updated:** [September 10, 2021, 9:07am UTC](https://forums.losant.com/t/losant-api-data-export-error/4050 "2021-09-10T09:07:05Z")

</div>

Good morning. I am contacting you to ask what is the cause of the error I am having working with the Losant API node with the “Resource and Action” Data Export. You can see the node configuration in the following two sc…

---

## [Data Time Series Node](https://forums.losant.com/t/data-time-series-node/1068)

<div class="topic-metadata">

**Author:** [@rwild\_node](https://forums.losant.com/u/rwild_node)\
**Replies:** 13\
**Last updated:** [November 24, 2020, 6:09pm UTC](https://forums.losant.com/t/data-time-series-node/1068 "2020-11-24T18:09:50Z")

</div>

I’m trying to use the time series node to collect data from a device over a custom time range. I have the aggregation set to ‘sum’ and the resolution set to 24 hours. From what I can tell using this resolution defaults t…

---

## [Aggregation LAST yielding unexpected result](https://forums.losant.com/t/aggregation-last-yielding-unexpected-result/2387)

<div class="topic-metadata">

**Author:** [@Alexander\_Farley](https://forums.losant.com/u/Alexander_Farley)\
**Replies:** 4\
**Last updated:** [November 19, 2019, 10:17pm UTC](https://forums.losant.com/t/aggregation-last-yielding-unexpected-result/2387 "2019-11-19T22:17:27Z")

</div>

I’m running a timeseries query from a Losant API node. Here is the query schema I’m using: { "aggregation": "LAST", "limit": 1, "attributes": \[ "CLIENT" \], "deviceIds": \[ "{{data.this\_test.value.deviceId}}…

---

## [Timeseries query gives fewer results for a strictly-wider time range](https://forums.losant.com/t/timeseries-query-gives-fewer-results-for-a-strictly-wider-time-range/2297)

<div class="topic-metadata">

**Author:** [@Alexander\_Farley](https://forums.losant.com/u/Alexander_Farley)\
**Replies:** 8\
**Last updated:** [October 22, 2019, 4:42pm UTC](https://forums.losant.com/t/timeseries-query-gives-fewer-results-for-a-strictly-wider-time-range/2297 "2019-10-22T16:42:47Z")

</div>

I’m using a Losant API node to perform a “Data: Timeseries” query. For the query, I am supplying a start-time and an end-time using a Virtual Button for testing: { "searchstart": 0, "searchend": 1571436455 } Using t…

---

## ["Query has additional properties" despite checking schema](https://forums.losant.com/t/query-has-additional-properties-despite-checking-schema/1839)

<div class="topic-metadata">

**Author:** [@Alexander\_Farley](https://forums.losant.com/u/Alexander_Farley)\
**Replies:** 4\
**Last updated:** [May 31, 2019, 5:25am UTC](https://forums.losant.com/t/query-has-additional-properties-despite-checking-schema/1839 "2019-05-31T05:25:08Z")

</div>

Hi, I’m trying to use the Losant API node to perform a time-series query. I’m working from the time-series query schema described here: However, I’m getting the “query has additional parameters” response from the Lo…

---

## [Array of Device states from API](https://forums.losant.com/t/array-of-device-states-from-api/1574)

<div class="topic-metadata">

**Author:** [@paul\_wareham](https://forums.losant.com/u/paul_wareham)\
**Replies:** 2\
**Last updated:** [March 1, 2019, 5:25pm UTC](https://forums.losant.com/t/array-of-device-states-from-api/1574 "2019-03-01T17:25:58Z")

</div>

Is there an API endpoint to get an array of the most the recent device states from a collection of devices matching a tag? I’d like to query a group of devices and get the most recent states for selected attributes into…

---

## [Losant API 'Application Not Found' Error](https://forums.losant.com/t/losant-api-application-not-found-error/1555)

<div class="topic-metadata">

**Author:** [@Ekin\_Bukulmez](https://forums.losant.com/u/Ekin_Bukulmez)\
**Replies:** 2\
**Last updated:** [February 27, 2019, 2:17am UTC](https://forums.losant.com/t/losant-api-application-not-found-error/1555 "2019-02-27T02:17:01Z")

</div>

Hello, I am trying to get device information from a newly created application using the Losant API JavaScript client. However, I keep running into the ‘Application Not Found’ error even though I am using the correct app…

---

## [\[Solved\] Error when trying the REST API](https://forums.losant.com/t/solved-error-when-trying-the-rest-api/1524)

<div class="topic-metadata">

**Author:** [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Replies:** 2\
**Last updated:** [February 12, 2019, 12:15am UTC](https://forums.losant.com/t/solved-error-when-trying-the-rest-api/1524 "2019-02-12T00:15:31Z")

</div>

Trying to post some data and I get the followiing message: {“type”:“Validation”,“message”:“deviceState no (or more than one) schemas match”}

---

## [Using Losant API in Excel](https://forums.losant.com/t/using-losant-api-in-excel/1465)

<div class="topic-metadata">

**Author:** [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Replies:** 2\
**Last updated:** [January 27, 2019, 11:09pm UTC](https://forums.losant.com/t/using-losant-api-in-excel/1465 "2019-01-27T23:09:27Z")

</div>

Has anyone tried open the Losant API to read data tables through Excel? I can authenticate/connect and get the table information, but I can only see total record counts not detailed record data.
