WTS Chat icon

WTS Chat

Get data from Wts API

Overview

The Get All Panels operation for the "Panel" resource in this n8n node retrieves a list of panels from the WTS API, optionally filtered and paginated according to user-specified criteria. This is useful for automating workflows that need to access or process information about available panels, such as reporting, dashboard generation, or further automation steps based on panel data.

Practical examples:

  • Fetching all panels to display them in a dashboard.
  • Filtering panels by title or creation/update date for reporting purposes.
  • Paginating through large sets of panels for batch processing.

Properties

Below are the supported input properties for the "Get All Panels" operation:

Display Name Type Description
Title String Filter panels by their title.
CreatedAt.After DateTime Only include panels created after this date/time (format: YYYY-MM-DD hh:mm, with timezone).
CreatedAt.Before DateTime Only include panels created before this date/time (format: YYYY-MM-DD hh:mm, with timezone).
UpdatedAt.After DateTime Only include panels updated after this date/time (format: YYYY-MM-DD hh:mm, with timezone).
UpdatedAt.Before DateTime Only include panels updated before this date/time (format: YYYY-MM-DD hh:mm, with timezone).
Auto Pagination Boolean If enabled, automatically fetches multiple pages of results.
Max Pages Number Maximum number of pages to retrieve when auto pagination is enabled (1–100).
Page Number Number The page number to retrieve (used if auto pagination is disabled).
Page Size Number Number of items per page (used if auto pagination is disabled; 1–100).
Order By String Field name to sort the results by.
Order Direction Options Sort direction: Ascending or Descending.

Output

The output consists of an array of objects, each representing a panel retrieved from the WTS API. Each item is returned in the json field. The exact structure of each panel object depends on the WTS API, but typically includes fields such as:

{
  "id": "string",
  "title": "string",
  "createdAt": "string (ISO date)",
  "updatedAt": "string (ISO date)",
  // ...other panel-specific fields
}
  • No binary data is produced by this operation.

Dependencies

  • External Service: Requires access to the WTS API.
  • API Key: You must configure valid credentials (wtsApi) in n8n, including an API key.
  • n8n Configuration: Ensure the node has network access to https://api.wts.chat.

Troubleshooting

Common Issues:

  • Missing Credentials: If the API key is not set up correctly, the node will fail to authenticate.
  • Invalid Date Formats: Enter dates in the required format (YYYY-MM-DD hh:mm) and ensure time zones are correct.
  • Pagination Limits: Setting Max Pages too high may result in long execution times or hitting API rate limits.
  • No Results: If filters are too restrictive (e.g., non-existent title), the result may be an empty array.

Error Messages:

  • "NodeApiError: ...": Indicates an error response from the WTS API. Check your input parameters and credentials.
  • "Fill in the panel ID field": This error should not occur for "Get All Panels", but may appear if you use other operations without required IDs.

Links and References

Discussion