Get connector statistics
Changed onRetrieve record counts of a connector instance, in total and per record type, broken down by indexing status. The ID of a knowledge base is accepted too (a knowledge base is stored as a connector instance of type <code>KB</code>); its stats report <code>origin: COLLECTION</code>.<br><br> <b>Who can read them:</b> the creator of the instance and, for a team instance, org admins. Stats use the same read gate as <code>GET /connectors/{connectorId}</code>: anyone else, including an admin reading another user's personal instance, gets <code>404</code> ("This connector was removed, or you no longer have access. ..."), so the instance's existence is not confirmed.
An OAuth token holding kb:read instead of connector:read passes the scope check too.
Request
- Base URLhttps://app.pipeshub.com/api/v1
- URLhttps://app.pipeshub.com/api/v1/connectors/{connectorId}/stats
- Auth
- HTTP bearer
- or OAuth 2Authorization code: /api/v1/oauth2/authorizeClient credentialsToken URL: /api/v1/oauth2/token scopes: connector:read
Path parameters
Connector instance ID (_key of the instance) or knowledge base ID. Unlike the other instance routes, the ID is not checked against a pattern: an ID no instance has is answered 404.
Response
Connector statistics
Example response
{
"data": {
"origin": "CONNECTOR",
"byRecordType": [
{
"recordType": "FILE"
}
]
}
}Changes
- warning
added the new
COLLECTIONenum value to the/response property for the response status - warning
added the new
CONNECTORenum value to the/response property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- warning
- info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info