From the command line, install the Segments.ai Python SDK.
pip install --upgrade segments-ai
Initialize the Segments client using your API key.
from segments import SegmentsClient
...api_key = ""
client = SegmentsClient(api_key)
Copy the code block using the button to obtain your full API key.