# Grant-level workflows

Source: https://developer.nylas.com/docs/reference/api/grant-level-workflows/

Grant-level workflows automatically send messages to certain users when a defined event is triggered. For example, if you want to send a confirmation message when a user schedules a booking, you can create a workflow that listens for [`booking.created` events](/docs/reference/notifications/#booking-created-notifications).

Each workflow is linked to the grant specified in the [Create Workflow request](/docs/reference/api/grant-level-workflows/create-grant-workflow/).

<div id="admonition-info">💡 <b>If you want to create workflows for a Nylas application, use the <a href="/docs/reference/api/application-level-workflows/">application-level workflows endpoints</a></b>.</div>


## Endpoints

- **GET** `/v3/grants/{grant_id}/workflows` - [Return all workflows](https://developer.nylas.com/docs/reference/api/grant-level-workflows/list-grant-workflows/)
- **POST** `/v3/grants/{grant_id}/workflows` - [Create a workflow](https://developer.nylas.com/docs/reference/api/grant-level-workflows/create-grant-workflow/)
- **GET** `/v3/grants/{grant_id}/workflows/{workflow_id}` - [Get a workflow](https://developer.nylas.com/docs/reference/api/grant-level-workflows/get-grant-workflow/)
- **PUT** `/v3/grants/{grant_id}/workflows/{workflow_id}` - [Update a workflow](https://developer.nylas.com/docs/reference/api/grant-level-workflows/update-grant-workflow/)
- **DELETE** `/v3/grants/{grant_id}/workflows/{workflow_id}` - [Delete a workflow](https://developer.nylas.com/docs/reference/api/grant-level-workflows/delete-grant-workflow/)
