Create a workflow
Changed onCreates a grant-level workflow.
<div id="admonition-info">ℹ️ <b>You must have an existing <a href="/docs/reference/api/grant-level-templates/">template</a> to create a workflow</b>.</div>Request
- Base URLhttps://api.us.nylas.com
- Auth
- HTTP bearer
- or HTTP bearer
Request body
Example request
{
"delay": 5,
"is_enabled": true,
"name": "New booking confirmation workflow",
"template_id": "14c00cc8-648c-4381-ad10-52641d9bac8e",
"trigger_event": "booking.created",
"from": {
"email": "support@example.com",
"name": "Support"
}
}Response
Success. Returns workflow.
Example response
{
"data": {
"app_id": "6c45fe5e-0bb6-41b9-9acc-ccb15bfc51eb",
"date_created": 1756477389,
"delay": 5,
"grant_id": "6c45fe5e-0bb6-41b9-9acc-ccb15bfc51eb",
"id": "b79c82b2-a51b-4c54-8469-28006a43551a",
"is_enabled": true,
"name": "New booking confirmation workflow",
"template_id": "14c00cc8-648c-4381-ad10-52641d9bac8e",
"trigger_event": "booking.created",
"from": {
"email": "support@example.com",
"name": "Support"
}
}
}Changes
- breaking
removed the enum value
message.createdof the request property - breaking
removed the enum value
message.updatedof the request property - info
removed the
message.createdenum value from the/response property for the response status - info
removed the
message.updatedenum value from the/response property for the response status
- breaking
- warning
added the new
calendar.createdenum value to the/response property for the response status - warning
added the new
calendar.deletedenum value to the/response property for the response status - warning
added the new
calendar.updatedenum value to the/response property for the response status - warning
added the new
contact.deletedenum value to the/response property for the response status - warning
added the new
contact.updatedenum value to the/response property for the response status - warning
added the new
event.createdenum value to the/response property for the response status - warning
added the new
event.deletedenum value to the/response property for the response status - warning
added the new
event.updatedenum value to the/response property for the response status - warning
added the new
folder.createdenum value to the/response property for the response status - warning
added the new
folder.deletedenum value to the/response property for the response status - warning
added the new
folder.updatedenum value to the/response property for the response status - warning
added the new
grant.createdenum value to the/response property for the response status - warning
added the new
grant.deletedenum value to the/response property for the response status - warning
added the new
grant.expiredenum value to the/response property for the response status - warning
added the new
grant.imap_sync_completedenum value to the/response property for the response status - warning
added the new
grant.updatedenum value to the/response property for the response status - warning
added the new
message.bounce_detectedenum value to the/response property for the response status - warning
added the new
message.createdenum value to the/response property for the response status - warning
added the new
message.link_clickedenum value to the/response property for the response status - warning
added the new
message.openedenum value to the/response property for the response status - warning
added the new
message.send_failedenum value to the/response property for the response status - warning
added the new
message.send_successenum value to the/response property for the response status - warning
added the new
message.updatedenum value to the/response property for the response status - warning
added the new
notetaker.createdenum value to the/response property for the response status - warning
added the new
notetaker.deletedenum value to the/response property for the response status - warning
added the new
notetaker.mediaenum value to the/response property for the response status - warning
added the new
notetaker.meeting_stateenum value to the/response property for the response status - warning
added the new
notetaker.updatedenum value to the/response property for the response status - warning
added the new
thread.repliedenum value to the/response property for the response status - info
added the new
calendar.createdenum value to the request property - info
added the new
calendar.deletedenum value to the request property - info
added the new
calendar.updatedenum value to the request property - info
added the new
contact.deletedenum value to the request property - info
added the new
contact.updatedenum value to the request property - info
added the new
event.createdenum value to the request property - info
added the new
event.deletedenum value to the request property - info
added the new
event.updatedenum value to the request property - info
added the new
folder.createdenum value to the request property - info
added the new
folder.deletedenum value to the request property - info
added the new
folder.updatedenum value to the request property - info
added the new
grant.createdenum value to the request property - info
added the new
grant.deletedenum value to the request property - info
added the new
grant.expiredenum value to the request property - info
added the new
grant.imap_sync_completedenum value to the request property - info
added the new
grant.updatedenum value to the request property - info
added the new
message.bounce_detectedenum value to the request property - info
added the new
message.createdenum value to the request property - info
added the new
message.link_clickedenum value to the request property - info
added the new
message.openedenum value to the request property - info
added the new
message.send_failedenum value to the request property - info
added the new
message.send_successenum value to the request property - info
added the new
message.updatedenum value to the request property - info
added the new
notetaker.createdenum value to the request property - info
added the new
notetaker.deletedenum value to the request property - info
added the new
notetaker.mediaenum value to the request property - info
added the new
notetaker.meeting_stateenum value to the request property - info
added the new
notetaker.updatedenum value to the request property - info
added the new
thread.repliedenum value to the request property
- warning