Hello Ashish Jhunjhunwala,
Thanks for posting!
I am able to replicate the error message which you are getting using my test tenant. As per my analysis, below are the possibilities for getting “code“: “NotFound“, “message“: “UnknownError“.
- Passing wrong Teams ID in
teams/{team-Id}/channels
endpoint (non-existent team). - Team might be soft deleted for a while and recovered later. I tested this and API responds with the same error intermittently (when Team doesn't exist).
Please refer This link for error code information.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.