# getTeamActivityTimeseries

Daily team activity rows for a reporting period (same period values as getTeamAnalyticsOverview): calls, texts, emails, tasks, appointments, active agents, and new leads per day. For charting trends. Nightly (asOfDate), never today. Admins.

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

## Variables

- `period`: `AgentAnalyticsPeriod` (default `THIRTY_DAYS`, one of `SEVEN_DAYS`, `FOURTEEN_DAYS`, `THIRTY_DAYS`, `SIXTY_DAYS`, `THIS_MONTH`, `YEAR_TO_DATE`)

## Response (data, an example)

```json
{
  "teamAnalyticsQuery": {
    "agentTeamActivityTimeseries": {
      "asOfDate": "…",
      "rows": [
        {
          "asOfDate": "…",
          "calls": 0,
          "texts": 0,
          "emails": 0,
          "tasks": 0,
          "appointments": 0,
          "activeAgents": 0,
          "newLeads": 0
        }
      ]
    }
  }
}
```

## Example

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