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

> Get one account (company) from your Amplemarket workspace by its ID. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Get one account (company) from your Amplemarket workspace by its ID.

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

## 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_id',
  {
    "id": "id_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute amplemarket_get_accounts_id --input '{
  "id": "id_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": {
    "id": "id_123",
    "name": "Example",
    "domain": "example.com"
  }
}
```

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

## Input reference

Retrieve Account

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.id` | `string` | Yes | — | Account public ID |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve Account",
    "properties": {
      "id": {
        "type": "string",
        "description": "Account public ID"
      }
    },
    "required": [
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `string` | No | — | — |
| `result.data.name` | `string \| null` | No | — | — |
| `result.data.domain` | `string \| null` | No | — | — |
| `result.data.linkedin_url` | `string \| null` | No | — | — |
| `result.data.description` | `string \| null` | No | — | — |
| `result.data.industry` | `string \| null` | No | — | — |
| `result.data.size` | `string \| null` | No | — | — |
| `result.data.founded_year` | `integer \| null` | No | — | — |
| `result.data.image_url` | `string \| null` | No | — | — |
| `result.data.location` | `object \| null` | No | — | — |
| `result.data.location.city` | `string \| null` | No | — | — |
| `result.data.location.state` | `string \| null` | No | — | — |
| `result.data.location.country` | `string \| null` | No | — | — |
| `result.data.owner` | `object \| null` | No | — | — |
| `result.data.owner.name` | `string` | No | — | — |
| `result.data.owner.email` | `string` | No | — | — |
| `result.data.tags` | `array` | No | — | — |
| `result.data.insights` | `string \| null` | No | — | — |
| `result.data.insights_generated_at` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.insights_status` | `string` | No | — | — |
| `result.data.engagement` | `object \| null` | No | — | — |
| `result.data.engagement.contacts_count` | `integer` | No | — | — |
| `result.data.engagement.active_contacts_count` | `integer` | No | — | — |
| `result.data.engagement.interested_contacts_count` | `integer` | No | — | — |
| `result.data.engagement.first_contacted_at` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.engagement.last_contacted_at` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.engagement.last_engaged_at` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.engagement.emails_sent` | `integer` | No | — | — |
| `result.data.engagement.emails_received` | `integer` | No | — | — |
| `result.data.engagement.linkedin_sent` | `integer` | No | — | — |
| `result.data.engagement.linkedin_received` | `integer` | No | — | — |
| `result.data.engagement.calls_made` | `integer` | No | — | — |
| `result.data.engagement.calls_received` | `integer` | No | — | — |
| `result.data.engagement.meetings` | `integer` | No | — | — |
| `result.data.crm` | `object \| null` | No | — | — |
| `result.data.crm.provider` | `string` | No | — | — |
| `result.data.crm.account_name` | `string \| null` | No | — | — |
| `result.data.crm.account_url` | `string \| null` | No | — | — |
| `result.data.crm.owner` | `object \| null` | No | — | — |
| `result.data.crm.owner.name` | `string` | No | — | — |
| `result.data.crm.owner.email` | `string` | No | — | — |
| `result.data.opportunities` | `object \| null` | No | — | — |
| `result.data.opportunities.open_count` | `integer` | No | — | — |
| `result.data.opportunities.closed_count` | `integer` | No | — | — |
| `result.data.opportunities.total_open_amount` | `number` | No | — | — |
| `result.data.opportunities.total_closed_amount` | `number` | No | — | — |
| `result.data.custom_fields` | `record` | No | — | — |
| `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": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkedin_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "industry": {
            "type": [
              "string",
              "null"
            ]
          },
          "size": {
            "type": [
              "string",
              "null"
            ]
          },
          "founded_year": {
            "type": [
              "integer",
              "null"
            ]
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "state": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "insights": {
            "type": [
              "string",
              "null"
            ]
          },
          "insights_generated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "insights_status": {
            "type": "string"
          },
          "engagement": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "contacts_count": {
                "type": "integer"
              },
              "active_contacts_count": {
                "type": "integer"
              },
              "interested_contacts_count": {
                "type": "integer"
              },
              "first_contacted_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "last_contacted_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "last_engaged_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "emails_sent": {
                "type": "integer"
              },
              "emails_received": {
                "type": "integer"
              },
              "linkedin_sent": {
                "type": "integer"
              },
              "linkedin_received": {
                "type": "integer"
              },
              "calls_made": {
                "type": "integer"
              },
              "calls_received": {
                "type": "integer"
              },
              "meetings": {
                "type": "integer"
              }
            },
            "additionalProperties": false
          },
          "crm": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "provider": {
                "type": "string"
              },
              "account_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "account_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "opportunities": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "open_count": {
                "type": "integer"
              },
              "closed_count": {
                "type": "integer"
              },
              "total_open_amount": {
                "type": "number"
              },
              "total_closed_amount": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "custom_fields": {
            "type": "object"
          }
        },
        "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.