Connections
List active connections
List active provider connections for the current user in the org.
GET
/api/connectionsbetter-auth.session_token<token>
Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Query Parameters
profileId?string
Connection profile ID (defaults to user's default profile)
Header Parameters
X-Org-Id?string
Organization ID. Required for cookie auth. Not needed for API key auth (org resolved from key).
Format
uuidcurl -X GET "https://loading/api/connections"{
"connections": [
{
"provider": "string",
"status": "connected",
"connectionId": "string",
"connectedAt": "string",
"scopesGranted": [
"string"
]
}
]
}{
"type": "https://docs.appstrate.dev/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing session",
"code": "unauthorized",
"requestId": "req_abc123"
}