> ## 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.

# Get workspace settings

> See a workspace's product and reporting settings and the settings you can change

Returns the product and reporting settings from the workspace's [settings page](https://docs.macroscope.com/settings.md#workspace-settings): Product Overview, Custom Agent Instructions, the weekly reporting boundary, Productivity visibility, external contributors, excluded commit authors, web search, Slack thread follow-up and inference residency. It also returns the settings your credential can change and the `etag` to pass when you [update the settings](https://docs.macroscope.com/api-reference/endpoint/update-workspace-settings.md).

This operation does not return team enablement, digest subscriptions, the administrative contact, the log export or delegated admins. Read enabled teams with [List team memberships](https://docs.macroscope.com/api-reference/endpoint/list-team-memberships.md); the others have their own operations, listed under [Endpoints](https://docs.macroscope.com/api#endpoints).

## Authorization

Use a Read, Write, or Admin key for the workspace. **V1 read** keys cannot read workspace settings. Clients connected with [OAuth sign-in](https://docs.macroscope.com/api-reference/mcp.md#permissions) can read them at any access level.

**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

**settings** `WorkspaceSettings`

**properties**

**etag** `string`

Opaque tag of the values an update can change. It changes whenever one of those values changes, through the API or the app. Inference residency is not covered. Pass it unchanged when updating settings; do not parse it.

**values** `WorkspaceSettingValues`

The current values.

**editableFields** `string`

Comma-separated names of the settings you can change with your credential, your permissions in the workspace and the features enabled for it. An empty string means you cannot change any settings.

### WorkspaceSettingValues

Settings that depend on a feature the workspace does not have are omitted. Product Overview, timezone and the reporting boundary are returned only when [Status](https://docs.macroscope.com/status.md) is enabled. A setting returned as `false` is explicitly off.

**productOverview** `string`

The Product Overview that guides commit summaries and reports. Omitted when none is saved or Status is not enabled.

**customAgentInstructions** `string`

[Custom Agent Instructions](https://docs.macroscope.com/settings.md#workspace-settings) applied to every conversation with the Macroscope agent. An empty string means there are no instructions.

**timezone** `string`

IANA timezone in which reports and reporting periods are computed, such as `"America/Los_Angeles"`. The same value is returned by [Get workspace](https://docs.macroscope.com/api-reference/endpoint/get-workspace.md).

**reportingBoundaryWeekday** `integer`

Weekday of the weekly reporting boundary, from `0` (Sunday) to `6` (Saturday). A present `0` means Sunday.

**reportingBoundaryHour** `integer`

Hour of the weekly reporting boundary in `timezone`, from `0` to `23`. A present `0` means midnight.

**productivityVisibility** `string`

Who can see [Productivity](https://docs.macroscope.com/productivity.md) pages in the Macroscope app: `PRODUCTIVITY_VISIBILITY_EVERYONE` (every workspace member), `PRODUCTIVITY_VISIBILITY_TEAM` (workspace admins and the members of `productivityVisibilityTeamId`) or `PRODUCTIVITY_VISIBILITY_OFF` (workspace admins only).

**productivityVisibilityTeamId** `string`

GitHub team ID, as a decimal string, whose members can see Productivity pages under `PRODUCTIVITY_VISIBILITY_TEAM`. Treat as a string, not a number. Omitted means no team.

**includeExternalContributorsInProductivity** `boolean`

Whether contributors outside the GitHub organization count in productivity statistics.

**includeExternalContributorsInSummaries** `boolean`

Whether contributors outside the GitHub organization count in commit summaries and reports.

**excludedCommitAuthors** `object`

[Excluded commit authors](https://docs.macroscope.com/settings.md#excluded-commit-authors), whose commits are left out of productivity statistics and summaries.

**properties**

**authors** `object[]`

The excluded authors, GitHub accounts first and then names. Omitted when there are none. Each has exactly one of `githubUserId`, a GitHub user ID as a decimal string, or `name`, a Git commit author name for commits no GitHub account claims, matched without regard to case or surrounding spaces.

**webSearchEnabled** `boolean`

Whether the Macroscope agent can search the web.

**slackThreadFollowEnabled** `boolean`

Whether the Macroscope agent follows up in Slack threads it has replied in. Omitted when Slack thread follow-up is not available for the workspace.

**inferenceResidency** `string`

Where the workspace's AI inference runs: `INFERENCE_RESIDENCY_GLOBAL` (any supported region) or `INFERENCE_RESIDENCY_US` (the United States only). Read-only through the API. Omitted when inference residency is not available for the workspace.

This example shows settings returned to an Admin key.

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

```python Python theme={null}
import os, requests

r = requests.get(
    "https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/settings",
    headers={"Authorization": f"Bearer {os.environ['MACROSCOPE_API_KEY']}"},
)
r.raise_for_status()
print(r.json())
```

```javascript JavaScript theme={null}
const res = await fetch(
  "https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/settings",
  { headers: { Authorization: `Bearer ${process.env.MACROSCOPE_API_KEY}` } }
);
if (!res.ok) throw new Error(`GET failed (${res.status})`);
console.log(await res.json());
```

```json 200 theme={null}
{
  "settings": {
    "etag": "pY3cE0mR9kQx7TfLw2sVbN4h",
    "values": {
      "productOverview": "Acme builds billing software for small businesses.",
      "customAgentInstructions": "Answer in short bullet points.",
      "timezone": "America/Los_Angeles",
      "reportingBoundaryWeekday": 5,
      "reportingBoundaryHour": 18,
      "productivityVisibility": "PRODUCTIVITY_VISIBILITY_TEAM",
      "productivityVisibilityTeamId": "4567890",
      "includeExternalContributorsInProductivity": false,
      "includeExternalContributorsInSummaries": true,
      "excludedCommitAuthors": {
        "authors": [{ "githubUserId": "49699333" }, { "name": "release-bot" }]
      },
      "webSearchEnabled": false,
      "slackThreadFollowEnabled": false,
      "inferenceResidency": "INFERENCE_RESIDENCY_GLOBAL"
    },
    "editableFields": "productOverview,customAgentInstructions,timezone,reportingBoundaryWeekday,reportingBoundaryHour,productivityVisibility,productivityVisibilityTeamId,includeExternalContributorsInProductivity,includeExternalContributorsInSummaries,excludedCommitAuthors,webSearchEnabled,slackThreadFollowEnabled"
  }
}
```


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