API referenceSmart composeCompose a messagePOSThttps://api.us.nylas.comhttps://api.eu.nylas.com/v3/grants/{grant_id}/messages/smart-composeCompose a messageActionsGenerates a message based on a prompt. NYLAS API KEYACCESS TOKENParametersPath parametersgrant_id*stringID of the grant to access. Use /me/ to refer to the grant associated with an access token.Request bodySchemaJSONpromptstringThe prompt that Smart Compose uses to generate a message suggestion.Example: "Reply to John Doe about the upcoming project."maxLength: 1000Responses200Returns a suggestion for a messageContent-Type: application/json, text/event-streamrequest_idstringThe request ID.dataobject400Bad Request401Unauthorized422Validation Error500Unexpected ErrorTry itPOSThttps://api.us.nylas.com/v3/grants/{grant_id}/messages/smart-composeAuthorizationAPI keyAccess tokenFind your API key in the Nylas Dashboard under API Keys in your application settings.ServerU.S. (https://api.us.nylas.com)E.U. (https://api.eu.nylas.com)Path parametersgrant_idrequiredstringID of the grant to access. Use /me/ to refer to the grant associated with an access token.Request bodyLoading editor...Autocomplete and validation come from this endpoint's request schema.