Official Python SDK for the Neuratel API
Project description
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": "openai", "model": "gpt-4.1", "instructions": "You are a helpful support agent."},
voice={"provider": "elevenlabs", "voice_id": "gHu9GtaHOXcSqFTK06ux", "model": "eleven_flash_v2_5"},
transcriber={"provider": "deepgram", "model": "nova-3"},
)
print(agent["id"])
# Place an outbound call
call = client.calls.outbound(
agent_id=agent["id"],
to_number="+14155551234",
number_id="pn_your_number_id",
)
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": "openai", "model": "gpt-4.1", "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 |
calls |
list, get, delete, outbound, active, concurrency, hangup, listen, whisper, barge |
phone_numbers |
list, get, update, assign, unassign |
campaigns |
create, list, get, update, delete, start, pause, stop, list_calls, get_call |
call_lists |
create, list, get, update, delete, bulk_import, add_contact, list_contacts, update_contact, delete_contact |
knowledge_base |
list, get, update, delete, from_file, from_url, from_text, query, list_for_agent, assign_to_agent |
webhooks |
events, create, list, get, update, delete, test, rotate_secret, logs |
billing |
balance, usage, balance_history |
api_keys |
create, list, revoke, rotate, scopes |
integrations |
list, create, update, delete, list_tools, refresh_tools |
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}")
Requirements
Python 3.10+ · docs.neuratel.ai
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neuratelai-0.1.1.tar.gz.
File metadata
- Download URL: neuratelai-0.1.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f093678e827ce6036b99a2e43d83d3c6d36debd6a3c9ed67c179fd17efa3446
|
|
| MD5 |
ac58ef523dd4ae27bee601fb2526da3e
|
|
| BLAKE2b-256 |
bc3bf5c6965f014b558584719517758054041755d16959bb86e0099514813827
|
Provenance
The following attestation bundles were made for neuratelai-0.1.1.tar.gz:
Publisher:
release.yml on Neuratel-AI/neuratel-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neuratelai-0.1.1.tar.gz -
Subject digest:
3f093678e827ce6036b99a2e43d83d3c6d36debd6a3c9ed67c179fd17efa3446 - Sigstore transparency entry: 1276868595
- Sigstore integration time:
-
Permalink:
Neuratel-AI/neuratel-python@f422252836ce2b19fcc37b08d76d82f020c58931 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Neuratel-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f422252836ce2b19fcc37b08d76d82f020c58931 -
Trigger Event:
push
-
Statement type:
File details
Details for the file neuratelai-0.1.1-py3-none-any.whl.
File metadata
- Download URL: neuratelai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bc0914f62f7d1ab3efbd70335a870a912b7cd0d1bd5d7803ecdfc5f0a47746d
|
|
| MD5 |
9345b74bfeb6cb5aa2bb349f0daf54a2
|
|
| BLAKE2b-256 |
fe80942f94880d21f8a241f230c70b386baca3d74386181765f4d14643bb8a76
|
Provenance
The following attestation bundles were made for neuratelai-0.1.1-py3-none-any.whl:
Publisher:
release.yml on Neuratel-AI/neuratel-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neuratelai-0.1.1-py3-none-any.whl -
Subject digest:
0bc0914f62f7d1ab3efbd70335a870a912b7cd0d1bd5d7803ecdfc5f0a47746d - Sigstore transparency entry: 1276868599
- Sigstore integration time:
-
Permalink:
Neuratel-AI/neuratel-python@f422252836ce2b19fcc37b08d76d82f020c58931 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Neuratel-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f422252836ce2b19fcc37b08d76d82f020c58931 -
Trigger Event:
push
-
Statement type: