Skip to content

Connections

GET /v1/connections

Returns the upstream provider accounts connected to your workspace. Use this to check which providers are available and their health status.

Terminal window
curl https://ghostmind.optdmsa.com/v1/connections \
-H "Authorization: Bearer $GHOSTMIND_API_KEY"

Response:

[
{
"id": "account-uuid",
"label": "My ChatGPT Account",
"provider": "chatgpt",
"provider_family": null,
"status": "active",
"health": "healthy",
"is_default": false,
"created_at": "2026-08-25T10:00:00Z",
"last_used_at": null
}
]

Health Values

The health field reflects the real, actionable health of the account — not just its configured status. It is derived from the circuit breaker state and the account’s session validity.

HealthMeaningAction
healthyAccount is connected, session is valid, and the circuit breaker is closedNone — ready for requests
unhealthyAccount is connected but the session is expired or the circuit breaker is open due to repeated failuresReconnect the account
rate_limitedThe upstream provider (ChatGPT) returned 429 — the account is temporarily throttledWait for the cooldown to expire (shown in cooldown_seconds)
cooldownThe circuit breaker is open due to repeated non-rate-limit failuresWait for the cooldown to expire
unknownHealth could not be determined (e.g., account just connected, no requests yet)Send a test request to determine health

Note: rate_limited and cooldown include a cooldown_seconds field with the remaining cooldown time. rate_limited uses a longer cooldown (5 minutes) because ChatGPT rate limits typically last minutes, not seconds.

Query Parameters

ParameterTypeDescription
providerstringFilter by provider name (chatgpt, google_ai_studio_savio_tts)
statusstringFilter by status (active, disabled, expired, cooldown, rate_limited, configured)
limitintMax results (default 50, max 200)
offsetintPagination offset

Status Values

StatusMeaning
activeAccount is connected and ready for use
configuredAccount exists but not yet ready (e.g., awaiting session capture)
disabledAccount has been manually disabled
expiredSession has expired, reconnection needed
cooldownAccount is in cooldown after repeated failures
rate_limitedAccount is temporarily throttled by the upstream provider (429)

Provider Values

ProviderDescription
chatgptChatGPT web account (browser-backed)
google_ai_studio_savio_ttsGoogle AI Studio / Savio TTS

Connection Management

Connection management (create, reconnect, disable, delete) is done through the GhostMind dashboard at app.ghostmind.optdmsa.com, not through the public API. This is because connecting an account requires a browser-based authentication flow (login, OTP, MFA, session capture).

Next Steps