> ## 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 Accounts

> List accounts (companies) in your Amplemarket workspace, filtered by name, domain, owner or tags. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

List accounts (companies) in your Amplemarket workspace, filtered by name, domain, owner or tags.

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

## 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_accounts',
  {
    "name": "Example",
    "domain": "example.com",
    "owner_email": "jane.doe@example.com"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute amplemarket_get_accounts --input '{
  "name": "Example",
  "domain": "example.com",
  "owner_email": "jane.doe@example.com"
}' --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": {
    "accounts": [
      {
        "id": "id_123",
        "name": "Example",
        "website": "https://example.com"
      }
    ],
    "_links": {
      "self": {
        "href": "example"
      }
    }
  }
}
```

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

## Input reference

List Accounts

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.name` | `string` | No | — | Filter accounts by name (case-insensitive partial match) |
| `payload.domain` | `string` | No | — | Filter accounts by domain (exact match) |
| `payload.owner_email` | `string` | No | — | Filter accounts by owner email (exact match) |
| `payload.tags` | `array` | No | — | Filter accounts by tag names |
| `payload.page` | `object` | No | — | Cursor for next page (from \_links.next) |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "List Accounts",
    "properties": {
      "name": {
        "type": "string",
        "description": "Filter accounts by name (case-insensitive partial match)"
      },
      "domain": {
        "type": "string",
        "description": "Filter accounts by domain (exact match)"
      },
      "owner_email": {
        "type": "string",
        "description": "Filter accounts by owner email (exact match)"
      },
      "tags": {
        "type": "array",
        "description": "Filter accounts by tag names",
        "items": {
          "type": "string"
        }
      },
      "page": {
        "type": "object",
        "description": "Cursor for next page (from _links.next)",
        "properties": {
          "after": {
            "type": "string",
            "description": "Cursor for next page (from _links.next)"
          },
          "size": {
            "type": [
              "integer",
              "string"
            ],
            "description": "Page size. Accepts an integer or a numeric string; Amplemarket types this field inconsistently across operations."
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.accounts` | `array` | No | — | — |
| `result.data.accounts[].id` | `string` | No | — | — |
| `result.data.accounts[].name` | `string \| null` | No | — | — |
| `result.data.accounts[].website` | `string \| null` | No | — | — |
| `result.data.accounts[].linkedin_url` | `string \| null` | No | — | — |
| `result.data.accounts[].owner_email` | `string \| null` | No | — | — |
| `result.data.accounts[].last_contacted_at` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.accounts[].last_engaged_at` | `string \| null` | No | — | Format: `date-time`. |
| `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": {
          "accounts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "website": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "linkedin_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "owner_email": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_contacted_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "last_engaged_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              },
              "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.