Skip to content
Skip to main content
POST
https://api.us.nylas.com/v3/workspaces/auto-group

Auto-group grants

Starts a background job that sorts grants into workspaces by email domain, depending on the filters set. The job considers only grants that aren't in a workspace yet. If you don't set any filters, Nylas considers all unassigned grants in the application.

If no workspace exists for a grant's domain, the job creates one with auto_group set to true and a generated name.

NYLAS API KEY

Request body

after_created_atnumber

Applies automatic grouping settings to grants created at or after the specified time, in seconds using the Unix timestamp format.

Example: 1622548800
invalid_alsoboolean

When true, applies automatic grouping settings to both invalid and valid grants. When false, applies settings to valid grants only.

Default: false
Example: false
specific_domainstring

Applies automatic grouping settings to grants with the specified email domain only.

Example: "nylas.com"

Responses

request_idstring

The request ID.

Example: "5967ca40-a2d8-4ee0-a0e0-6f18ace39a90"
dataobject
POSThttps://api.us.nylas.com/v3/workspaces/auto-group

Find your API key in the Nylas Dashboard under API Keys in your application settings.

Loading editor...

Autocomplete and validation come from this endpoint's request schema.