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

# Your first API request

## Create an API key

Open [MCP and API settings](https://app.vsyble.com/mcp), create a separate key for this integration, and grant the search permissions it needs. API keys require a paid Vsyble plan. For a connection without a key, use [hosted MCP](https://docs.vsyble.com/mcp/overview.md).

Store the key in your server's secret manager or environment. Keep it out of source control and client-side bundles.

```bash theme={null}
export VSYBLE_API_KEY='your-api-key'
```

Replace the illustrative value locally. Never paste a real key into a support request, screenshot, or AI conversation.

## Find people

```bash cURL theme={null}
curl https://api.vsyble.com/v1/search \
  --request POST \
  --header "Content-Type: application/json" \
  --header "X-Vsyble-Api-Key: $VSYBLE_API_KEY" \
  --data '{
    "query": "Sales leaders at US industrial manufacturers",
    "target": "people",
    "limit": 5,
    "search_type": "auto"
  }'
```

```javascript JavaScript theme={null}
const response = await fetch("https://api.vsyble.com/v1/search", {
  method: "POST",
  redirect: "error",
  headers: {
    "Content-Type": "application/json",
    "X-Vsyble-Api-Key": process.env.VSYBLE_API_KEY,
  },
  body: JSON.stringify({
    query: "Sales leaders at US industrial manufacturers",
    target: "people",
    limit: 5,
    search_type: "auto",
  }),
  signal: AbortSignal.timeout(70_000),
});
const data = await response.json();
if (!response.ok) throw new Error(`Vsyble request failed: ${response.status}`);
console.log(data.request_id, data.result_count);
```

```python Python theme={null}
import os
import requests

response = requests.post(
    "https://api.vsyble.com/v1/search",
    headers={"X-Vsyble-Api-Key": os.environ["VSYBLE_API_KEY"]},
    json={
        "query": "Sales leaders at US industrial manufacturers",
        "target": "people",
        "limit": 5,
        "search_type": "auto",
    },
    timeout=70,
    allow_redirects=False,
)
response.raise_for_status()
data = response.json()
print(data["request_id"], data["result_count"])
```

The Python example uses the `requests` package (`python -m pip install requests`). The JavaScript example runs on a server with built-in `fetch`.

## Read the result

The response contains `request_id`, `tool`, `result_count`, `people`, `companies`, `search_results`, and `citations`. A people search fills `people`; a company search fills `companies`. You may receive fewer results than requested when the available evidence does not satisfy the query.

Keep `request_id` with its ordered results. Base search does not return the selected email or phone enrichment. To request those details, choose specific results and [continue with enrichment](https://docs.vsyble.com/guides/search-and-enrich.md).

## Next steps

[Add filters](https://docs.vsyble.com/api/search.md) · [Understand errors](https://docs.vsyble.com/api/errors.md) · [Use the JavaScript client](https://docs.vsyble.com/sdk/javascript.md) · [Connect an assistant](https://docs.vsyble.com/mcp/overview.md)


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