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

# Apollo: CRM Search For Accounts

> Search the company accounts your team saved in Apollo by name or account stage. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Search the company accounts your team saved in Apollo by name or account stage.

> [!NOTE]
>
> Tool ID: `apollo_crm_search_for_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(
  'apollo_crm_search_for_accounts',
  {
    "page": 123,
    "per_page": 123,
    "q_organization_name": "Example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute apollo_crm_search_for_accounts --input '{
  "page": 123,
  "per_page": 123,
  "q_organization_name": "Example"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe apollo_crm_search_for_accounts --json` for the complete live contract.

## Input reference

Search accounts already stored in your Apollo CRM using `accounts/search`. Use `crm_search_for_accounts` for CRM account discovery. This only returns companies your team explicitly added to Apollo as CRM accounts. Do not use it for broad company prospecting. Use apollo\_company\_search for Apollo's global company database. Requires master API key.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.page` | `integer` | No | — | Page number (1-500). |
| `payload.per_page` | `integer` | No | — | Results per page (1-100). |
| `payload.q_organization_name` | `string` | No | — | Search by organization/account name. |
| `payload.account_stage_ids` | `array` | No | — | Filter by account stage IDs. |
| `payload.sort_by_field` | `string` | No | — | Field to sort results by (e.g., "account\_last\_activity\_date"). |
| `payload.sort_ascending` | `boolean` | No | — | Sort ascending when true, descending when false. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Search accounts already stored in your Apollo CRM using `accounts/search`. Use `crm_search_for_accounts` for CRM account discovery. This only returns companies your team explicitly added to Apollo as CRM accounts. Do not use it for broad company prospecting; use apollo_company_search for Apollo's global company database. Requires master API key.",
    "properties": {
      "page": {
        "type": "integer",
        "description": "Page number (1-500)."
      },
      "per_page": {
        "type": "integer",
        "description": "Results per page (1-100)."
      },
      "q_organization_name": {
        "type": "string",
        "description": "Search by organization/account name."
      },
      "account_stage_ids": {
        "type": "array",
        "description": "Filter by account stage IDs.",
        "items": {
          "type": "string"
        }
      },
      "sort_by_field": {
        "type": "string",
        "description": "Field to sort results by (e.g., \"account_last_activity_date\")."
      },
      "sort_ascending": {
        "type": "boolean",
        "description": "Sort ascending when true, descending when false."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Apollo search accounts result.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `record` | Yes | — | Payload with `accounts` array and `pagination` metadata. |
| `result.meta` | `record` | 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": "Apollo search accounts result.",
    "properties": {
      "data": {
        "type": [
          "object",
          "null"
        ],
        "description": "Payload with `accounts` array and `pagination` metadata.",
        "additionalProperties": {}
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "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

* [Apollo provider guide](https://deepline.com/docs/providers/apollo/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.