- API reference
- Workspaces
- Return all workspaces
https://api.us.nylas.com/v3/workspacesReturn all workspaces
Returns all workspaces in your Nylas application. The application queried is determined based on the API key you use to authorize your request.
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: Forbidden. The API key doesn't have the permission that the request requires.