# Mastra.getWorkflows()
[EN] Source: https://mastra.ai/reference/core/getWorkflows

The `.getWorkflows()` method is used to retrieve all workflows that have been configured in the Mastra instance. The method accepts an optional options object.

## Usage example

```typescript copy
mastra.getWorkflows();
```

## Parameters

<PropertiesTable
  content={[
    {
      name: "options",
      type: "{ serialized?: boolean }",
      description:
        "Optional configuration object. When `serialized` is true, returns simplified workflow objects with only the name property instead of full workflow instances.",
      optional: true,
    },
  ]}
/>

## Returns

<PropertiesTable
  content={[
    {
      name: "workflows",
      type: "Record<string, Workflow>",
      description:
        "A record of all configured workflows, where keys are workflow IDs and values are workflow instances (or simplified objects if serialized is true).",
    },
  ]}
/>

## Related

- [Workflows overview](/docs/workflows/overview)


---
title: "Reference: Mastra.listLogs() | Core"
description: "Documentation for the `Mastra.listLogs()` method in Mastra, which retrieves all logs for a specific transport ID."
---