How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Mastra Agents API

The Agents API from Mastra — 6 operation(s) for agents.

Mastra Agents API is one of 11 APIs that Mastra publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Agents. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 6 operations across 6 paths. It is described by OpenAPI 3.1.0, at version v1.

Requests are made against 2 base URLs: http://localhost:4111, https://{host}.

6 operations 6 paths 0 schemas 3 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
v1
Servers
http://localhost:4111
https://{host}
Authentication
HTTP Bearer
Contact
Resource Areas
1

Authentication & Security 1

Mastra Agents API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerAuth). By default, every request must be authenticated.

  • BearerAuth — Mastra API key passed as Authorization: Bearer {apikey}. Local dev servers may not require authentication.

Paths & Operations 6

Across 6 paths, the API surfaces 6 operations — 3 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Agents 6
GET
/api/agents
List agents
listAgents → 200
GET
/api/agents/{agentId}
Get an agent
getAgent 1 param → 200
POST
/api/agents/{agentId}/generate
Generate a response from an agent
generateAgent 1 param body → 200
POST
/api/agents/{agentId}/stream
Stream a response from an agent
streamAgent 1 param → 200
GET
/api/agents/{agentId}/tools
List tools available to an agent
listAgentTools 1 param → 200
POST
/api/agents/{agentId}/tools/{toolId}/execute
Execute a tool on behalf of an agent
executeAgentTool 2 params body → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

mastra-agents-api-openapi.yml Raw ↑

Other APIs Mastra publishes across the network.

Mastra Conversations API
Mastra Logs API
Mastra Mcp API
Mastra Memory API
Mastra Responses API
Mastra Telemetry API
Mastra Tools API
Mastra Vectors API
Mastra Workflows API
Where this information came from

This is an independent, third-party profile of Mastra Agents API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.