Contents
Install
cd sdk/python
python -m pip install -e .
Smoke test:
python -c "from titanvx_sdk import TitanVxClient; print(TitanVxClient(base_url='https://api.eventium.ai'))"
Authentication
Bearer token
Use for signed-in operator workflows and user-owned routes.
client = TitanVxClient(
base_url="https://api.eventium.ai",
bearer_token="YOUR_JWT",
)
X-Api-Key
Use for automation, server integrations, and sandbox tests.
client = TitanVxClient(
base_url="https://api.eventium.ai",
api_key="TITAN-REPLACE-ME",
)
For Atlas command flows that depend on a stable session, pass session_id so the SDK sends
a Session-Id header on every request.
How the SDK maps to the stack
Command bus
Use client.tps.call(...) when you need direct user, agent, domain, zone, bank, memory,
or command-bus operations.
Workspace routes
Use the REST namespaces for runtime bindings, files, documents, rules, MCP inventory, skills, and operational flows around Atlas.
Quickstart
from titanvx_sdk import TitanVxClient
client = TitanVxClient(
base_url="https://api.eventium.ai",
api_key="TITAN-REPLACE-ME",
session_id="sandbox-demo-01",
)
resp = client.tps.call(
service="US_LogOn",
target={"user": "atlas_handle"},
vx={"passcode": "12345678"},
)
print(resp)
Example: fetch the combined OpenAPI spec
spec = client.openapi.json()
print(spec["info"]["title"])
print(len(spec.get("paths", {})))
Client surface
client.health.health()
client.health.deps()
client.tps.call(service="AP_Chat", target={...}, content="Hello")
client.api_keys.list()
client.webhooks.events()
client.webhooks.list_endpoints()
client.documents.ingest_text(text="hello")
client.documents.ingest_url(url="https://example.com")
client.rules.list()
client.mcp.list_tools()
client.skills.list()
client.openapi.json()
client.openapi.tps_services()
The Python module is still named titanvx_sdk. Keep that import path until the package is
formally renamed in the repo.
Sandbox test keys
The SDK can also call the developer testing key routes exposed on the API host. These are useful when you want a short-lived key for direct experimentation from a local script or notebook.
client.dev.sandbox_status()
issued = client.dev.create_sandbox_key(
email="ops@example.com",
usecase="Validate AP_Chat and webhook delivery flows",
)
print(issued["key"])
The API host also exposes a browser form for issuing, listing, and revoking platform API keys. The current live API returns the raw key on create, lists existing keys by owner/email namespace, and supports revoke by key id.
Webhook operations
events = client.webhooks.events()
print(events)
endpoint = client.webhooks.create_endpoint(
url="https://example.com/eventium/webhooks",
events=["quota.threshold.reached", "agent.deployment.updated"],
)
print(endpoint["secret"]) # shown on create / rotate
client.webhooks.test(
event_type="webhook.test",
data={"hello": "world"},
)
deliveries = client.webhooks.deliveries(limit=25)
print(deliveries)
Errors
TitanVxHttpError: the API returned a non-2xx response.TitanVxTransportError: network, timeout, or transport failure before a valid response.
from titanvx_sdk import TitanVxClient, TitanVxHttpError, TitanVxTransportError
client = TitanVxClient(base_url="https://api.eventium.ai", api_key="TITAN-REPLACE-ME")
try:
print(client.health.health())
except TitanVxHttpError as exc:
print("HTTP failure:", exc.status_code, exc)
except TitanVxTransportError as exc:
print("Transport failure:", exc)