OAuth Token Broker

QuickBooks Online not connected

Not yet connected. Click below to authorize.
Connect

Microsoft Outlook (Graph API) active

Expires in: 0h 26m Last refreshed: 2026-03-02T06:38:05

QuickBooks Online (9341454620952247) active

Expires in: 0h 43m Last refreshed: 2026-03-02T07:10:06

QuickBooks Online (193514742347734) active

Expires in: 0h 43m Last refreshed: 2026-03-02T07:10:05

API Usage

Your agents can fetch tokens using this API key:

# Get a valid access token
curl -H "X-API-Key: YOUR_KEY" https://your-domain/api/token/quickbooks

# Check all token status
curl -H "X-API-Key: YOUR_KEY" https://your-domain/api/status

# Revoke a token
curl -X POST -H "X-API-Key: YOUR_KEY" https://your-domain/api/revoke/quickbooks

Agent Integration (Python)

import httpx

BROKER_URL = "https://your-domain"
API_KEY = "YOUR_KEY"

def get_token(provider: str) -> str:
    """Fetch a valid access token from the broker."""
    resp = httpx.get(
        f"{BROKER_URL}/api/token/{provider}",
        headers={"X-API-Key": API_KEY},
    )
    resp.raise_for_status()
    return resp.json()["access_token"]

# Usage
qb_token = get_token("quickbooks")
outlook_token = get_token("outlook")