列出可用的數據源集成

get

This operation retrieves available data sources.

Responses
200
Successful operation
application/json
get
GET /api/v1/integrations/ HTTP/1.1
Host: api.rememberizer.ai
Accept: */*
200

Successful operation

{
  "data": [
    {
      "id": 101,
      "integration_type": "text",
      "integration_step": "text",
      "source": "text",
      "document_type": "text",
      "document_stats": {
        "status": {
          "indexed": 1,
          "indexing": 1,
          "error": 1
        },
        "total_size": 1,
        "document_count": 1
      },
      "consent_time": "2025-06-18T19:35:23.905Z",
      "memory_config": "text",
      "token_validity": true
    }
  ],
  "message": "text",
  "code": "text"
}

範例請求

curl -X GET \
  https://api.rememberizer.ai/api/v1/integrations/ \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

YOUR_JWT_TOKEN 替換為您的實際 JWT 令牌。

回應格式

{
  "data": [
    {
      "id": 101,
      "integration_type": "google_drive",
      "integration_step": "authorized",
      "source": "[email protected]",
      "document_type": "drive",
      "document_stats": {
        "status": {
          "indexed": 250,
          "indexing": 5,
          "error": 2
        },
        "total_size": 15000000,
        "document_count": 257
      },
      "consent_time": "2023-06-15T10:30:00Z",
      "memory_config": null,
      "token_validity": true
    },
    {
      "id": 102,
      "integration_type": "slack",
      "integration_step": "authorized",
      "source": "workspace-name",
      "document_type": "channel",
      "document_stats": {
        "status": {
          "indexed": 45,
          "indexing": 0,
          "error": 0
        },
        "total_size": 5000000,
        "document_count": 45
      },
      "consent_time": "2023-06-16T14:45:00Z",
      "memory_config": null,
      "token_validity": true
    }
  ],
  "message": "整合成功檢索",
  "code": "success"
}

此端點檢索當前用戶所有可用數據源整合的列表。回應包括有關每個整合的詳細信息,包括整合類型、狀態和文檔統計信息。

Last updated