Skip to main content
Returns the product and reporting settings from the workspace’s settings page: 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. 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; the others have their own operations, listed under 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 can read them at any access level.
string
required
Bearer <key>. See Authentication.

Path parameters

string
required
GITHUB_ORGANIZATION or GITHUB_USER.
string
required
Numeric GitHub ID of the organization or user.

Response

WorkspaceSettings

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 is enabled. A setting returned as false is explicitly off.
string
The Product Overview that guides commit summaries and reports. Omitted when none is saved or Status is not enabled.
string
Custom Agent Instructions applied to every conversation with the Macroscope agent. An empty string means there are no instructions.
string
IANA timezone in which reports and reporting periods are computed, such as "America/Los_Angeles". The same value is returned by Get workspace.
integer
Weekday of the weekly reporting boundary, from 0 (Sunday) to 6 (Saturday). A present 0 means Sunday.
integer
Hour of the weekly reporting boundary in timezone, from 0 to 23. A present 0 means midnight.
string
Who can see Productivity 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).
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.
boolean
Whether contributors outside the GitHub organization count in productivity statistics.
boolean
Whether contributors outside the GitHub organization count in commit summaries and reports.
object
Excluded commit authors, whose commits are left out of productivity statistics and summaries.
boolean
Whether the Macroscope agent can search the web.
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.
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.