Forum Discussion
Is application/vnd.api+json a supported API response format for a Copilot Declarative Agent?
I have been testing some 3rd party API's we use to see how they work with a declarative copilot agent built with the MS365 Agents Toolkit (formerly the Teams Toolkit). I have one API that the agent fails to return responses from (it successfully calls the API, but the debug console says it failed to return data). As far as I can tell application/vnd.api+json is a standard .JSON format (and everything works fine in Postman) so I am trying to get some clarity on if this is supported or not (or if someone has been able to get this working).
1 Reply
- VickieMurphIron Contributor
Remember to add the media_type=application/json parameter when returning data. This can ensure that the data returned by the interface is in the standard JSON format, so that the Copilot Declarative API can correctly identify and process this data.