Python Package: Setup

Configuration & Authentication

You must set two key values when instantiating the client:

  • base_url: Typically https://api.levangie-laboratories.com
  • api_key: The API key generated from your dashboard

Example:

PYTHON
from levangie_labs_api import MiddlewareClient client = MiddlewareClient( base_url="https://api.levangie-laboratories.com", api_key="YOUR_API_KEY" )

All subsequent calls will authenticate using this api_key.

Agent IDs

When performing operations on a specific agent (such as sending a message, streaming events, or uploading files), you will need that agent's ID. You can find this ID in the Agents Page of your dashboard or via client.get_agents().