> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macroscope.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List digest subscriptions

> Digest email recipients, digests and schedules for a workspace

Returns every digest email subscription in the workspace, as listed under **Digest Emails** in [workspace settings](https://docs.macroscope.com/settings.md#workspace-settings): each recipient, the digest they receive and its schedule. All subscriptions are returned without pagination.

The response includes every recipient's email address, and anyone who can call this operation sees all of them. Treat it as personal data.

## Authorization

Requires an **Admin** API key, or an [OAuth sign-in](https://docs.macroscope.com/api-reference/mcp.md#permissions) with **Admin** access by any workspace member. Read and Write keys get `403`, and a sign-in with Read or Write access gets an `insufficient_scope` challenge for `macroscope:admin`.

**Authorization** `string` *required*

`Bearer <key>`. See [Authentication](https://docs.macroscope.com/api#authentication).

## Path parameters

**workspaceType** `string` *required*

`GITHUB_ORGANIZATION` or `GITHUB_USER`.

**workspaceId** `string` *required*

Numeric GitHub ID of the organization or user.

## Response

**subscriptions** `DigestSubscription[]`

The subscriptions. Omitted when there are none.

### DigestSubscription

**reportType** `string`

The digest: `DIGEST_REPORT_TYPE_PROJECT_ACTIVITY` (the workspace-wide activity digest) or `DIGEST_REPORT_TYPE_AREA_ACTIVITY` (the activity digest of one [area](https://docs.macroscope.com/areas.md)).

**email** `string`

Recipient email address.

**cadence** `string`

How often the digest is sent: `DIGEST_CADENCE_DAILY`, `DIGEST_CADENCE_WEEKLY`, `DIGEST_CADENCE_BIWEEKLY`, `DIGEST_CADENCE_MONTHLY` or `DIGEST_CADENCE_QUARTERLY`.

**dayOfWeek** `integer`

Weekday the digest is sent on, from `0` (Sunday) to `6` (Saturday). Omitted when not set. A present `0` means Sunday.

**ordinalWeek** `integer`

Week of the period the digest is sent in: `1` to `5` for a monthly digest and `1` to `14` for a quarterly one. Omitted for other cadences.

**areaId** `string`

Area of an area digest, as returned by [List areas](https://docs.macroscope.com/api-reference/endpoint/list-areas.md). Present only for `DIGEST_REPORT_TYPE_AREA_ACTIVITY`.

## Errors

<table>
  <colgroup>
    <col width="100" />

    <col width="698" />
  </colgroup>

  <thead>
    <tr>
      <th>HTTP</th>
      <th>Meaning</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`403`</td>
      <td>Your credential or your permissions do not allow managing digests</td>
    </tr>
  </tbody>
</table>

See [Errors](https://docs.macroscope.com/api#errors) for the rest.

```bash cURL theme={null}
curl https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/digestSubscriptions \
  -H "Authorization: Bearer $MACROSCOPE_API_KEY"
```

```json 200 theme={null}
{
  "subscriptions": [
    {
      "reportType": "DIGEST_REPORT_TYPE_PROJECT_ACTIVITY",
      "email": "dana@acme.com",
      "cadence": "DIGEST_CADENCE_WEEKLY",
      "dayOfWeek": 1
    },
    {
      "reportType": "DIGEST_REPORT_TYPE_AREA_ACTIVITY",
      "email": "lee@acme.com",
      "cadence": "DIGEST_CADENCE_MONTHLY",
      "dayOfWeek": 5,
      "ordinalWeek": 1,
      "areaId": "3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b01"
    }
  ]
}
```

```json 401 theme={null}
{ "code": 16, "message": "unauthenticated" }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.