> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cortex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflows

Use these operations to interact with [Workflows](https://docs.cortex.io/streamline/workflows) in Cortex.

For complete definitions you can send to the **Create or update workflow** endpoint, see [Example Workflow definitions](https://docs.cortex.io/streamline/workflows/example-workflow-definitions.md).

### Required permissions

* View Workflows: Your API key must have the `View Workflows` permission.
* Create or update Workflows: Your API key must have the `Edit Workflows` permission.
* Callback a paused async HTTP block: Your API key must have the `Execute Workflow Runs` permission.
* Run a workflow: Your API key must have the `Execute Workflow Runs` permission.
* View or list workflow runs: Your API key must have the `View workflow runs` permission.

## Operations

> [card] [List workflows](https://docs.cortex.io/api/rest/workflows/list-workflows.md)
>
> `GET /api/v1/workflows`

> [card] [Retrieve workflow](https://docs.cortex.io/api/rest/workflows/retrieve-workflow.md)
>
> `GET /api/v1/workflows/{tagOrId}`

> [card] [Create or update workflow](https://docs.cortex.io/api/rest/workflows/create-or-update-workflow.md)
>
> `POST /api/v1/workflows`

> [card] [Validates YAML descriptor](https://docs.cortex.io/api/rest/workflows/validates-yaml-descriptor.md)
>
> `POST /api/v1/workflows/validate`

> [card] [Update asynchronous HTTP request Workflow block](https://docs.cortex.io/api/rest/workflows/update-asynchronous-http-request-workflow-block.md)
>
> `POST /api/v1/workflows/{tagOrId}/callback/{callbackId}`

> [card] [Delete workflow](https://docs.cortex.io/api/rest/workflows/delete-workflow.md)
>
> `DELETE /api/v1/workflows/{tagOrId}`

> [card] [Run a workflow](https://docs.cortex.io/api/rest/workflows/run-a-workflow.md)
>
> `POST /api/v1/workflows/{tagOrId}/runs`

> [card] [Get workflow run details](https://docs.cortex.io/api/rest/workflows/get-workflow-run-details.md)
>
> `GET /api/v1/workflows/{tagOrId}/runs/{runId}`

> [card] [List workflow runs](https://docs.cortex.io/api/rest/workflows/list-workflow-runs.md)
>
> `GET /api/v1/workflows/runs`


## Related topics

- [Workflows](https://docs.cortex.io/streamline/workflows.md)
- [Workflows as code](https://docs.cortex.io/streamline/workflows/workflows-as-code.md)
- [Viewing Workflows](https://docs.cortex.io/streamline/workflows/viewing-workflows.md)
