# Get the agenda

What is due today (or on `date`): next actions that fall due or are overdue (follow-ups, recontacts, rescans, approvals), snoozes that end (the row is `new` again), and people back from out of office; plus today's counts and the bounce rate of the last 7 days. Start every working session with this instead of keeping your own calendar. The user sees the same in Companies and Leads with the filter Next action.

## Authentication

Send `Authorization: Bearer gtk_…`. Create the key under **Connect assistant → API keys**. Every `gtk_` key can call these routes, also while the Signals API is closed. A missing, invalid or revoked key is **401**.

### Query parameters

- **`date`** `string` — `YYYY-MM-DD` or `today` (default).
- **`tz`** `string` — An IANA time zone for the day. Defaults to Europe/Brussels.
- **`owner`** `string` — Only the rows of one owner: `me`, a colleague's email address or user id (GET /team), or `none`. With several SDRs, each reads their own agenda.

## Response

- **`object`** `string` · **required** — Always `agenda`. One of: `agenda`.
- **`date`** `string` · **required** — The day.
- **`time_zone`** `string` · **required** — The time zone of that day.
- **`counts`** `object` · **required** — `total`, `overdue`, and per kind.
- **`data`** `object[]` · **required** — Oldest first: `id` (the row), `object`, `name`, `company`, `kind` (`follow_up`, `recontact`, `rescan`, `approval`, `other`, `snooze_ends`, `back_from_out_of_office`), `label`, `at`, `note`, `overdue`, `owner_id`, and `email` when you planned the email of that next action (`subject`, `text`, `step`, `template`, and `to`: the address you gave, otherwise the row’s): show the user that text and send it only after their yes.
- **`today`** `object | null` · **required** — Since midnight: `emails_sent`, `replies` (`email_replied` and `referral`), `meetings`, `bounces`, `unsubscribes`, `not_interested`, `out_of_office` and `referrals`. The same definitions as a campaign’s counts.
- **`last_7_days`** `object | null` · **required** — The same counts over 7 days, plus `bounce_rate` (a percentage, or null without emails).
- **`dashboard_url`** `string` · **required** — Companies in mySDR, filtered on what is due.

## Credits

Free. This call never uses credits.

## Errors

- **400** `invalid_request` — A `date` that is not YYYY-MM-DD, an unknown `tz`, or an `owner` who is not in the organization.
- **401** `authentication_error` — The Authorization header is missing, or the key is unknown or revoked.
- **403** `permission_error` — API access is not part of your plan, or your account is suspended.
- **429** `rate_limit_error` — More than 60 requests per minute, or more than 3 at the same time, on one key. Wait for the Retry-After header.
- **503** `service_unavailable` — The API is temporarily unavailable. Retry later.
- **500** `internal_error` — Something went wrong on our side.

## Example

### cURL

```bash
curl "https://mysdr.app/api/v1/agenda?date=today" \
  -H "Authorization: Bearer $MYSDR_API_KEY"
```

### JavaScript

```javascript
const response = await fetch('https://mysdr.app/api/v1/agenda?date=today', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.MYSDR_API_KEY}`
  }
});
const body = await response.json();
```

### Python

```python
import json
import os
import urllib.request

request = urllib.request.Request(
    "https://mysdr.app/api/v1/agenda?date=today",
    headers={
    "Authorization": f"Bearer {os.environ['MYSDR_API_KEY']}"
    },
    method="GET",
)
with urllib.request.urlopen(request) as response:
    body = json.load(response)
```

### Example response

```json
{
  "object": "agenda",
  "date": "2026-10-29",
  "time_zone": "Europe/Brussels",
  "counts": {
    "total": 2,
    "overdue": 1,
    "follow_up": 1,
    "back_from_out_of_office": 1
  },
  "data": [
    {
      "id": "sav_2b9e8d10-7f4a-4a51-8c2e-5d1f0a3b6c77",
      "object": "company",
      "name": "Acme Logistics",
      "company": null,
      "kind": "follow_up",
      "label": "Follow-up",
      "at": "2026-10-28T08:00:00.000Z",
      "note": "Step 2",
      "overdue": true
    },
    {
      "id": "sav_7c1f2a40-5b0e-4c3e-9a71-2f7d3e0c9b11",
      "object": "person",
      "name": "Jane Example",
      "company": "Beta Foods",
      "kind": "back_from_out_of_office",
      "label": "Back from out of office",
      "at": "2026-10-29T08:00:00.000Z",
      "note": null,
      "overdue": false
    }
  ],
  "today": {
    "emails_sent": 4,
    "replies": 1,
    "meetings": 0,
    "bounces": 0,
    "unsubscribes": 0,
    "not_interested": 0,
    "out_of_office": 0,
    "referrals": 0
  },
  "last_7_days": {
    "emails_sent": 38,
    "replies": 6,
    "meetings": 1,
    "bounces": 1,
    "unsubscribes": 0,
    "not_interested": 2,
    "out_of_office": 1,
    "referrals": 1,
    "bounce_rate": 2.6
  },
  "dashboard_url": "https://mysdr.app/en/gtm/companies?due=today"
}
```
