Skip to main content

Python SDK

PyPI agentline is already taken, so the Python distribution is agentline-ai (import agentline_ai). The Node package is not on npm yet. See Node.

Resources

The client is grouped by resource, mirroring the API Reference:

End-to-end example

calls.create and messages.send return plain dicts, so read their fields as call["id"] and call["status"]. Agents and numbers return typed objects (agent.id). To test without dialling or texting anyone, use the test line +15555550100 (any +1 555 number). See Calls. The SDK is generated from the same OpenAPI spec as this API reference, so the SDK and docs always match.