notiflowsDocs
SDKsServer-side

Python

Notiflows Python SDK for server-side integration

The Python SDK is coming soon. In the meantime, you can use the REST API directly.

Preview

The Python SDK will provide a simple interface for triggering notiflows and managing users:

from notiflows import Notiflows

client = Notiflows("your-secret-key")

# Trigger a notiflow
client.notify(
    notiflow="welcome-email",
    recipients=[
        {"external_id": "user_123"}
    ],
    data={
        "name": "Jane"
    }
)

# Manage users
client.users.upsert("user_123", {
    "email": "jane@example.com",
    "first_name": "Jane"
})

# Subscribe to topics
client.users.subscribe("user_123", "product-updates")

Installation (Coming Soon)

pip install notiflows

Using the REST API

Until the SDK is available, you can interact with the API directly:

import requests

headers = {
    "Authorization": "Bearer your-secret-key",
    "Content-Type": "application/json"
}

# Trigger a notiflow
response = requests.post(
    "https://api.notiflows.com/admin/v1/notiflows/welcome-email/run",
    headers=headers,
    json={
        "recipients": [{"external_id": "user_123"}],
        "data": {"name": "Jane"}
    }
)

See the Admin API Reference for complete documentation.

On this page