Skip to main content
POST
/
v2
/
googledrive
/
files
Index Google Drive Files
curl --request POST \
  --url https://api.example.com/v2/googledrive/files \
  --header 'Content-Type: application/json' \
  --header 'x-google-authorization: <x-google-authorization>' \
  --data '
{
  "files": [
    {
      "id": "<string>",
      "serviceId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "type": "<string>",
      "lastEditedUtc": 123,
      "url": "<string>",
      "sizeBytes": 123,
      "lastSyncedAt": "2023-12-25"
    }
  ],
  "user_context": {
    "id": 123,
    "email": "<string>",
    "updated_at": "<string>",
    "is_active": true,
    "team_id": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "connectors": [
      {
        "name": "<string>",
        "id": [
          123
        ]
      }
    ],
    "vector_store": {
      "id": 123,
      "index_name": "<string>",
      "environment": "<string>",
      "namespaces": [
        "<string>"
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "provider": "<string>"
    }
  }
}
'
{}

Headers

x-google-authorization
string
required

Google access token. Obtained by the client performing the OAuth flow with Google.

Body

application/json
files
GoogleDriveObject · object[]
required
user_context
UserContext · object
required

Response

Successful Response

The response is of type Response Index Google Drive Files V2 Googledrive Files Post · object.