# Create a standalone creative

Creates a standalone creative. Works with Meta Ads.

```http
POST https://api.pozy.ai/v1/ads/creatives
```

- Area: Ads / Ad Creatives
- Auth: Authorization: Bearer pz_live_...

## Request body

Content type: `application/json`

- `accountId`, string, required
- `adAccountId`, string, required
- `headline`, string, required: Up to 255 characters
- `body`, string, required
- `description`, string: Up to 255 characters
- `callToAction`, string: Default `LEARN_MORE`
- `linkUrl`, string (URL), required
- `imageUrl`, string (URL)
- `imageHash`, string
- `carouselCards`, array of object: At least 2 items. Up to 10 items
  - `imageUrl`, string (URL), required
  - `linkUrl`, string (URL), required
  - `headline`, string: Up to 255 characters
  - `description`, string: Up to 255 characters
  - `callToAction`, string
- `optimizeCardOrder`, boolean
- `urlTags`, string
- `promotion`, object: Can be null
- `creativeFeatures`, map of string
- `multiAdvertiser`, string: One of `OPT_IN`, `OPT_OUT`
- `aiDisclosure`, string: One of `OPT_IN`, `OPT_OUT`

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/ads/creatives" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "adAccountId": "666219aad7bab67ace411e4f",
  "headline": "Launch day",
  "body": "string",
  "linkUrl": "https://pozy.ai/media/example-1.jpg"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/ads/creatives", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    accountId: "696e0b682d0a31188e7a2ba9",
    adAccountId: "666219aad7bab67ace411e4f",
    headline: "Launch day",
    body: "string",
    linkUrl: "https://pozy.ai/media/example-1.jpg"
  }),
});
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/ads/creatives",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "accountId": "696e0b682d0a31188e7a2ba9",
        "adAccountId": "666219aad7bab67ace411e4f",
        "headline": "Launch day",
        "body": "string",
        "linkUrl": "https://pozy.ai/media/example-1.jpg",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 201

- `adAccountId`, string
- `creativeId`, string

```json
{
  "adAccountId": "666219aad7bab67ace411e4f",
  "creativeId": "68c59681516c848d73eebe49"
}
```
