Search connected accounts
Search for connected accounts in your environment using a text query that matches against identifiers, providers, or connectors. The search performs case-insensitive matching across account details. Returns paginated results with account status and authentication type information.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Query parameters
querystringrequiredSearch term to match against connected account identifiers, providers, or connectors. Must be at least 3 characters. Case insensitive.
connection_idstringConnection ID to filter connected accounts
page_sizeintegerMaximum number of connected accounts to return per page. Value must be between 1 and 30.
page_tokenstringToken from a previous response for pagination. Provide this to retrieve the next page of results.
Call this endpoint over REST, as the example shows.
Call this endpoint over REST, as the example shows.
Response 200
connected_accountsarray of objectList of connected accounts matching the search query. Excludes sensitive authorization details.
Show 11 child attributes
authorization_typestring (enum)Authorization mechanism type.
OAUTHAPI_KEYBASIC_AUTHBEARER_TOKENCUSTOMBASICOAUTH_M2MTRELLO_OAUTH1GOOGLE_DWDTRUSTED_IDPSMART_FHIRNO_AUTHconnection_idstringParent connection configuration reference.
connectorstringThe connection name, as shown in AgentKit > Connections.
idstringUnique connected account identifier.
identifierstringYour app's ID for the user, the value passed when the account was created.
is_org_wide_credentialbooleanWhether this is the shared credential of an org-wide connection, which every user's tool calls on that connection use.
false for a user's own account.last_used_atstringLast usage timestamp.
providerstringThe app the account connects to, such as
GMAIL or SLACK.statusstring (enum)Current connection status.
ACTIVEEXPIREDPENDING_AUTHPENDING_VERIFICATIONDISCONNECTEDtoken_expires_atstringToken expiration timestamp.
updated_atstringLast modification timestamp.
next_page_tokenstringPagination token for the next page. Empty if this is the last page.
prev_page_tokenstringPagination token for the previous page. Empty if this is the first page.
total_sizeintegerTotal count of accounts matching the search query across all pages.
Errors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - query parameter is too short (minimum 3 characters) or validation failed401Authentication required - missing or invalid access token