List Connections
GEThttps://api.confident-ai.com/v2/ai-connections
Lists the AI connections in your Confident AI project one page at a time, ordered by name. Each connection is returned with just its endpoint and whether it is active; retrieve one by id for its full configuration. Requires the Starter plan or above.
curl -X GET "https://api.confident-ai.com/v2/ai-connections" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"aiConnections": [
{
"id": "<AI-CONNECTION-ID>",
"name": "Production Chatbot",
"endpoint": "https://api.example.com/chat",
"active": true
}
],
"totalAIConnections": 3,
"page": 1,
"pageSize": 25
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/ai-connections",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Query parameters
pageintegerdefault: 1The page to return. Defaults to 1.
pageSizeintegerdefault: 25The number of results per page, at most 100. Defaults to 25.
Response
List Connections succeeded.
successbooleanIndicates if the request was successful.
dataobjectOne page of AI connections, with the total across all pages.
Show 4 propertiesHide 4 properties
aiConnectionslist of objectsThe AI connections for the current page, ordered by name.
Show 4 propertiesHide 4 properties
idstringThe id of the AI connection, generated by Confident AI.
namestringThe name of the AI connection, unique within the project.
endpointstring | nullThe URL Confident AI calls, or null when no endpoint has been configured.
activebooleanWhether Confident AI could last reach your application and read an answer out of its response. Computed by Confident AI, not writable.
totalAIConnectionsintegerThe total number of AI connections in this project.
pageintegerThe page this response covers.
pageSizeintegerThe number of AI connections per page.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.