Forum Discussion
Get list of conversations a bot has participated in from BotConnectorAPI
Hello jlincroft ,
Try generating access token from below link-
https://learn.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-authentication?view=azure-bot-service-4.0&tabs=multitenant#bot-to-connector
And follow the below endpoint for getting the list of conversation has participated in-
/v3/conversations?continuationToken={continuationToken}
Note- Continuation token can be obtained from GetConversationsAsync, since it uses the GET Conversations API.
- jlincroftMar 01, 2024Copper Contributor
Hi Vaibhav-MSFT
Yes, I have generated the access token and included it in the request.
What do you mean by GetConversationsAsync? The endpoint I'm trying to call is the one you listed, /v3/conversations, but is returning a 405. Is the continuation token required for that endpoint?
- Vaibhav-MSFTMar 03, 2024Former Employee
Hello jlincroft ,
Yes, the continuation token is required for the endpoint.GetConversationsAsync
method uses the Get Conversations API. This API must be called many times in sequence in order to retrieve all the conversations a bot has participated in.
And can you confirm if you still getting 405 error?- jlincroftMar 04, 2024Copper Contributor
How do I get the continuation token to use in the first request?
Yes, I am still getting 405 errors.