MastraM
Mastraโ€ข7d ago
Alberto Denti

Mastra Migration (0.24.6 to 1.0.0-beta.9): Missing uiMessages property for threads messages endpoint

We are currently migrating from Mastra version 0.24.6 to 1.0.0-beta.9. We have a client using the AI SDK to communicate with our Mastra server.

Previously, we used the endpoint /api/memory/threads/${threadId}/messages?agentId=${agentId} to retrieve thread messages, which were returned within the uiMessages property.

Now, this endpoint only returns the messages property, and uiMessages is missing. This change is causing issues with our application.

The Swagger documentation does not mention any parameter (like a format parameter) that would allow us to request the messages in the previous format. We are stuck trying to understand how to configure Mastra or the SDK to make the endpoint send messages with the uiMessages property again.

Is it still possible to retrieve messages including the uiMessages property with this endpoint in the beta version (1.0.0-beta.9)?

Thank you in advance for any assistance!
Was this page helpful?