Actions8
- Data Actions
- Device Actions
- Gateway Actions
Data → Get Last Uplink
AI-generatedSummary
Fetch the most recent uplink data received by The Things Stack application, either for a single device or the entire application, within an optional time window, and return it in the selected output format.
Inputs
- Application Name or ID (required) — The ID or name of the The Things Stack application from which to retrieve uplink data. Choose from a loaded list or specify via expression.
- Storage Scope (required) — Select whether to retrieve uplink data for one specific device or for the whole application.
- Device ID (Storage) Name or ID — The device ID to retrieve uplink data for when scope is 'One Device'. Choose from a list or specify via expression.
- Last Window (Same as TTN Console) — Time window for filtering uplinks, e.g., last 1 hour, 12 hours, up to 90 days, or omit this filter.
- Uplink Output Shape (required) — Select output format: full raw uplink message, decoded payload only, or decoded payload with metadata.
Output shape
one or more JSON items representing the last uplink(s) matching the criteria
Returns one n8n item per uplink received in the selected scope and time window. If no uplinks are found, returns a single item with a warning message describing the situation. Output shape depends on 'Uplink Output Shape' setting.
Examples
Example 1: Retrieve last uplink for a specific device in the last 12 hours with full raw data
Application ID set to your TTN application, Storage Scope 'One Device', Device ID set, Last Window '12h', Uplink Output Shape 'Full Storage Record'.
Example 2: Retrieve last uplinks for whole application for the last day with decoded payload only
Application ID set, Storage Scope 'Whole Application', Last Window '24h', Uplink Output Shape 'Decoded Payload only (Root)'.