> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Search Terminal Actions

> Retrieves a filtered list of Terminal action requests created by the account making the request.

`square.searchTerminalActions` retrieves a filtered list of Terminal action requests created by the account making the request.

## Example

```ts automations/square-search-terminal-actions.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Search Square Terminal Actions", () => {
  onDashboardRun({ title: "Search Square Terminal Actions" })

  square.searchTerminalActions({
    query: {
      filter: {
        createdAt: {
          startAt: "2022-04-01T00:00:00.000Z",
        },
      },
      sort: {
        sortOrder: "DESC",
      },
    },
    limit: 2,
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `PAYMENTS_READ`.

| Field    | Type                         | Required | Default | Description                                                                                                                                                                                                                                                        |
| -------- | ---------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `query`  | `Square.TerminalActionQuery` | No       | —       | Queries terminal actions based on given conditions and sort order. Leaving this unset will return all actions with the default sort order.                                                                                                                         |
| `cursor` | `string`                     | No       | —       | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
| `limit`  | `number`                     | No       | —       | Limit the number of results returned for a single request.                                                                                                                                                                                                         |

Use the official [SearchTerminalActions reference](https://developer.squareup.com/reference/square/terminal-api/search-terminal-actions) for provider field semantics and limits.

## Output

Returns the official `Square.SearchTerminalActionsResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
