Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Check a user's connected accounts for a server

POST/api/v1/mcp/configs/{config_id}/connected_accounts

Returns the user's connected account on each connection the server uses, with its status. Call it before you mint a session token, and send the user the authorization link for any account that isn't ACTIVE. With include_auth_link set to true, the call creates any account the user doesn't have yet and returns a fresh authorization link for every connection, in authentication_link. Without it, nothing is created, and a connection where the user has no account comes back with an empty connected_account_id.

Authorization

Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.

Path parameters

config_idstringrequired
ID of the MCP configuration

Body

identifierstringrequired
Your app's ID for the user, the same value you used when the user connected. Use a stable internal ID, not an email address.
include_auth_linkboolean
Set to true to get a fresh authorization link for every connection, creating any connected account the user doesn't have yet.

Response 200

connected_accountsarray of object
Connected account state for each connection in the configuration
Show 6 child attributes
authentication_linkstring
The authorization link for this connection. Empty unless the request set include_auth_link.
connected_account_idstring
The user's connected account on this connection. Empty when the user has none.
connected_account_statusstring
The account's status, such as ACTIVE or PENDING_AUTH. Empty when the user has no account.
connection_idstring
ID of the connection
connection_namestring
Name of the connection
providerstring
The app, such as GITHUB.

Errors

Every error has the same body: code, message and details. See Errors and rate limits.

400Bad request - config_id or identifier is missing or invalid
404Not found - no MCP configuration exists with the given config_id

Used in