Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

List connections

GET/api/v1/agentkit/connection

Lists the connections in the environment, newest first, without their settings. Filter by connector, or search by name. Use it to find a connection's name or ID, or to check whether a connector already has a connection; call Get a connection for one connection's settings.

Authorization

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

Query parameters

page_sizeinteger
The number of connections to return, up to 100. Defaults to 10.
page_tokenstring
The next_page_token from the previous response, to get the next page. Leave it out for the first page.
providerstring
Return only connections for this connector, by its identifier, such as GMAIL. A connection's provider field holds the same value.
querystring
Return connections whose name, connector or connector display name contains this text, such as gmail. At least 3 characters.

Response 200

connectionsarray of object
The connections on this page, newest first.
Show 6 child attributes
auth_modestring (enum)
USER: each user authorizes their own account. ORG_WIDE: one admin-authorized account is shared.
USERORG_WIDE
connection_namestring
The connection's name.
create_timestring
When the connection was created.
idstring
The connection's ID.
providerstring
The connector this connection uses, such as GMAIL.
typestring (enum)
How users authenticate to the app, such as OAUTH.
OIDCSAMLPASSWORDOAUTHPASSWORDLESSBASICBEARERAPI_KEYWEBAUTHNOAUTH_M2MTRELLO_OAUTH1GOOGLE_DWDTRUSTED_IDPSMART_FHIRNO_AUTH
next_page_tokenstring
Pass as page_token to get the next page. Empty on the last page.
prev_page_tokenstring
Pass as page_token to get the previous page.
total_sizeinteger
The number of connections that match.

Errors

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

400Invalid request - for example, query is shorter than 3 characters.
401Authentication required - missing or invalid access token