Skip to main content
Dograh ships official SDKs for Python and TypeScript that wrap the Dograh REST API and the workflow builder. Use them to create or edit agents, place outbound calls, and inspect runs from your own code. Both packages are generated from the same backend OpenAPI spec, so the method surface is equivalent โ€” only the naming convention differs (snake_case in Python, camelCase in TypeScript).

Install

pip install dograh-sdk

Authenticate

Generate an API key at /api-keys (or http://localhost:3010/api-keys for self-hosted). See API Keys for details. Both SDKs read the API key from the DOGRAH_API_KEY environment variable by default, and the base URL from DOGRAH_API_URL (defaults to http://localhost:8000). You can also pass them explicitly.
from dograh_sdk import DograhClient

client = DograhClient(
    base_url="https://app.dograh.com",
    api_key="YOUR_API_KEY",
)
For self-hosted deployments, swap baseUrl for your backend URL (e.g. http://localhost:8000).

Quick tour

List the agents in your workspace:
workflows = client.list_workflows()
for wf in workflows:
    print(wf.id, wf.name)

Next steps