We discovered an incorrect response format in the POST /gw/devices/{dev-selector}/messages REST API method. The current response contains an unnecessary nested array within the result
array, which deviates from standard flespi API response format.
Current (Incorrect) Response Format:
{
"result": [
[
{
"device_id": 123,
"msgs_count": 5
}
]
],
"errors": []
}
New (Correct) Response Format:
{
"result": [
{
"device_id": 123,
"msgs_count": 5
}
],
"errors": []
}
What's Changing:
- The secondary nested array will be removed from the response
- Each device's result will be a direct object within the
result
array
- This aligns the response format with other flespi REST API methods
Timeline:
- Announcement Date: October 2, 2025
- Implementation Date: November 1, 2025 (30 days from announcement)
Action Required:
If your application parses the response from POST /gw/devices/{dev-selector}/messages, please update your code to handle the corrected response format before November 1, 2025.
Note: This change only affects the response structure. Request format and API functionality remain unchanged.