# Create Pinterest board

Creates a Pinterest board.

```http
POST https://api.pozy.ai/v1/accounts/{accountId}/pinterest-boards
```

- Area: Accounts & connections / Connect
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `accountId` (string, required)

## Request body

Content type: `application/json`

- `name`, string, required
- `description`, string
- `privacy`, string: One of `PUBLIC`, `PROTECTED`, `SECRET`. Default `PUBLIC`

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/pinterest-boards" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/pinterest-boards", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    name: "Acme"
  }),
});
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/pinterest-boards",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "name": "Acme",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 201

- `board`, object
  - `id`, string
  - `name`, string
  - `description`, string
  - `privacy`, string
  - `url`, string

```json
{
  "board": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "name": "Acme",
    "description": "A short description",
    "privacy": "string",
    "url": "https://pozy.ai/media/example-1.jpg"
  }
}
```
