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

# Amplemarket: Get Tasks

> List Amplemarket tasks such as calls and manual emails, filtered by type, status, sequence or user. Includes SDK V2 examples, schemas, and cost.

List Amplemarket tasks such as calls and manual emails, filtered by type, status, sequence or user.

> [!NOTE]
>
> Tool ID: `amplemarket_get_tasks`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'amplemarket_get_tasks',
  {
    "user_id": "user_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute amplemarket_get_tasks --input '{
  "user_id": "user_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "tasks": [
      {
        "id": "id_123",
        "automatic": true,
        "type": "example",
        "status": "example",
        "due_on": "2026-01-15T12:00:00Z",
        "user_id": "user_123",
        "user_email": "jane.doe@example.com"
      }
    ],
    "_links": {
      "self": {
        "href": "example"
      }
    }
  }
}
```

Use `deepline describe amplemarket_get_tasks --json` for the latest machine-readable contract.

## Input reference

List tasks

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.page` | `object` | No | — | Page size. Accepts an integer or a numeric string. Amplemarket types this field inconsistently across operations. |
| `payload.automatic` | `boolean` | No | — | Filter by task automation type |
| `payload.type` | `string` | No | — | Filter by task type |
| `payload.status` | `string` | No | — | Filter by task status |
| `payload.contact_local_time_from` | `integer` | No | — | Filter by associated contact local time hour being higher than this value Minimum: 0. Maximum: 23. |
| `payload.contact_local_time_to` | `integer` | No | — | Filter by associated contact local time hour being lower than this value Minimum: 0. Maximum: 23. |
| `payload.message_opens` | `integer` | No | — | Filter by associated message opens Minimum: 0. |
| `payload.keyword` | `string` | No | — | Filter by name, email or company associated with task |
| `payload.sequence_key` | `string` | No | — | Filter by associated sequence |
| `payload.user_id` | `string` | Yes | — | Filter by user |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "List tasks",
    "properties": {
      "page": {
        "type": "object",
        "description": "Page size. Accepts an integer or a numeric string; Amplemarket types this field inconsistently across operations.",
        "properties": {
          "size": {
            "type": [
              "integer",
              "string"
            ],
            "description": "Page size. Accepts an integer or a numeric string; Amplemarket types this field inconsistently across operations."
          },
          "after": {
            "type": "string",
            "description": "Page after"
          },
          "before": {
            "type": "string",
            "description": "Page before"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "automatic": {
        "type": "boolean",
        "description": "Filter by task automation type"
      },
      "type": {
        "type": "string",
        "description": "Filter by task type"
      },
      "status": {
        "type": "string",
        "description": "Filter by task status"
      },
      "contact_local_time_from": {
        "type": "integer",
        "description": "Filter by associated contact local time hour being higher than this value",
        "minimum": 0,
        "maximum": 23
      },
      "contact_local_time_to": {
        "type": "integer",
        "description": "Filter by associated contact local time hour being lower than this value",
        "minimum": 0,
        "maximum": 23
      },
      "message_opens": {
        "type": "integer",
        "description": "Filter by associated message opens",
        "minimum": 0
      },
      "keyword": {
        "type": "string",
        "description": "Filter by name, email or company associated with task"
      },
      "sequence_key": {
        "type": "string",
        "description": "Filter by associated sequence"
      },
      "user_id": {
        "type": "string",
        "description": "Filter by user"
      }
    },
    "required": [
      "user_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.tasks` | `array` | No | — | — |
| `result.data.tasks[].id` | `string` | Yes | — | — |
| `result.data.tasks[].automatic` | `boolean` | Yes | — | — |
| `result.data.tasks[].type` | `string` | Yes | — | — |
| `result.data.tasks[].status` | `string` | Yes | — | — |
| `result.data.tasks[].notes` | `string \| null` | No | — | — |
| `result.data.tasks[].due_on` | `string` | Yes | — | Format: `date_time`. |
| `result.data.tasks[].finished_on` | `string \| null` | No | — | Format: `date_time`. |
| `result.data.tasks[].sequence_key` | `string \| null` | No | — | — |
| `result.data.tasks[].sequence_name` | `string \| null` | No | — | — |
| `result.data.tasks[].user_id` | `string` | Yes | — | — |
| `result.data.tasks[].user_email` | `string` | Yes | — | — |
| `result.data.tasks[].contact` | `object \| null` | No | — | — |
| `result.data.tasks[].contact.id` | `string` | Yes | — | — |
| `result.data.tasks[].contact.name` | `string \| null` | No | — | — |
| `result.data.tasks[].contact.email` | `string` | Yes | — | — |
| `result.data._links` | `object` | No | — | — |
| `result.data._links.self` | `object` | Yes | — | — |
| `result.data._links.self.href` | `string` | Yes | — | — |
| `result.data._links.prev` | `object` | No | — | — |
| `result.data._links.prev.href` | `string` | Yes | — | — |
| `result.data._links.next` | `object` | No | — | — |
| `result.data._links.next.href` | `string` | Yes | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "tasks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "automatic": {
                  "type": "boolean"
                },
                "type": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "due_on": {
                  "type": "string",
                  "format": "date_time"
                },
                "finished_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date_time"
                },
                "sequence_key": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sequence_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "user_id": {
                  "type": "string"
                },
                "user_email": {
                  "type": "string"
                },
                "contact": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "email": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "email"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "automatic",
                "type",
                "status",
                "due_on",
                "user_id",
                "user_email"
              ],
              "additionalProperties": false
            }
          },
          "_links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "object",
                "properties": {
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "href"
                ],
                "additionalProperties": false
              },
              "prev": {
                "type": "object",
                "properties": {
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "href"
                ],
                "additionalProperties": false
              },
              "next": {
                "type": "object",
                "properties": {
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "href"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "self"
            ],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Amplemarket provider guide](https://deepline.com/docs/providers/amplemarket/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.