---
title: "Proxy a vCard (.vcf) file so LiveChat can parse and render it"
description: "Fetches a vCard from an allow-listed host server-side and returns the raw text. Contact cards sent by flows are hosted on vcf.fyi, which serves no CORS headers, so a browser fetch is blocked. This same-origin proxy lets LiveChat parse the vCard into a rich contact card. Host allow-list prevents SSRF (no fetching arbitrary/internal URLs).\n"
---

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

Path: Channel Automation API › Media

`GET /api/media/vcard`

Fetches a vCard from an allow-listed host server-side and returns the raw text. Contact cards sent by flows are hosted on vcf.fyi, which serves no CORS headers, so a browser fetch is blocked. This same-origin proxy lets LiveChat parse the vCard into a rich contact card. Host allow-list prevents SSRF (no fetching arbitrary/internal URLs).

## Authentication

Requires one of the following:

- `BearerAuth`, http, header `Authorization`, format `JWT`
- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Query parameters

- `url` (`get/api/media/vcard.query.url`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.channelautomation.com/api/media/vcard?url=string' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/media/vcard?url=string';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/media/vcard?url=string"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Raw vCard text (text/vcard).

### 400

Missing or disallowed URL.

### 502

Upstream fetch failed.


Source: https://developer.channelautomations.com/api/get-api-media-vcard/index.md
