# getFormActiveTime

Daily active-engagement time on one form over a date range - per day: session count and active-millisecond percentiles (p50/p90), split by submitted vs abandoned sessions. startDate and endDate are ISO YYYY-MM-DD; ranges longer than 90 days are rejected.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "getFormActiveTime", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: yes

## Variables

- `formId`: `ID!` (required)
- `startDate`: `String!` (required)
- `endDate`: `String!` (required)

## Response (data, an example)

```json
{
  "embedFormQuery": {
    "analyticsActiveTime": [
      {
        "viewDate": "…",
        "sessions": 0,
        "p50ActiveMs": 0,
        "p90ActiveMs": 0,
        "medianActiveMsSubmitted": 0,
        "medianActiveMsAbandoned": 0
      }
    ]
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "getFormActiveTime",
    "variables": {
      "formId": "<formId>",
      "startDate": "<String>",
      "endDate": "<String>"
    }
  }'
```
