Index Gcs Bucket
Index all files from Google Cloud Storage bucket into a database.
Database ID is looked up automatically from organization_id + database_name.
Headers:
- Authorization: Bearer {api_key} - Captain API key for authentication
- X-Organization-ID: Organization UUID
Args:
database_name: Name of the database (looked up automatically)
bucket_name: GCS bucket name containing files to index
service_account_json: Service Account JSON credentials (as string)
Authentication: Requires valid API key in Authorization header
Headers
Authorization
Captain API key for authentication
X-Organization-ID
Organization UUID
Request
This endpoint expects an object.
database_name
bucket_name
service_account_json
processing_tier
max_files
Response
Successful Response
success
message
status
total_files
supported_files
unsupported_files
replaced_files
database_name
bucket_name
error
job_id