# Report daily engagement

Reports daily engagement. Works with Shopify accounts.

```http
POST https://api.pozy.ai/v1/commerce/marketing-activities/{remoteId}/engagements
```

- Area: Commerce / Commerce
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `remoteId` (string, required)

## Request body

Content type: `application/json`

- `accountId`, string, required
- `date`, string (date), required
- `impressions`, integer: At least 0
- `views`, integer: At least 0
- `clicks`, integer: At least 0
- `shares`, integer: At least 0
- `likes`, integer: At least 0
- `comments`, integer: At least 0
- `adSpend`, string

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/commerce/marketing-activities/6f548f9d20d8d19954bd9bff/engagements" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "date": "2026-10-02T09:00:00.000Z"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/commerce/marketing-activities/6f548f9d20d8d19954bd9bff/engagements", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    accountId: "696e0b682d0a31188e7a2ba9",
    date: "2026-10-02T09:00:00.000Z"
  }),
});
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/commerce/marketing-activities/6f548f9d20d8d19954bd9bff/engagements",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "accountId": "696e0b682d0a31188e7a2ba9",
        "date": "2026-10-02T09:00:00.000Z",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 201

- `remoteId`, string
- `recorded`, boolean

```json
{
  "remoteId": "6f548f9d20d8d19954bd9bff",
  "recorded": true
}
```
