Autotask icon

Autotask

Work with Autotask PSA REST API resources

Actions125

Ticket Attachment → List Ticket Attachments

AI-generated

Summary

List ticket attachments for a specified parent ticket in Autotask, optionally using filters and pagination controls.

Inputs

  • Ticket ID (required) — Numeric ID of the parent ticket whose attachments to list.
  • Return All — Boolean flag to return all results or limit to a specified number.
  • Limit — Maximum number of results to return if not returning all.
  • Include Fields — Optional comma-separated list of fields to include in each returned attachment; leave blank to return all fields.
  • Use Advanced Filters — Boolean flag to enable advanced filtering options.
  • Advanced Filters — Collection of filter clauses (field, operator, value) joined with AND to refine attachment listing.
  • Custom Filter (JSON) — Raw JSON filter array for complex or nested filter logic, merged with other filters.
  • Header Overrides — Optional request header overrides including Impersonation Resource ID for this API call.

Output shape

a list of ticket attachment records as JSON objects

Supports pagination via 'Return All' and 'Limit' parameters. Filters are combined (AND logic) unless using the Custom Filter for OR/nested logic. Returns only requested fields if 'Include Fields' is specified.

Examples

Example 1: Retrieve all attachments for a ticket with ID 12345.

Set 'Ticket ID' to '12345', enable 'Return All' for all attachments.

Example 2: Retrieve up to 10 attachments for a ticket, including only 'id' and 'description' fields.

Set 'Ticket ID' to target ticket, 'Return All' to false, 'Limit' to 10, and 'Include Fields' to 'id,description'.

Example 3: Filter attachments by an advanced filter, such as attachments created after a certain date.

Enable 'Use Advanced Filters', then specify filter clauses (e.g., field 'createDate', operator 'gte', value '2023-01-01').

Links

Discussion