Documentation
← Back to Integrations

Python Integration

Use Flux Relay in Python applications with our Python SDK

Coming Soon

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

Quick Start with REST API:

import requests

# Authenticate user
response = requests.post(
    'https://flux.postacksolutions.com/api/auth/user',
    headers={
        'X-Server-ID': 'your-server-id',
        'X-API-Key': 'your-api-key',
        'Content-Type': 'application/json',
    },
    json={
        'externalUserId': 'user_123',
        'username': 'john_doe',
        'metadata': {'email': 'john@example.com'},
    }
)

auth_data = response.json()
access_token = auth_data['accessToken']

# Get conversations
conversations = requests.get(
    'https://flux.postacksolutions.com/api/conversations',
    headers={'Authorization': f'Bearer {access_token}'}
).json()

Check out the API Reference for all available endpoints.