TTN icon

TTN

The Things Stack (TTN / TTS). **Data**, **Devices**, **Gateways**; **Triggers** → **Webhook · Receive Events** from the node picker.

Gateway → List Gateways

AI-generated

Summary

Retrieve a list of gateways from The Things Stack (TTN) API with optional scoping and output detail customization.

Inputs

  • List Gateways — Scope — Scope the gateway list to all gateways visible to the API key, gateways of a specific user, or gateways within an organization. Defaults to 'All (Visible to the Key)'.
  • User ID (Console TTS) (required) — Required when scope is 'User'. Specify the user ID from the console profile.
  • Organization ID (required) — Required when scope is 'Organization'. Specify the organization ID in TTS.
  • Output — Choose output detail: 'Detailed' returns full gateway objects; 'Summary' returns one item per gateway with gateway ID and name.
  • Include Location — Include antenna location data (latitude, longitude, altitude). In Summary mode, adds a location field when available. Defaults to true.

Output shape

a list of gateway records

Output shape depends on 'Output' parameter: 'Detailed' returns an object containing an array 'gateways' with full gateway objects, while 'Summary' returns a flat list with each item containing gateway_id, name, and optionally location. Pagination tokens may be present in detailed responses. Items are paired with input items.

Examples

Example 1: List all gateways visible to the API key with detailed information including location

Set resource 'Gateway', operation 'List Gateways', scope 'All', output 'Detailed', include location 'true'. The node returns an object with 'gateways' array containing all gateways with full details.

Example 2: List gateways for a specific user with summary output and location included

Set resource 'Gateway', operation 'List Gateways', scope 'User', specify 'User ID', output 'Summary', include location 'true'. The node outputs one item per gateway with gateway_id, name, and location if present.

Links

Discussion