A Python SDK for interacting with the Instantly.ai API.
pip install instantly-python-sdkuv pip install instantly-python-sdk- Clone the repository
- Install development dependencies:
Using pip:
pip install -e ".[dev]"Using uv:
uv pip install -e ".[dev]"- Run tests:
pytestfrom instantly import InstantlyClient, InstantlyConfig
# Initialize the client
config = InstantlyConfig(
api_key="your-api-key",
base_url="https://api.instantly.ai", # Optional: defaults to production API URL
timeout=30 # Optional: defaults to 30 seconds
)
client = InstantlyClient(config)
# List all accounts
accounts = client.accounts.list_accounts()
# Get a specific account
account = client.accounts.get_account("account-id")
# Create a new account
new_account = client.accounts.create_account({
"name": "My Account",
"email": "[email protected]",
"timezone": "UTC"
})
# Update an account
updated_account = client.accounts.update_account("account-id", {
"name": "Updated Account Name"
})
# Delete an account
client.accounts.delete_account("account-id")
# Use as a context manager
with InstantlyClient(config) as client:
accounts = client.accounts.list_accounts()MIT