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

# POST /v1/prospect — Source New Contacts at an Account

> POST /v1/prospect sources new contacts (e.g. a decision maker) at an account using the buying-committee engine. Bills 2 credits per new contact found. Requires the prospecting:write scope.

## Request

```http theme={null}
POST /v1/prospect
```

**account\_id** `string` *required*

A `company_leads` UUID (an account already identified from site traffic) or a bare domain. An unknown domain auto-creates a minimal account record, unbilled.

**roles** `string[]`

An ad-hoc list of roles/titles to search for on this call only (e.g. `["Property Manager", "VP of Operations"]`). When omitted, uses the tenant's saved buying-committee configuration. Cleaned server-side (trimmed, deduped, capped at 10 entries).

**max\_contacts** `integer`

Caps how many new contacts this call will source. When omitted, uses the tenant's configured default.

**X-Knock-Tenant** `string`

Prospect on behalf of a direct child tenant instead of your own. Takes precedence over `?product_slug=`. See [Reading a Child Tenant's Data](https://docs.knock2.ai/tenants/managing-tenants.md#reading-a-child-tenants-data).

### Example

```bash theme={null}
curl -X POST https://api.knock2.ai/v1/prospect \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "acme.com",
    "roles": ["Property Manager"],
    "max_contacts": 3
  }'
```

## Response

**account\_id** `string`

The UUID of the account that was prospected — the resolved ID even when `account_id` was passed as a domain.

**account\_created** `boolean`

`true` when `account_id` was an unrecognized domain and a new account record was auto-created to prospect against.

**contacts\_found** `integer`

Count of genuinely new contacts sourced by this run.

**contacts\_already\_existed** `integer`

Count of buying-committee contacts that were already on file for this account before this call.

**credits\_charged** `integer`

`2 × contacts_found`. A run that finds nothing new costs nothing.

**contacts** `object[]`

The newly-found contacts.

**contact fields**

**id** `string`

The new contact's UUID.

**first\_name** `string | null`

**last\_name** `string | null`

**email** `string | null`

**title** `string | null`

**linkedin\_url** `string | null`

**role\_searched** `string | null`

The role/title query that matched this contact.

```json theme={null}
{
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "account_created": false,
  "contacts_found": 2,
  "contacts_already_existed": 3,
  "credits_charged": 4,
  "contacts": [
    {
      "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane@acme.com",
      "title": "Property Manager",
      "linkedin_url": "https://linkedin.com/in/janedoe",
      "role_searched": "Property Manager"
    }
  ]
}
```

> [!NOTE]
>
> Some contacts may arrive slightly after this response — Moltsets results are queued rather than returned inline for this endpoint. Poll [`GET /v1/contacts`](https://docs.knock2.ai/api-reference/contacts/list-contacts) filtered by `account_id` to pick up stragglers.

## Errors

| Status | `code` | Meaning |
| - | - | - |
| `400` | `missing_parameter` | `account_id` is missing from the request body. |
| `400` | `no_roles_configured` | No `roles` were passed and no buying-committee roles are configured for this tenant. Configure roles in **Settings → Buying Committee**, or pass `roles` explicitly on the call. |
| `402` | `credit_limit_exceeded` | Website or contact identification credits are exhausted for the billing period. |
| `402` | `account_inactive` | The workspace has been deactivated. This check runs on every `/v1` route, not just this one. |
| `403` | `forbidden` | API key is missing the `prospecting:write` scope. |
| `403` | `locked` | The account has been identified but not yet revealed. |
| `404` | `not_found` | `account_id` is a UUID that doesn't resolve to an existing account for this tenant. A bare domain never 404s — it auto-creates instead. |

Requires the **`prospecting:write`** scope (or the broader **`all:write`** scope). This scope is not granted by default to keys provisioned for child tenants — a parent must explicitly select it when creating a key.


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