Connection profiles
List all user connections
List all provider connections across all profiles and organizations for the authenticated user, grouped by provider then by organization.
GET
/api/connection-profiles/connectionsbetter-auth.session_token<token>
Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
curl -X GET "https://loading/api/connection-profiles/connections"{
"providers": [
{
"providerId": "string",
"displayName": "string",
"logo": "string",
"totalConnections": 0,
"orgs": [
{
"orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",
"orgName": "string",
"connections": [
{
"connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d",
"scopesGranted": [
"string"
],
"connectedAt": "2019-08-24T14:15:22Z",
"profile": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"isDefault": true
}
}
]
}
]
}
]
}{
"type": "https://docs.appstrate.dev/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing session",
"code": "unauthorized",
"requestId": "req_abc123"
}