- API reference
- Workspaces
- Return a workspace
https://api.us.nylas.com/v3/workspaces/{workspace_id}Return a workspace
Returns the specified workspace. You can use the workspace's domain in place of the workspace ID.
Works with an API key or an IAM API key with the workspaces.read permission.
"ad410018-d306-43f9-8361-fa5d7b2172e0"auto_groupbooleanWhen true, specifies that newly created grants in the application are automatically assigned
to the workspace if their email address' domain matches the domain.
true1756379932defaultbooleanWhen true, the workspace is the application's default workspace, which Nylas creates and
manages. Nylas includes this field only in responses to GET requests. For more information, see
the Workspaces overview.
falsedomainstringThe email domain associated with the workspace. Nylas omits this field if the workspace was created without a domain.
"nylas.com"policy_idstringThe ID of the policy attached to the workspace. The policy applies to Agent Accounts in the workspace. Nylas omits this field if the workspace has no policy.
"6dcc5d92-8a55-4ce8-85a8-2f4275f8f0a0"rule_idsarray<string>The IDs of any rules attached to the workspace. The rules apply to Agent Accounts in the workspace. Nylas omits this field if the workspace has no rules.
["3f2504e0-4f89-41d3-9a0c-0305e82c3301"]Error: Bad request. The workspace_id value isn't a workspace ID or a valid domain.
Error: Forbidden. The API key doesn't have the permission that the request requires.