ドキュメントの取得

get

Use this operation to retrieve metadata about all available documents and Slack channels within the data sources.

Query parameters
pageintegerOptional

Page's index

page_sizeintegerOptional

The maximum number of documents returned in a page

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

Successful operation

{
  "count": 4,
  "next": "text",
  "previous": "text",
  "results": [
    {
      "name": "text",
      "type": "text",
      "path": "text",
      "url": "text",
      "id": "text",
      "integration_type": "text",
      "source": "text",
      "status": "text",
      "indexed_on": "2025-06-21T08:11:51.370Z",
      "size": 89,
      "status_error_message": "text",
      "document_id": "text",
      "created_time": "2025-06-21T08:11:51.370Z",
      "pk": 1
    }
  ]
}

例のリクエスト

curl -X GET \
  "https://api.rememberizer.ai/api/v1/documents/?page=1&page_size=20&integration_type=google_drive" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

YOUR_JWT_TOKEN を実際のJWTトークンに置き換えてください。

リクエストパラメータ

パラメータ
タイプ
説明

page

整数

ページネーションのためのページ番号。デフォルトは1です。

page_size

整数

1ページあたりのアイテム数。デフォルトは10です。

integration_type

文字列

統合タイプでドキュメントをフィルタリングします。オプション: google_drive, slack, dropbox, gmail, common_knowledge

レスポンス形式

{
  "count": 257,
  "next": "https://api.rememberizer.ai/api/v1/documents/?page=2&page_size=20&integration_type=google_drive",
  "previous": null,
  "results": [
    {
      "document_id": "1aBcD2efGhIjK3lMnOpQrStUvWxYz",
      "name": "プロジェクト提案書.docx",
      "type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      "path": "/Documents/Projects/Proposal.docx",
      "url": "https://drive.google.com/file/d/1aBcD2efGhIjK3lMnOpQrStUvWxYz/view",
      "id": 12345,
      "integration_type": "google_drive",
      "source": "[email protected]",
      "status": "indexed",
      "indexed_on": "2023-06-15T10:30:00Z",
      "size": 250000
    },
    // ... さらに多くのドキュメント
  ]
}

利用可能な統合タイプ

統合タイプ
説明

google_drive

Google Driveからの文書

slack

Slackからのメッセージとファイル

dropbox

Dropboxからのファイル

gmail

Gmailからのメール

common_knowledge

公共の知識源

このエンドポイントは、接続されたデータソースから文書のリストを取得します。特定のソースに焦点を当てるために、統合タイプでフィルタリングできます。

Last updated