Skip to main content Switch to mobile version hail-sdk 0.29.0 Python SDK for Hail — give your AI agent a voice, a real phone number, and an inbox.
pip install hail-sdk==0.29.0 Copy PIP instructions
Python SDK for Hail — give your AI agent a voice, a real phone number, and an inbox.
pip install hail-sdk Requires Python 3.11+.
import asyncio from hail import Client async def main(): async with Client(api_key="sk-...") as client: # Place an outbound call. call = await client.calls.create( to="+15551234567", system_prompt="You are calling to confirm a reschedule.", ) print("queued", call.id) async for event in client.events.tail(id=f"call:{call.id}"): print(event.kind, event.payload) # Send an outbound email. email = await client.emails.create( to=["alice@example.com"], subject="Welcome", body_text="Thanks for signing up.", ) print(email.status, email.from_address) asyncio.run(main()) api_key defaults to $HAIL_API_KEY; base_url defaults to $HAIL_API_URL (falling back to https://api.hail.so).
client.calls.create(*, to, system_prompt=None, llm=None, from_=None, first_message=None, metadata=None, idempotency_key=None) — originate an outbound call. Pass either system_prompt (mode A) or a full llm block (mode B). idempotency_key defaults to a fresh UUIDv4.
client.calls.get(call_id) — fetch a single call.
client.calls.list(*, cursor=None, limit=50, status=None, to=None) — cursor-paginated org list.
client.emails.create(*, to, subject, body_text=None, body_html=None, from_=None, cc=None, bcc=None, reply_to=None, metadata=None, idempotency_key=None): send an outbound email. At least one of body_text / body_html is required. from_ is optional while the org has one verified sender; with several the server returns 422 and you must name one (read default_from from client.email_domains.list()). With none it auto-mints a hail-mail address (operator-configured). idempotency_key defaults to a fresh UUIDv4.
client.emails.get(email_id) — fetch a single email.
client.emails.list(*, cursor=None, limit=50, status=None) — cursor-paginated org list.
client.whoami() — who the API key belongs to: auth_kind, organization_id, user_id, email, name. The user fields are None for a shared operator key. Use email as reply_to so replies reach the person, not the sending domain.
client.events.list(*, id=None, kind=None, cursor=None, limit=100) — one-shot fetch of GET /events. id is a typed : string (v1 only supports call:).
client.events.tail(*, id=None, kind=None, interval_seconds=0.5, follow=True) — async-iterator tail; auto-exits on terminal call status when narrowed to id=call: .
All SDK errors derive from hail.HailError. HTTP-status-coded errors carry .status_code, .detail, and .response_text:
HailIdempotencyConflict (409)
HailServerError (5xx, after retry budget)
HailClientError (other 4xx)
HailMalformedResourceId — local validation of : strings
HailConfigError — no API key supplied or discoverable
GET/HEAD/PUT/DELETE — and any POST/PATCH carrying an Idempotency-Key — are retried up to 3 times on 5xx with exponential backoff (0.5s, 1.0s, 2.0s) plus jitter, honoring Retry-After when present. Mutating verbs without an idempotency key fail fast on 5xx so a duplicate side effect can't be silently introduced.
Both files in this release have provenance metadata.
GNU Affero General Public License v3 or later (AGPLv3+) (AGPL-3.0-or-later)
ai-agents email hail mcp phone sms voice
Development Status 3 - Alpha
License OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Programming Language Python :: 3
Topic Communications :: Telephony
Release files for hail-sdk 0.29.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 84.2 kB
Release files / hail_sdk-0.29.0.tar.gz
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Release files / hail_sdk-0.29.0-py3-none-any.whl
Security for hail-sdk 0.29.0
Both files in this release have been uploaded with provenance metadata.
With provenance hail_sdk-0.29.0.tar.gz Dec 1, 2026
With provenance hail_sdk-0.29.0-py3-none-any.whl Dec 1, 2026
Attestation for hail_sdk-0.29.0.tar.gz
Attestation for hail_sdk-0.29.0-py3-none-any.whl
A 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.
Release history Release notifications | RSS feed
Dec 1, 2026 2 release files Full provenance
Nov 27, 2026 2 release files Full provenance
Nov 25, 2026 2 release files Full provenance
Nov 21, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Oct 30, 2026 2 release files Full provenance
Oct 23, 2026 2 release files Full provenance
Oct 19, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 6, 2026 2 release files Full provenance
Sep 25, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Aug 31, 2026 2 release files Full provenance
Aug 13, 2026 2 release files Full provenance
Aug 10, 2026 2 release files Full provenance
Jul 23, 2026 2 release files Full provenance
Jul 18, 2026 2 release files Full provenance
Jul 17, 2026 2 release files Full provenance
Jul 14, 2026 2 release files Full provenance
Jul 12, 2026 2 release files Full provenance
Jul 9, 2026 2 release files Full provenance
Jul 8, 2026 2 release files Full provenance
Jul 2, 2026 2 release files Full provenance
Jun 12, 2026 2 release files Full provenance
May 19, 2026 2 release files Full provenance
Apr 29, 2026 2 release files Full provenance
Apr 24, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




