Install the Atlas Python SDK and call the public REST API from any Python 3.8+ project.
pip install atlas-sdkfrom atlas_sdk import Client
client = Client(token="atlas_pat_...")
result = client.list_workspaces()
print(result)
All errors inherit from ApiError. Catch UnauthorizedError for revoked tokens and ServerError for retryable 5xx responses.
Looking for the raw spec? Open the API reference.