Skip to main content

Official Python SDK for the Neuratel API

Project description

Neuratel AI — Python SDK

PyPI Python Docs

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+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neuratelai-0.2.0.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neuratelai-0.2.0-py3-none-any.whl (85.8 kB view details)

Uploaded Python 3

File details

Details for the file neuratelai-0.2.0.tar.gz.

File metadata

  • Download URL: neuratelai-0.2.0.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for neuratelai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 71ccea481e27e89bf7b404d4b42db2288f33892f99b76ee47904a6fae50e964f
MD5 89349fe415eecb6c5529a4da610c7fd3
BLAKE2b-256 567ba1cf9d4f459d8a24609ad30ec59bf8273a5b6f697f2069858fa7de75f20d

See more details on using hashes here.

Provenance

The following attestation bundles were made for neuratelai-0.2.0.tar.gz:

Publisher: release.yml on Neuratel-AI/neuratel-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file neuratelai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: neuratelai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 85.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for neuratelai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12c360a822575254f22755cbc94c84aa1464699808fcced604bd3f1f628914df
MD5 3189c4364051048e0aa0912f123313b7
BLAKE2b-256 172fa8e184f2856e27646e2346332ff1d66aed879d2a6809e1d5ca5437bc905f

See more details on using hashes here.

Provenance

The following attestation bundles were made for neuratelai-0.2.0-py3-none-any.whl:

Publisher: release.yml on Neuratel-AI/neuratel-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page