Neuratel AI — Python SDK
Official Python SDK for the Neuratel API — build and manage AI voice agents in a few lines of code.
Installation
pip install neuratelai
# or
uv add neuratelai
Quick Start
from neuratelai import NeuratelAI
client = NeuratelAI() # reads NEURATEL_API_KEY from env
# Create an agent
agent = client.agents.create(
name="Support Bot",
brain={"provider": "groq", "model": "meta-llama/llama-4-scout-17b-16e-instruct", "instructions": "You are a helpful support agent."},
voice={"provider": "cartesia", "voice_id": "8d8ce8c9-44a4-46c4-b10f-9a927b99a853", "model": "sonic-3"},
transcriber={"provider": "deepgram", "model": "nova-3"},
)
print(agent["id"])
# Place an outbound call
call = client.voice_sessions.outbound(
agent_id=agent["id"],
to_number="+14155551234",
number_id="your-number-uuid",
)
print(call["status"])
# Iterate all agents (auto-paginates)
for agent in client.agents.list().auto_paging_iter():
print(agent["id"], agent["name"])
Async
import asyncio
from neuratelai import AsyncNeuratelAI
async def main():
async with AsyncNeuratelAI() as client:
agent = await client.agents.create(
name="Bot",
brain={"provider": "groq", "model": "meta-llama/llama-4-scout-17b-16e-instruct", "instructions": "..."},
)
async for a in await client.agents.list():
print(a["id"])
asyncio.run(main())
Resources
| Resource | Methods |
|---|---|
agents |
create, list, get, update, delete, duplicate, web_call, list_versions, get_version, restore_version, templates, required_variables |
analytics |
dashboard |
api_keys |
create, list, revoke, rotate, scopes |
billing |
balance, usage, balance_history |
call_lists |
create, list, get, update, delete, bulk_import, add_contact, list_contacts, update_contact, delete_contact |
campaigns |
create, list, get, update, delete, start, pause, stop, list_calls, get_call |
conversations |
list, get, list_messages, send_message, mark_read, timeline, update_dynamic_variables, analytics_dashboard |
dnc |
check, list_entries, add_entry, delete_entry, get_settings, update_settings |
integrations |
list, create, update, delete, list_tools, refresh_tools, list_connections, create_connection, update_connection, delete_connection |
knowledge_base |
list, get, update, delete, from_file, from_url, from_text, query, list_for_agent, assign_to_agent |
phone_numbers |
list, get, update, assign, unassign |
voice_sessions |
list, get, update, delete, outbound, list_active, concurrency, hangup, listen, whisper, barge |
webhooks |
events, create, list, get, update, delete, test, rotate_secret, logs |
whatsapp |
list_accounts, import_account, import_account_manual, get_account, update_account, delete_account, list_templates, check_call_permission, get_call_status, verify_account, send_outbound_call, send_outbound_message, send_outbound_text, send_outbound_voice, batch_call, get_message_media |
workflows |
create, list, get, update, delete, save_graph, publish |
Error Handling
from neuratelai import AuthenticationError, NotFoundError, RateLimitError, APIError
try:
agent = client.agents.get("ag_unknown")
except AuthenticationError:
print("Invalid API key")
except NotFoundError:
print("Agent not found")
except RateLimitError:
print("Rate limited")
except APIError as e:
print(f"HTTP {e.status_code}: {e}")
Links
Requirements
Python 3.10+
Metadata
Release files for neuratelai 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neuratelai-0.2.0.tar.gz | 72.0 kB | With provenance | Details for neuratelai-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neuratelai-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for neuratelai-0.2.0-py3-none-any.whl |
Total release size: 157.7 kB
Release files / neuratelai-0.2.0.tar.gz
| Download URL | neuratelai-0.2.0.tar.gz |
|---|---|
| Size | 72.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71ccea481e27e89bf7b404d4b42db2288f33892f99b76ee47904a6fae50e964f
|
|
BLAKE2b-256 checksum How to use checksums |
567ba1cf9d4f459d8a24609ad30ec59bf8273a5b6f697f2069858fa7de75f20d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logRelease files / neuratelai-0.2.0-py3-none-any.whl
| Download URL | neuratelai-0.2.0-py3-none-any.whl |
|---|---|
| Size | 85.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12c360a822575254f22755cbc94c84aa1464699808fcced604bd3f1f628914df
|
|
BLAKE2b-256 checksum How to use checksums |
172fa8e184f2856e27646e2346332ff1d66aed879d2a6809e1d5ca5437bc905f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logSecurity for neuratelai 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for neuratelai-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.