get https://refer-base-url-sub-domains.imi.chat/v3.1/teams
This endpoint fetches the list of teams and their details including team_id that you will need when creating chats via the API
Response Codes
| status_code | HTTP Status | Description |
|---|---|---|
| 4320 | 200 | Teams found for this key |
| 2002 | 400 | Invalid header param - could not find mandatory header parameters |
| 2003 | 400 | Invalid Access Token |
| 2004 | 401 | Access Token expired |
| 2007 | 500 | Internal Server Error |
| 2010 | 404 | Could not find details of team based on the teamid passed in the header |
| 2099 | 405 | Method not allowed |
| 4319 | 404 | Teams not found for this key |
| 4321 | 500 | While fetching teams got error |
