Developers

Build on the SayaOps API

Everything SayaOps does in the dashboard is callable from your own services: provision agents, trigger workflows, resolve approvals, and subscribe to webhooks. The interactive OpenAPI reference is live in the app.

Trigger a workflow in a few lines

The Python SDK wraps the REST API with typed responses, retries, and streaming. A Node SDK offers the same surface.

See the developer platform
quickstart.py
from sayaops import SayaOps

ops = SayaOps(api_key=os.environ["SAYAOPS_KEY"])

# Trigger the default AP workflow with an invoice
run = ops.workflows.trigger("ap-default", invoice=invoice_pdf)

# Resolve a human-in-the-loop approval task
ops.hitl.resolve(run.task_id, decision="approve")

print(run.status)  # -> "completed"