Installation
Initialize
Ask an executive
Request a governed decision
Error handling
API Reference
Full endpoint reference, generated from OpenAPI.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Official Python client for the Operark API.
pip install operark
from operark import Operark
client = Operark(api_key="YOUR_API_KEY")
response = client.executives.CEO.ask(
question="What's our strategy for Q2?"
)
print(response.answer)
decision = client.executives.CRO.decide(
question="Approve a new vendor without ISO 27001?"
)
print(decision.outcome, decision.rationale)
from operark import Operark, OperarkError
try:
client.executives.CFO.ask(question="Q2 burn rate?")
except OperarkError as err:
print(err.code, err.message)