Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
requestContext is not available in Custom API Routes - Mastra
M
Mastra
โข
2mo ago
โข
3 replies
Agrit Tiwari
requestContext is not available in Custom API Routes
Agent
https://mastra.ai/docs/server/custom-api-routes#authentication
I want to access the requestContext on CustomAPI routes
, but it only shows mastra and even mastra instance does not have request context
.
Custom API Routes | Server | Mastra Docs
Expose additional HTTP endpoints from your Mastra server
.
Mastra
Join
The TypeScript Agent FrameworkFrom the team that brought you Gatsby: prototype and productionize AI features with a modern JavaScript stack.
5,321
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
404 on custom api routes in Mastra Cloud
M
Mastra / help-bugs-problems
5mo ago
requestContext not propagated to workflow in networkLoop
M
Mastra / help-bugs-problems
2mo ago
RequestContext regression?
M
Mastra / help-bugs-problems
2mo ago
custom routes not showing in swagger-ui
M
Mastra / help-bugs-problems
10mo ago