WTS Chat icon

WTS Chat

Get data from Wts API

Overview

The "Get All Sequences" operation of the Sequence resource in this node retrieves a list of sequences from the WTS Chat API. It allows users to fetch sequences with optional filters and pagination controls, making it useful for managing and analyzing communication workflows or campaigns organized as sequences.

Typical use cases include:

  • Fetching all sequences to display or process them in bulk.
  • Filtering sequences by name or associated contact ID.
  • Including detailed statistics or execution counts for each sequence.
  • Handling large result sets efficiently using pagination or automatic pagination.

For example, a marketing automation workflow might use this operation to retrieve all active sequences and their execution stats to monitor campaign performance.

Properties

Name Meaning
Include Details Select which additional fields to include in the response. Options: ContactExecutingCount, ExecutionStats.
Name Filter sequences by their name (string).
Contact ID Filter sequences related to a specific contact by their ID (string).
CreatedAt.After Filter sequences created after this date/time (format: YYYY-MM-DD hh:mm).
CreatedAt.Before Filter sequences created before this date/time (format: YYYY-MM-DD hh:mm).
UpdatedAt.After Filter sequences updated after this date/time (format: YYYY-MM-DD hh:mm).
UpdatedAt.Before Filter sequences updated before this date/time (format: YYYY-MM-DD hh:mm).
Auto Pagination Enable automatic pagination to fetch multiple pages automatically (boolean).
Max Pages Maximum number of pages to fetch when auto pagination is enabled (number between 1 and 100).
Page Number The page number to retrieve when auto pagination is disabled (number, default 1).
Page Size Number of items per page when auto pagination is disabled (number between 1 and 100, default 15).
Order By Field name to sort the results by (string).
Order Direction Direction of sorting: Ascending or Descending.

Output

The output is an array of JSON objects representing sequences retrieved from the WTS Chat API. Each item contains sequence data including basic properties and optionally detailed fields if requested via the "Include Details" property.

The exact structure depends on the API response but typically includes identifiers, names, timestamps, and possibly execution statistics or counts related to contacts executing the sequence.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating requests to the WTS Chat API.
  • The node uses the base URL https://api.wts.chat for API calls.
  • Pagination and filtering parameters are passed directly to the API service method.

Troubleshooting

  • Empty or invalid Sequence ID: If filtering by sequence ID or related fields, ensure the ID is correctly provided; otherwise, the API may return errors or empty results.
  • Invalid date/time format: Date/time filters must be in the format YYYY-MM-DD hh:mm and respect the user's time zone.
  • Pagination issues: When using auto pagination, setting a very high max pages value may lead to long execution times or rate limiting.
  • API errors: Network issues or invalid API keys will cause errors wrapped as NodeApiError. Verify API credentials and network connectivity.
  • Empty results: If no sequences match the filters, the output will be an empty array.

Links and References

Discussion