API Reference
Google Drive RAG

google-drive-rag API

Endpoints for google-drive-rag operations.

Endpoints

GET /api/google-drive-rag/folders/{folder_id}"}/files

List Drive Folder Files

List all files in a Google Drive folder

Shows:

  • File names and metadata
  • Embedding status
  • Quick stats

Parameters

NameInTypeRequiredDescription
folder_idpathstringYes-

Responses

200: Successful Response

422: Validation Error

Examples

curl -X GET "https://api.altsportsdata.com/api/google-drive-rag/folders/{folder_id}"}/files" \
  -H "Content-Type: application/json"

POST /api/google-drive-rag/sync

Sync Drive Folder To Rag

Sync Google Drive folder to Vertex AI RAG corpus

Process:

  1. List all files in Drive folder
  2. Download files not yet embedded
  3. Upload to Vertex AI RAG corpus
  4. Track embedding status

Request Body

{}

Responses

200: Successful Response

422: Validation Error

Examples

curl -X POST "https://api.altsportsdata.com/api/google-drive-rag/sync" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/google-drive-rag/embed/{folder_id}"}

Embed All Drive Files

Embed all files from Drive folder to RAG corpus

One-click action to:

  1. Download all files
  2. Upload to RAG
  3. Create embeddings

Parameters

NameInTypeRequiredDescription
folder_idpathstringYes-

Responses

200: Successful Response

422: Validation Error

Examples

curl -X POST "https://api.altsportsdata.com/api/google-drive-rag/embed/{folder_id}"}" \
  -H "Content-Type: application/json"

GET /api/google-drive-rag/status/{folder_id}"}

Get Folder Sync Status

Get sync and embedding status for a Drive folder

Parameters

NameInTypeRequiredDescription
folder_idpathstringYes-

Responses

200: Successful Response

422: Validation Error

Examples

curl -X GET "https://api.altsportsdata.com/api/google-drive-rag/status/{folder_id}"}" \
  -H "Content-Type: application/json"

GET /api/google-drive-rag/health

Health Check

Health check endpoint

Responses

200: Successful Response

Examples

curl -X GET "https://api.altsportsdata.com/api/google-drive-rag/health" \
  -H "Content-Type: application/json"

Platform

Documentation

Community

Support

partnership@altsportsdata.comdev@altsportsleagues.ai

2025 Β© AltSportsLeagues.ai. Powered by AI-driven sports business intelligence.

πŸ€– AI-Enhancedβ€’πŸ“Š Data-Drivenβ€’βš‘ Real-Time