octadezx (Python SDK)
Official Python server SDK for the OctaDezx AI Customer Support Platform public API and headless Agent API: synchronous and asyncio clients, Server-Sent Events (SSE) streaming, messenger identity verification (user_hash), signed webhook verification, and owner-approved action request verification (verify_action_request). Zero external dependencies (pure Python 3.9+ standard library).
Installation
pip install octadezx
Quick Links & Documentation
- OctaDezx Platform Overview: https://octadezx.com
- Developer Hub & OpenAPI 3.1 Spec: https://octadezx.com/developers
- Python & Node.js Server SDK Guide: https://octadezx.com/developers/server-sdks
- Headless Agent API & SSE Streaming: https://octadezx.com/developers/agent-api
- REST API Reference: https://octadezx.com/developers/api-reference
- Signed Webhooks Guide: https://octadezx.com/developers/webhooks
- Identity Verification (
user_hash): https://octadezx.com/developers/identity-verification - Native MCP Server (
octadezx.com/mcp): https://octadezx.com/ai-agent-mcp-server - Self-Filling AI CRM: https://octadezx.com/crm
- AI Appointment Booking Bot & Scheduling: https://octadezx.com/ai-appointment-scheduling
- Pricing & 3-Day Free Trial: https://octadezx.com/pricing
Features
- Headless Agent API (
client.agent): Start conversations, send customer turns, stream token-by-token replies over SSE, and inspect conversation history. - Deterministic Brand Safety: Every written reply is checked by deterministic code against the business's verified knowledge graph before delivery.
- Identity Verification: Compute HMAC-SHA256
user_hashtokens on your server for authenticated users in@octadezx/messenger(Web / React) and@octadezx/messenger-react-native. - Webhook Verification: Constant-time HMAC-SHA256 signature verification with replay protection over raw request bytes.
- Action Verification:
verify_action_requestchecks the signature of an owner-approved action request and validates its body.
Owner-approved actions
When the AI agent runs an action you registered (Dashboard > Settings > Actions), OctaDezx sends a signed POST to your endpoint. Verify it with verify_action_request before you do anything. It checks HMAC-SHA256 over <timestamp>.<raw body> with a five minute replay window (several comma-separated sha256= values are accepted during secret rotation), then parses and validates the body. Pass the exact raw bytes, not re-serialized JSON.
import os
from octadezx import verify_action_request, ActionVerificationError
try:
request = verify_action_request(raw_body, headers, os.environ["OCTADEZX_ACTION_SECRET"], allow_test=True)
except ActionVerificationError:
... # respond 401
else:
# Scope everything to request["user"]["id"]; request["args"] is untrusted customer input.
if request["test"]:
response = {"ok": True, "message": "Sample answer, nothing was changed"}
else:
... # do the work
response = {"ok": True, "data": {}, "message": "Done"}
Answer with HTTP 2xx, Content-Type: application/json and a JSON object whose ok is exactly True. Anything else counts as a failure and the customer is told nothing was changed.
The allow_test rule. Dashboard "Send test" requests carry "test": true, with a user id and arguments a teammate typed. A test must never change anything. For a write action, verify_action_request raises ActionVerificationError on a test request unless you pass allow_test=True, so answering one is a deliberate choice: when you pass it, check request["test"] and return a sample answer without applying the change. Read actions are not blocked. See Actions.
Running Tests
python -m unittest discover -s tests
Metadata
Release files for octadezx 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 |
|---|---|---|---|---|
| octadezx-0.2.0.tar.gz | 14.7 kB | Without provenance | Details for octadezx-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| octadezx-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for octadezx-0.2.0-py3-none-any.whl |
Total release size: 30.7 kB
Release files / octadezx-0.2.0.tar.gz
| Download URL | octadezx-0.2.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
728d0970f7ab94aa7c544b9b7f51b61bbff6fe7880d3c5dee2ef32c38c7f98d8
|
|
BLAKE2b-256 checksum How to use checksums |
601d4ae57b7a646a1440c0ed7a9f7b317d7b1cb224e0b788a215719a5d79b5b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / octadezx-0.2.0-py3-none-any.whl
| Download URL | octadezx-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
738bcf1c77970387d0b5f9e520de515f8c608bde60ff71fedbb1b3c87b7a4082
|
|
BLAKE2b-256 checksum How to use checksums |
7e1dc0acb7127644d97dcfb958a8317a4b47f7a1d7b8c9c15ef201249b77fe57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for octadezx 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.