Mastra Workflows API
The Workflows API from Mastra — 8 operation(s) for workflows.
The Workflows API from Mastra — 8 operation(s) for workflows.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mastra-workflows-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Mastra Server REST Agents Workflows API
version: v1
description: 'REST routes exposed by a Mastra server for agents, workflows, tools,
memory, vectors, MCP servers, the Responses API, the Conversations API,
and observability (logs and telemetry traces).
'
contact:
name: Mastra
url: https://mastra.ai
servers:
- url: http://localhost:4111
description: Default local Mastra dev server
- url: https://{host}
description: Self-hosted or Mastra Cloud deployment
variables:
host:
default: your-mastra-host.example.com
security:
- BearerAuth: []
tags:
- name: Workflows
paths:
/api/workflows:
get:
summary: List workflows
operationId: listWorkflows
responses:
'200':
description: Array of workflows.
tags:
- Workflows
/api/workflows/{workflowId}:
get:
summary: Get a workflow
operationId: getWorkflow
parameters:
- $ref: '#/components/parameters/WorkflowId'
responses:
'200':
description: Workflow details.
tags:
- Workflows
/api/workflows/{workflowId}/create-run:
post:
summary: Create a workflow run
operationId: createWorkflowRun
parameters:
- $ref: '#/components/parameters/WorkflowId'
responses:
'200':
description: Run identifier returned.
tags:
- Workflows
/api/workflows/{workflowId}/start-async:
post:
summary: Start a workflow and await its result
operationId: startWorkflowAsync
parameters:
- $ref: '#/components/parameters/WorkflowId'
responses:
'200':
description: Workflow result.
tags:
- Workflows
/api/workflows/{workflowId}/stream:
post:
summary: Stream a workflow execution
operationId: streamWorkflow
parameters:
- $ref: '#/components/parameters/WorkflowId'
responses:
'200':
description: Streaming response.
tags:
- Workflows
/api/workflows/{workflowId}/resume:
post:
summary: Resume a suspended workflow
operationId: resumeWorkflow
parameters:
- $ref: '#/components/parameters/WorkflowId'
responses:
'200':
description: Resume accepted.
tags:
- Workflows
/api/workflows/{workflowId}/runs:
get:
summary: List workflow runs
operationId: listWorkflowRuns
parameters:
- $ref: '#/components/parameters/WorkflowId'
responses:
'200':
description: Workflow runs.
tags:
- Workflows
/api/workflows/{workflowId}/runs/{runId}:
get:
summary: Get a workflow run
operationId: getWorkflowRun
parameters:
- $ref: '#/components/parameters/WorkflowId'
- in: path
name: runId
required: true
schema:
type: string
responses:
'200':
description: Workflow run details.
tags:
- Workflows
components:
parameters:
WorkflowId:
in: path
name: workflowId
required: true
schema:
type: string
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: 'Mastra API key passed as `Authorization: Bearer {api_key}`.
Local dev servers may not require authentication.
'