- API reference
- Manage Grants
- Get current grant
https://api.us.nylas.com/v3/grants/meGet current grant
Gets a grant using current access token
account_idstringThe v2 Nylas account ID. This field appears only if the grant was created by migrating a v2 connected account.
"df0yq6c9okc6t9j4ejd5nyrt7"false1617817109emailstringThe email address associated with the grant. If the provider supports id_token and exposes the
user's email address, Nylas automatically extracts this value.
"[email protected]""valid""1.1.1.1""microsoft"provider_user_idstringThe user's provider ID. This field might be changed at any time by the provider.
"b16f171c-6640-4edd-a598-e507b546d841"scope*array<string>An array of granular scopes associated with the grant. If none are specified, Nylas uses the default scopes from the connector.
["Mail.Read","User.Read","offline_access"]email_aliasesarray<string>An array of found email aliases for this grant. Only returned if special query parameter expose_aliases for
Get Grant is used and set to true.
Applicable only for Google and Microsoft grants.
For Microsoft, aliases require a Microsoft 365 / Exchange Online mailbox. Free Outlook.com
(consumer) accounts have no aliases to expose, so this field is omitted from the response
even when expose_aliases=true.
["[email protected]","[email protected]"]statestringThe initial state that was set as part of the authentication process. Nylas passes this value back to your project without modifying it. You can use this field for verification, or to track information about the user.
"my-state"updated_atintegerWhen the user last authenticated their grant, in seconds using the Unix timestamp format.
Initially, this value is the same as created_at.
1617817109workspace_idstringThe ID of the workspace the grant belongs to, if any. Nylas always returns this field for Agent Accounts. For grants from other providers, Nylas omits it when the grant is in the application's default workspace and returns it when the grant is in any other workspace.
"abf6ff99-05ad-4c0a-aaf8-400aacf2470a"