# Create a FAQ

Creates a FAQ.

```http
POST https://api.pozy.ai/v1/accounts/{accountId}/business-agent/faqs
```

- Area: WhatsApp / Business Agent
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `accountId` (string, required)

## Request body

Content type: `application/json`

- `question`, string, required: Up to 1000 characters
- `answer`, string, required: Up to 8000 characters
- `metadata`, map of string

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/business-agent/faqs" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "question": "string",
  "answer": "string"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/business-agent/faqs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    question: "string",
    answer: "string"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.post(
    "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/business-agent/faqs",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "question": "string",
        "answer": "string",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 201

- `question`, string, required: Up to 1000 characters
- `answer`, string, required: Up to 8000 characters
- `metadata`, map of string
- `id`, string, required
- `created_at`, integer

```json
{
  "question": "string",
  "answer": "string",
  "metadata": {
    "key": "string"
  },
  "id": "6bfebd43ddc270f6d2c56fc5",
  "created_at": 1
}
```
