Skip to content
dimmiDocs

Workspace and team

Get the sign-in rules

GET/api/v1/workspace/access-policy

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:read ability

Response 200

OK
dataobjectrequired
Show child attributes
allowed_sign_in_methodsstring[] | nullrequired

The ways of signing in the workspace accepts, such as password, magic_link, google or sso. Empty means every way is accepted.

api_ip_allowlistobject[] | nullrequired

Address ranges access tokens may call the API from. Empty means from anywhere.

Show child attributes
cidrstringrequired

An address range in CIDR form, or a single IP address, such as 203.0.113.0/24.

labelstringrequired

What the workspace calls this range, such as Office.

available_sign_in_methodsstring[] | nullrequired

The ways of signing in this install offers, such as password, magic_link, google or sso. allowed_sign_in_methods must be picked from these.

dashboard_ip_allowlistobject[] | nullrequired

Address ranges browsers and apps may use the dashboard from. Empty means from anywhere.

Show child attributes
cidrstringrequired

An address range in CIDR form, or a single IP address, such as 203.0.113.0/24.

labelstringrequired

What the workspace calls this range, such as Office.

google_allowed_domainsstring[] | nullrequired

Google hosted domains a Google sign-in may come from, such as example.com. Empty means any.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

require_two_factorbooleanrequired

Whether members must use two-factor authentication to use the workspace.

session_idle_timeout_minutesinteger | nullrequired

Minutes a session may sit unused before it ends, from 15 to 20160. Null means no limit.

Format: int64

session_max_age_minutesinteger | nullrequired

Minutes a session may last in total before signing in again, from 60 to 43200. Null means no limit.

Format: int64

sso_enforcedbooleanrequired

True when the organization enforces a single sign-on connection for this workspace.

tokens_outsideintegerrequired

How many live tokens were last used from an address outside api_ip_allowlist, so the list would stop them. 0 when the list is empty.

Format: int64

your_ipstringrequired

The IP address the caller is seen at, such as 203.0.113.7. Empty when it is not known.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.