List Knowledge Connector Documents
List documents produced by one connector with opaque cursor pagination. Excluded documents are omitted unless explicitly requested. A workspace API key is rejected with 403; use a personal API key.
/api/v2/knowledge/{id}/connectors/{connectorId}/documentsAuthorization
apiKey Your Sim API key, personal or workspace-scoped. Generate one under Settings, then API Keys. Operations that reject workspace keys say so in their own description.
In: header
Path Parameters
Knowledge base that owns the connector.
1 <= lengthConnector selected for the operation.
1 <= lengthQuery Parameters
Workspace that owns the knowledge base.
1 <= length <= 128Include documents explicitly excluded by a user.
Maximum connector documents to return per page. Must be a whole number from 1 to 100. Defaults to 50.
501 <= value <= 100Opaque cursor from the previous page. Send it back with the same sort and filters; only limit may change. Change anything else and pagination must restart without a cursor.
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://www.sim.ai/api/v2/knowledge/string/connectors/string/documents?workspaceId=string" \ -H "X-API-Key: YOUR_API_KEY"{
"data": [
{
"id": "doc-8a7b6c5d",
"filename": "Product requirements",
"externalId": "page-123",
"sourceUrl": "https://www.notion.so/page-123",
"enabled": true,
"userExcluded": false,
"createdAt": "2026-06-01T09:15:00.000Z",
"processingStatus": "completed"
}
],
"nextCursor": null
}{
"error": {
"code": "BAD_REQUEST",
"message": "Invalid request"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Insufficient workspace permissions",
"details": {
"code": "INSUFFICIENT_WORKSPACE_ROLE"
}
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Not found"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "API rate limit exceeded",
"details": {
"retryAfter": "2026-01-01T00:00:30.000Z"
}
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
}
}{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "Service temporarily unavailable"
}
}