curl https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/digestSubscriptions \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"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"
}
]
}
{ "code": 16, "message": "unauthenticated" }
API
List digest subscriptions
Digest email recipients, digests and schedules for a workspace
curl https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/digestSubscriptions \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"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"
}
]
}
{ "code": 16, "message": "unauthenticated" }
Returns every digest email subscription in the workspace, as listed under Digest Emails in 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.
See Errors for the rest.
Authorization
Requires an Admin API key, or an OAuth sign-in with Admin access by any workspace member. Read and Write keys get403, and a sign-in with Read or Write access gets an insufficient_scope challenge for macroscope:admin.
Bearer <key>. See Authentication.Path parameters
Response
DigestSubscription
The digest:
DIGEST_REPORT_TYPE_PROJECT_ACTIVITY (the workspace-wide activity digest) or DIGEST_REPORT_TYPE_AREA_ACTIVITY (the activity digest of one area).How often the digest is sent:
DIGEST_CADENCE_DAILY, DIGEST_CADENCE_WEEKLY, DIGEST_CADENCE_BIWEEKLY, DIGEST_CADENCE_MONTHLY or DIGEST_CADENCE_QUARTERLY.Weekday the digest is sent on, from
0 (Sunday) to 6 (Saturday). Omitted when not set. A present 0 means Sunday.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.Area of an area digest, as returned by List areas. Present only for
DIGEST_REPORT_TYPE_AREA_ACTIVITY.Errors
| HTTP | Meaning |
|---|---|
403 | Your credential or your permissions do not allow managing digests |
curl https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/digestSubscriptions \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"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"
}
]
}
{ "code": 16, "message": "unauthenticated" }