{"id":24827,"library":"webexpythonsdk","title":"Webex Python SDK","description":"A Python SDK for interacting with the Webex (formerly Cisco Spark/Webex Teams) APIs. Version 2.0.6 is the latest, supporting Python 3.10+. The library was renamed from webexteamssdk in v2.0.0, dropping Python 2 support. Released on GitHub under the WebexCommunity organization. Release cadence is irregular, with minor patches every few months.","status":"active","version":"2.0.6","language":"python","source_language":"en","source_url":"https://github.com/WebexCommunity/WebexPythonSDK","tags":["webex","cisco","sdk","api","messaging","collaboration"],"install":[{"cmd":"pip install webexpythonsdk","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The library was renamed from webexteamssdk to webexpythonsdk in v2.0.0. The old import no longer works.","wrong":"from webexteamssdk import WebexAPI","symbol":"WebexAPI","correct":"from webexpythonsdk import WebexAPI"},{"note":"ApiError is in the exceptions module, not top-level.","wrong":"from webexpythonsdk import ApiError","symbol":"ApiError","correct":"from webexpythonsdk.exceptions import ApiError"}],"quickstart":{"code":"import os\nfrom webexpythonsdk import WebexAPI\n\napi = WebexAPI(os.environ.get('WEBEX_TOKEN', ''))\nfor room in api.rooms.list():\n    print(room.title)","lang":"python","description":"Initialize the SDK with your Webex Bot Token and list rooms. Replace 'your_token_here' with a valid token."},"warnings":[{"fix":"Change your import to 'from webexpythonsdk import ...' and update requirements files.","message":"Library renamed from webexteamssdk to webexpythonsdk in v2.0.0. Existing code using 'from webexteamssdk import ...' will break. Migrate to webexpythonsdk.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Upgrade to Python 3.10 or later.","message":"Python 2 support removed. Python 3.10+ required. Older codebases on Python 2 or 3.6-3.9 will not work.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Understand that max controls total items. To limit per-page, use the 'limit' parameter (if available). For list_messages, 'max' is often the intended way.","message":"The 'max' parameter in list_messages() can cause confusion. It limits the total number of messages returned across all pages, not per page. If you set max=10, it will fetch up to 10 messages, but may make multiple API calls.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Switch to webexpythonsdk and update imports.","message":"The old 'webexteamssdk' library is no longer maintained. Any security patches or bug fixes are only applied to webexpythonsdk.","severity":"deprecated","affected_versions":"all versions"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install webexpythonsdk'.","cause":"Library not installed.","error":"ImportError: No module named webexpythonsdk"},{"fix":"Ensure you have a valid Webex Bot Token and pass it to WebexAPI(token='...').","cause":"Invalid or missing API token.","error":"webexpythonsdk.exceptions.ApiError: [401] Unauthorized"},{"fix":"Check that your token is set and correctly passed to the WebexAPI constructor.","cause":"Occurs if you try to iterate over api.rooms.list() without a valid token; api object is not properly initialized.","error":"TypeError: object of type 'NoneType' has no len()"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}