Forum Discussion
jlincroft
Feb 29, 2024Copper Contributor
Get list of conversations a bot has participated in from BotConnectorAPI
Hi! My team is building a Microsoft Teams bot, and we are trying to get a list of conversations (channels) that the bot has participated in using the BotConnectorAPI. We are trying to use this en...
jlincroft
Mar 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-MSFT
Microsoft
Mar 03, 2024Hello 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.
- Vaibhav-MSFTMar 04, 2024
Microsoft
jlincroft ,
The continuation token is used to help each call continue where the last one left off. Therefore, the first call needs no continuation token. For each subsequent call, you should use the continuation token from the conversations result returned by the previous call.- jlincroftMar 04, 2024Copper Contributor
So just to be clear, you're saying the continuation token is not required for the first call?
So if I call GET /v3/conversations with a valid access token, I should not be getting 405s? (This is what I'm getting currently)