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

# Firmable: People Search

> Search for people by id, company id, position, seniority, and department. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Search for people by id, company id, position, seniority, and department.

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

## 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(
  'firmable_people_search',
  {
    "companyId": "company_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run firmable_people_search --input '{
  "companyId": "company_123"
}'
```

## 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": {
    "success": true,
    "total": 123,
    "totalPeople": 123
  }
}
```

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

## Input reference

Search for people by id, company id, position, seniority, and department

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.selectedCountry` | `"AU" \| "NZ" \| "SG" \| "MY" \| "ID" \| "PH" \| "HK" \| "JP" \| "VN" \| "KR" \| "TH" \| "US" \| "CA"` | No | — | The country to search against. Supported values: AU, NZ, SG, MY, ID, PH, HK, JP, VN, KR, TH, US, CA. Defaults to AU when not provided. (example: AU) Allowed: `AU`, `NZ`, `SG`, `MY`, `ID`, `PH`, `HK`, `JP`, `VN`, `KR`, `TH`, `US`, `CA`. |
| `payload.companyId` | `string` | Yes | — | The unique identifier for a company in the Firmable system. (example: f000000117274) |
| `payload.position` | `string` | No | — | The position of the person. (example: Software Engineer) |
| `payload.seniority` | `string` | No | — | The seniority of the person. (example: Senior) |
| `payload.department` | `string` | No | — | The department of the person. (example: Engineering) |
| `payload.from` | `string` | No | — | The offset to start the search from. (example: 0) |
| `payload.size` | `string` | No | — | The size of the search results. (example: 10) |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Search for people by id, company id, position, seniority, and department",
    "properties": {
      "selectedCountry": {
        "type": "string",
        "description": "The country to search against. Supported values: AU, NZ, SG, MY, ID, PH, HK, JP, VN, KR, TH, US, CA. Defaults to AU when not provided. (example: AU)",
        "enum": [
          "AU",
          "NZ",
          "SG",
          "MY",
          "ID",
          "PH",
          "HK",
          "JP",
          "VN",
          "KR",
          "TH",
          "US",
          "CA"
        ]
      },
      "companyId": {
        "type": "string",
        "description": "The unique identifier for a company in the Firmable system. (example: f000000117274)"
      },
      "position": {
        "type": "string",
        "description": "The position of the person. (example: Software Engineer)"
      },
      "seniority": {
        "type": "string",
        "description": "The seniority of the person. (example: Senior)"
      },
      "department": {
        "type": "string",
        "description": "The department of the person. (example: Engineering)"
      },
      "from": {
        "type": "string",
        "description": "The offset to start the search from. (example: 0)"
      },
      "size": {
        "type": "string",
        "description": "The size of the search results. (example: 10)"
      }
    },
    "required": [
      "companyId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.success` | `boolean` | No | — | Whether any people matched the search. When `false`, `records` and `total` are not returned and `totalPeople` is `0`. |
| `result.data.total` | `integer` | No | — | The total number of people that match the search. |
| `result.data.totalPeople` | `integer` | No | — | Only returned when no people match the search. Always `0`. |
| `result.data.records` | `array` | No | — | The people on this page of results. |
| `result.data.records[].id` | `string` | No | — | The Firmable ID of the person. Same value as `person_id`. |
| `result.data.records[].person_id` | `string` | No | — | The Firmable ID of the person. |
| `result.data.records[].name` | `string` | No | — | The full name of the person. |
| `result.data.records[].position` | `string` | No | — | The position of the person. |
| `result.data.records[].company_name` | `string` | No | — | The name of the company the person works for. |
| `result.data.records[].has_email` | `boolean` | No | — | Whether the person has an email address. |
| `result.data.records[].has_phone` | `boolean` | No | — | Whether the person has a phone number. |
| `result.data.records[].has_dnd_phone` | `boolean` | No | — | Whether the person number is a DND number. |
| `result.data.records[].has_mobile` | `boolean` | No | — | Whether the person has a mobile number. |
| `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": {
          "success": {
            "type": "boolean",
            "description": "Whether any people matched the search. When `false`, `records` and `total` are not returned and `totalPeople` is `0`."
          },
          "total": {
            "type": "integer",
            "description": "The total number of people that match the search."
          },
          "totalPeople": {
            "type": "integer",
            "description": "Only returned when no people match the search. Always `0`."
          },
          "records": {
            "type": "array",
            "description": "The people on this page of results.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The Firmable ID of the person. Same value as `person_id`."
                },
                "person_id": {
                  "type": "string",
                  "description": "The Firmable ID of the person."
                },
                "name": {
                  "type": "string",
                  "description": "The full name of the person."
                },
                "position": {
                  "type": "string",
                  "description": "The position of the person."
                },
                "company_name": {
                  "type": "string",
                  "description": "The name of the company the person works for."
                },
                "has_email": {
                  "type": "boolean",
                  "description": "Whether the person has an email address."
                },
                "has_phone": {
                  "type": "boolean",
                  "description": "Whether the person has a phone number."
                },
                "has_dnd_phone": {
                  "type": "boolean",
                  "description": "Whether the person number is a DND number."
                },
                "has_mobile": {
                  "type": "boolean",
                  "description": "Whether the person has a mobile number."
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `3.57` per pricing unit.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.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.