{"id":15053,"library":"webexteamssdk","title":"Webex Teams SDK","description":"The `webexteamssdk` is a community-developed Python SDK for interacting with the Webex Teams (now Webex App) APIs. While it achieved its last official release at v1.7, the project has been superseded by `webexpythonsdk` since October 2022, which is now the actively maintained version. Users are strongly encouraged to migrate to `webexpythonsdk` for new projects and ongoing development.","status":"deprecated","version":"1.7","language":"en","source_language":"en","source_url":"https://github.com/CiscoDevNet/webexteamssdk","tags":["webex","cisco","collaboration","sdk","teams","deprecated"],"install":[{"cmd":"pip install webexteamssdk","lang":"bash","label":"Install `webexteamssdk`"}],"dependencies":[],"imports":[{"note":"`webexpythonsdk` is the successor library, but this entry is for `webexteamssdk`.","wrong":"from webexpythonsdk import WebexTeamsAPI","symbol":"WebexTeamsAPI","correct":"from webexteamssdk import WebexTeamsAPI"}],"quickstart":{"code":"import os\nfrom webexteamssdk import WebexTeamsAPI\n\n# Initialize the API connection\n# By default, the SDK looks for a WEBEX_TEAMS_ACCESS_TOKEN environment variable.\n# Ensure your Webex access token is set in your environment.\naccess_token = os.environ.get('WEBEX_TEAMS_ACCESS_TOKEN', '')\n\nif not access_token:\n    print(\"Error: WEBEX_TEAMS_ACCESS_TOKEN environment variable not set.\")\n    print(\"Please get a token from developer.webex.com/my-apps and set it.\")\nelse:\n    try:\n        api = WebexTeamsAPI(access_token=access_token)\n\n        # Get details about the authenticated user\n        me = api.people.me()\n        print(f\"Authenticated as: {me.displayName} (ID: {me.id})\")\n\n        # List up to 5 rooms (spaces)\n        print(\"\\nMy Spaces (max 5):\")\n        for room in api.rooms.list(max=5):\n            print(f\"- {room.title} (ID: {room.id})\")\n\n    except Exception as e:\n        print(f\"An error occurred: {e}\")\n        if \"401 Unauthorized\" in str(e) or \"access token\" in str(e):\n            print(\"Please verify your WEBEX_TEAMS_ACCESS_TOKEN is valid and not expired.\")","lang":"python","description":"Demonstrates initializing the API with an access token (expected via environment variable) and fetching information about the authenticated user and their rooms."},"warnings":[{"fix":"Migrate your project to `webexpythonsdk`. Update your `requirements.txt` and import statements (e.g., `from webexpythonsdk import WebexTeamsAPI`). Review `webexpythonsdk` documentation for any minor API changes.","message":"`webexteamssdk` is officially deprecated. The maintainers have replaced it with `webexpythonsdk` (available via `pip install webexpythonsdk`). While functionally similar, `webexpythonsdk` requires Python 3.10+ and uses a different package name.","severity":"breaking","affected_versions":"All versions of `webexteamssdk` (v1.x)"},{"fix":"For support, issues, or contributions, refer to the `webexpythonsdk` project's GitHub repository. Do not open issues on the `CiscoDevNet/webexteamssdk` repo.","message":"The original GitHub repository `CiscoDevNet/webexteamssdk` is no longer actively maintained. All new development and bug fixes are happening in the `WebexCommunity/WebexPythonSDK` repository, which corresponds to the `webexpythonsdk` package.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Ensure `WEBEX_TEAMS_ACCESS_TOKEN` is correctly set in your environment with a valid token from developer.webex.com/my-apps. If providing explicitly, pass `access_token='YOUR_TOKEN'` to `WebexTeamsAPI()`.","message":"API access requires an access token. The SDK primarily expects it via the `WEBEX_TEAMS_ACCESS_TOKEN` environment variable. Misconfiguration often leads to `401 Unauthorized` errors.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Implement robust error handling for `ApiError` exceptions. Consider adding delays between consecutive API calls, or migrate to `webexpythonsdk` which has improved rate limit handling.","message":"Webex APIs are rate-limited. While `webexteamssdk` has some retry mechanisms, intensive use might hit limits. Malformed `Retry-After` headers from the API could historically cause crashes (fixed in `webexpythonsdk` v2.0.5).","severity":"gotcha","affected_versions":"All versions of `webexteamssdk`"}],"env_vars":null,"last_verified":"2026-04-15T00:00:00.000Z","next_check":"2026-07-14T00:00:00.000Z","problems":[],"ecosystem":"pypi"}